I would like to show only the “primary” category in our related products.

#195351
  • Resolved MyNameis32
    Rank Math free

    Hello,

    I would like to show only the “primary” category in our related products on the single product page. At the moment “related products” is a bit of a mess, as it pulls in products from a number of different categories so that they are no longer really “related” to the product the customer is viewing.

    Somebody told me that Rank Math SEO can do this.
    Here is a code with Yoast in sensitive data, can you help me how can i write is to word with Rank Math SEO?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Ankit
    Rank Math business

    Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    The selection of what goes into the related products is really something that is handled by woo commerce or your theme depending on what features it has.

    Rank Math does not really have a specific feature for this.
    You might need to do your own modifications on your own to get this working as you want.

    The method to get the primary category is used and then after they tie into the related products hook from woo-commerce to alter it.

    Rank Math’s hooks are listed here https://rankmath.com/kb/filters-hooks-api-developer/. Look for the hooks relating to breadcrumbs and the primary term. You could maybe use that to come up with your own version of Yoast one.

    Alternatively, you can use a plugin like shown here https://www.cloudways.com/blog/custom-related-products-in-woocommerce-store/ to set up the related plugins as you want.

    Hope this clears things up.

    Your enterprise and join you to clients who look for the goods or … For example, in case your number one category is “Pizza restaurant,” Google can also show your … Your class is just one in all many factors which can have an on your nearby ranking on Google. … If you’ve got a couple of places, open the location you need to control.
    https://farmvillefreak.com/

    Brian
    Rank Math free

    Hello,


    @IPLBaBa
    Could you make a point of creating another ticket of your issue in our support forum?

    We are looking forward to helping you.
    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘I would like to show only the “primary” category in our related products.’ is closed to new replies.