Bulk: Make term primary

  • 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)
  • 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.

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

You must be logged in to reply to this ticket.