Tell us what you are trying to do?
I would like to specify dynamic Toolset content to be used in the Yoast SEO: Meta Description field.
Example: on my Post type, I would like to add something similar to "[types field='community-description'][/types]" in the Yoast Meta Description. Does a functionality exist?
Is there any documentation that you are following?
https://toolset.com/2018/09/types-views-and-forms-with-yoast-seo-compatibility-and-custom-code-support/
However, "tell Yoast which custom field include content for SEO" link is broken.
Is there a similar example that we can see?
Screenshot attached for reference.
What is the link to your site?
hidden link
Hi,
Thank you for contacting us and I'd be happy to assist.
I've performed some testing and research online and found that although shortcodes don't work inside the Yoast SEO plugin's meta description field, you can use its template tag feature, to call the custom field values.
( source: hidden link )
Format:
%%cf_{custom-field-slug}%%
Where you'll replace "{custom-field-slug}" with the actual slug of your custom field. Since the custom fields added through the Toolset Types have the suffix "wpcf-" too, you'll also include it, in the tag.
For example, if your custom field's slug for a Toolset Types field is "post-description", the full template tag will be:
%%cf_wpcf-post-description%%
This seems to be working on my test website and you can either include it in the meta description field, available on the individual post/page edit screen or, add it through the global post type settings at WP Admin -> Yoast SEO -> Search Appearance -> Content Types.
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar
My issue is resolved now. Thank you!