Skip Navigation

[Resolved] Simple question Rank Math plugin integration 2024

This thread is resolved. Here is a description of the problem and solution.

Problem:
I want to add a Toolset custom field to the SEO title or description of the post (or custom post type) in Rank Math
Solution:
The customer was able to find a solution for it.

He used the following format to include the field in the Rank Math title:

%customfield(wpcf-field-name)%

Please bear in mind that Toolset fields have the prefix 'wpcf-'.
Relevant Documentation:
https://toolset.com/forums/topic/seo-use-custom-post-data-into-meta-title-or-description/#post-1556117

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 3 replies, has 2 voices.

Last updated by Mateus Getulio 7 months ago.

Assisted by: Mateus Getulio.

Author
Posts
#2693289

Hello, I have a simple but important question for my project planning.

Currently, can a toolset custom field be placed in title or description, occupying Rank Math? I am referring to the SEO title or description of the post (or custom post type). I understand that this has always been possible with Yoast, but I am not sure if it is possible with Rank Math

If not, is there planning to add this feature in the future?

Thanks greetings

#2693294

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

Checking the Rank Math docs, I can see that it is possible to use custom fields in the title:

Item 39 > hidden link
Custom Field (Advanced)
%customfield(field-name)% shows the custom field value in the title of your post. Replace the field-name with the name of your custom field.

For Yoast, it works similarly, please check this example: https://toolset.com/forums/topic/seo-use-custom-post-data-into-meta-title-or-description/#post-1556117

How we name our custom fields in the database is with the format "wpcf-cust-field-slug". Where you add the wpcf- prefix to the custom field slug.

Peharps you could use this information to try to include the desired custom field in the SEO title?

Thank you, please let us know how that goes.
Mateus

#2693519

Thanks for responding, I've tried it and it doesn't seem to work. Do you have a history of it working?

I'm going to write the query directly to Rank Math, eventually this can lead me to other tools in the project I have in mind

#2693725

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

We've had reports of issues trying to configure it with Rank Math, while with Yoast SEO for example, it works without any issues.

Can you please check with the Rank Math support to see if they're able to find a solution or more information on what's preventing it from using the data coming from the custom fields?

Thank you, please keep us posted.
Mateus

#2693899

It wasn't difficult, what happens is that Toolset simply saves this with the suffix "wpcf"

Then we have to write in Rank Math in the following format:

%customfield(wpcf-field-name)%

It may seem obvious but I did the project last year and I had forgotten that important detail

Thanks for directing me to the answer