Support

Account

Home Forums ACF PRO ACF PRO fields inside of Yoast – meta title and meta Description Reply To: ACF PRO fields inside of Yoast – meta title and meta Description

  • I don’t use that plugin, and I don’t really know what needs to be done.

    The first thing I would do is figure out what is being passed to your filters

    
    add_filter('wpseo_metadesc', run_short_codes_in_meta_desc, 137);
    
    function run_short_codes_in_meta_desc($metadesc)
    {
    echo "<!-- metadesc = $metadesc -->";
    return do_shortcode($metadesc);
    }
    
    add_filter('wpseo_title', run_short_codes_in_title, 136);
    
    function run_short_codes_in_title($title)
    {
    echo "<!-- title = $title -->";
    return do_shortcode($title);
    }
    

    then look in the page source to see what is being passed in.