WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Plugin: WordPress SEO by Yoast with custom fields in the titles (5 posts)

  1. lucrothe
    Member
    Posted 2 years ago #

    I'm using the WordPress SEO by Yoast and I would like to use my own custom fields in the titles, not just the predefined custom fields he defines at the end of the title page. For example I have a custom field called "State" with a value of "New York". How could I get the "Title template:" to show the state value? It would look something like this:

    %%State%% - %%title%%

    Thanks in advance!

  2. spicydesign
    Member
    Posted 2 years ago #

    %%cf_<field name>%%

  3. lucrothe
    Member
    Posted 2 years ago #

    Thanks Spicydesign, that worked!!

  4. Pranjal Gupta
    Member
    Posted 2 years ago #

    Hello, I am trying out %%cf_<field name>%% but it's not working for me? I am using it like %%cf_<price>%% and here price is the name of my custom field.

    Thanks!

  5. Pranjal Gupta
    Member
    Posted 2 years ago #

    Oh let it be, I just figured it out myself, and it worked! :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.