Skip Navigation

[Resolved] SEO: use custom post data into meta title or description

This support ticket is created 4 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 4 years, 4 months ago.

Assisted by: Minesh.

Author
Posts
#1555437

Tell us what you are trying to do?

will it be possible to use Custom Post fields values to compose meta informations for the page?
I mean meta title, description.. I would like to compose a fixed text mixed with dynamic parts that I will get from the post fields. I would like to use SEO plugins like Yoast or Rank Math.
Thanks!

#1556117

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Please check the following link how you can add the custom fields to title:
=> hidden link

You can add the custom field value using the following defination:

%%cf_<custom-field-name>%%

As when you create any field using Types plugin, it prefixes with 'wpcf-YOUR-FIELD-NAME'. So, if you have custom field created using Types plugin mybook. You can add it to your SEO title field as:

%%cf_wpcf-mybook%%

For other complex type custom fields like radio buttons, checkboxes, etc, you can register a custom template variable that.
=> hidden link
Please check the Section "Registering a custom template variable"

You can also use the Types PHP API function to get the custom field value using PHP. You can check the function displayed at top of the following doc.
=> https://toolset.com/documentation/customizing-sites-using-php/functions/

if you need further help with the custom code, you can also consider hiring a professional from our list of recommended contractors:
=> https://toolset.com/contractors/

Maybe you can also check the following plugin if that helps: hidden link

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.