Skip Navigation

[Resolved] Yoast custom field analysis with RFGs

This support ticket is created 3 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 3 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#2125917
Screen Shot 2021-07-27 at 11.13.26 am.png

Tell us what you are trying to do?
Get Yoast to analyse custom fields, which are all inside RFGs.

Is there any documentation that you are following?
All recent forum posts on this site as well as the course document "SEO for custom fields using Toolset and Yoast SEO in WordPress" and also Yoast website.

Is there a similar example that we can see?
No, backend.

What is the link to your site?
Given above.

I know the Yoast custom field analysis glitch was resolved in April, but I am running everything up to date and it is still not working, making Yoast next-to-useless on the site as most content is in custom fields.

Can Yoast analyse custom fields within RFGs?
Is the premium version of Yoast required for integration with Toolset?

Thanks, Peter

#2126161

Hello,

The Toolset Repeatable Field Groups are based on one-to-many relationship, so each item of RFG is also one single post, the RFG post type slug is same as RFG slug, so they are different post types, as a result, Yoast won't analyse custom fields within RFGs

#2126239
Screen Shot 2021-07-27 at 6.12.05 pm.png

Thanks Luo.
That makes sense to me now but wouldn't have when I built the site 2 years ago. It could be made clearer to people in the docs, and perhaps remove the Yoast option from fields when setting up a RFG?
Regards, Peter

PS Do you think it would be feasible to merge the RFG field data into the page analysis using a technique along these lines: hidden link

#2126319

Yes, it is possible with custom codes, for example, in the document you mentioned above, PHP function addContent():

    addContent( data ) {
        data += "Hello, I'm some additional data!";

        return data ;
    }

you can use Toolset relationship API function toolset_get_related_posts() to get items of RFG
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_get_related_posts
And get the custom fields value of RFG
https://developer.wordpress.org/reference/functions/get_post_meta/
And add them into the result "data"