Bulk: Make term primary

#49108
  • Resolved Olli Koskimäki
    Rank Math free

    I have over 1000 products that does not have “primary term” for product category.

    Is there way to make it bulk add “primary term” for these products?

    – “Deepest category” should always be primary.
    – It does not matter which of category it is, if theres multiple categories for single product.

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

    Hello,

    Rank Math doesn’t have a tool to set the primary term for in bulk but you could achieve it by coding a custom PHP snippet for your functions.php file.

    Looking forward to help you.

    is it enough to update the postmeta value “rank_math_primary_product_cat”? or how rankmath detects the primary term?

    Hello,

    Please run a custom query and store the primary category ID in rank_math_primary_category meta key. That’s where Rank Math stores the Primary category.

    I hope that helps.

    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 ‘Bulk: Make term primary’ is closed to new replies.