Conditional Title and Description

#323590
  • Resolved Hamed Azimi
    Rank Math free

    Hello,

    Currently, we can define how the title and description of each post type should be, and we also can add dynamic tags (like site title, etc…) => I’m talking about “Title and Meta” settings.

    What is missing here which can be really useful, is Conditions. So, instead of having 1 single field to define the title or description structure, we be able to set conditions and have multiple cases. (And the condition is just the length of the actual content)

    This way we can for example have:

    1. If the content title is shorter than 110: %title% %sep% %sitename% (B2B)

    2. If the content title is between 110 and 150: %title% %sep% B2B

    3. If the content title is between 150 to 160: %title%

    4. If the content title is longer than 160: %title”

    (Same goes with description. Same examples as above, just instead of %title”, imagine %excerpt%)

    This way we can set things up and make things automated and get rid of SEO-related issues like long titles or meta descriptions.

    Thanks

Viewing 1 replies (of 1 total)
  • Hello,

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

    Unfortunately, we don’t have that type of functionality at the moment with our meta variables.

    You can however customize the behavior of the title and description by referring to our custom filters here: https://rankmath.com/kb/filters-hooks-api-developer/#metadata

    We also provide a filter to create custom variables. You may check our guide regarding custom variables here: https://rankmath.com/kb/filters-hooks-api-developer/#add-custom-variable

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    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 1 replies (of 1 total)

The ticket ‘Conditional Title and Description’ is closed to new replies.