• Resolved Avery1

    (@avery1)


    Yoast’s SEO plugin comes with the handy feature that allows you to use any post meta data as a tag within your templates. Since the secondary title is saved within the post meta called _secondary_title, the template tag that has to be used in order to display the secondary title is %%cf__secondary_title%% (note the double underscore after cf).

    Where exactly do I change it?

    https://www.ads-software.com/plugins/secondary-title/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author thaikolja

    (@thaikolja)

    Hi Avery1,

    Yoast’s SEO uses placeholders that look like this for example:

    %%term_title%%

    These are predefined values. But you can also use custom post meta values which is where the secondary title is being stored.

    Let me give you an example:

    If you visit the Dashboard > SEO > Titles & Metas. Let’s say you want to include the secondary title into the SEO title. For that, you have to switch to the tab “Post Types”. The first option is called “File template” and the default value is

    %%title%% %%page%% %%sep%% %%sitename%%

    If you want to include the secondary title in front of the standard title, you’ll have to insert %%cf__secondary_tite%%. the cf_ tells SEO to look for a specific post meta. Secondary Title is being stored as a post meta with the name _secondary_title.

    So, completed, the altered file template would look like this:

    %%cf__secondary_title%% %%title%% %%page%% %%sep%% %%sitename%%

    It’s important that when combining cf_ and _secondary_title, you’ll need to add two underlines as you can see in the example above.

    This works for every post, page or custom post type where a secondary title is being saved.

    Please give it a try and let me know if you have any further quesiton. If everything worked out, please conside leaving a quick review on my plugin and rate it. It’d be much appreciated.

    Plugin Author thaikolja

    (@thaikolja)

    A feedback on if it helped you or not would be nice. I always guarantee a good support, but I’d also like to get some kind of feedback. I hope you understand that.

    Thread Starter Avery1

    (@avery1)

    So sorry for the oversight! My page title problem is fixed. Your plugin has been a lifesaver. Thank you!

    Plugin Author thaikolja

    (@thaikolja)

    I’m glad to hear that. Cheers ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Secondary title not showing in menu’ is closed to new replies.