• Hi,

    I am using Yoast, ACF and Yoast SEO:ACF Analysis (all activated).

    I would like to display a custom field into the title. I tried to use :

    1 – %%cf_mycustomfieldvalue%%
    2 – %%cf_wpcf-mycustomfieldvalue%%

    But the value never appears.

    Can you help me to do this please ?

    Thanks,
    Bertrand

Viewing 1 replies (of 1 total)
  • Hello,

    I’m sorry, but this has nothing to with what this plugin does. This plugin just makes Yoast SEO take any ACF fields into account then calculating the SEO score.

    I don’t think it’s possible to include an ACF field or any meta filed like that into the page title with Yoast SEO. If you want to do this, you need to use the filter wpseo_title to hook into the title that Yoast SEO generates and add your ACF-field data there. WordPress SEO API Docs: https://yoast.com/wordpress/plugins/seo/api/#filters

    Regards,
    Peter

Viewing 1 replies (of 1 total)
  • The topic ‘Custom field value is not shown’ is closed to new replies.