category meta broken

#336428
  • Resolved Asean News Today
    Rank Math free

    Hello team,
    I hop you are all safe.

    I have Rank Math on two sites (running the same theme and pretty much the same plugins and custom CSS) and this is occurring on both sites.

    The meta tag %category% %sep% %sitename% set for categories is placing the top level category description only and not the sub-category name in the meta description

    Thus the sub category Cambodia under the parent category Asean News is showing as Asean news | Asean News Today with %category% %sep% %sitename% instead of Cambodia| Asean News Today in the snippet producing multiple Category snippets with the same title.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Prabhat
    Rank Math agency

    Hello,

    Thank you for contacting us and we regret the inconvenience caused.

    Could you share some of the affected URLs so that we can have a closer look?

    Also, please edit the subcategory and ensure that the same variables are applied in the meta title/description from the Preview Snippet Editor: https://rankmath.com/kb/seo-meta-tags/

    Looking forward to helping you.

    Thank you.

    Hi and thanks for the fast reply.

    In the meantime I’ve been doing some testing and found that if I replace %category% %sep% %sitename% with %title% %sep% %sitename% in the master settings it will display the sub-category snippet correctly for categories.

    I’ve left this open in case you have additional questions.

    Stay safe,

    John

    Prabhat
    Rank Math agency

    Hello,

    We’re glad that you got that sorted and thank you for sharing the details.

    If you wish to show the name of the current category/sub-category, then you can also use the %term% variable. This variable fetches the name of the current term on taxonomy archive pages.

    Hope this helps and please feel free to get in touch if you require any further assistance.

    Thank you.

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

You must be logged in to reply to this ticket.