This is a setting example that automatically displays the collection ranking of a product when you create a ranking collection in Shopify. If the ranking in the ranking is changed, the ranking on the product details side will also be updated accordingly. (When updating the ranking, the cache on the product details screen is cleared, so you will need to make some changes to the theme file and update it.)
Example of settings to display the ranking order of a product in a specified ranking collection on the product details screen (automatically linked to the ranking order)

[How to set it up] Add a custom Liquid block to the product information section of the product template in the theme editor and insert the code.

