• aubreygb

    (@aubreygb)


    Hello! I have used other SEO plugins in the past, but have heard good things about SEO Framework and wanted to give it a go. One thing I’ve quite enjoyed but haven’t yet found within SEO Framework is the ability to have variables in meta titles.

    For example, if I have a Custom Post Type called “Service Areas”, with each of those posts being titled like “Phoenix, AZ”, “Austin, TX”, “Miami, FL”, I could create a Meta Title format like this:
    Homes for Sale in %title%.

    This would automatically fill in %title% automatically with the corresponding value. I would love to know if this is doable natively. Furthermore, I only see options to globally customize meta titles for Archives, not individual posts. Please let me know if there’s something I’m missing. Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Thank you for giving The SEO Framework a try!

    Variable/dynamic placeholders in meta titles are not yet natively available in TSF. I have been tracking this as a feature request since 2017, but demand has stayed substantially low, so it has not been prioritized. Most of the underlying automation is already written — all the transformation groundwork has even been done in Transport –, though, so it will land eventually.

    In the meantime, you can achieve exactly what you described with a small code snippet using the the_seo_framework_title_from_generation filter. It lets you modify the auto-generated title per post, so for your “Service Areas” post type, you could prepend “Homes for Sale in ” to whatever the post title is.

    If you or a developer on your team would like the snippet, let me know, and I will follow up with it. All I need is the post type name of “Service Areas” (that’s a label, not a name).

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.