• Resolved Robert

    (@hartlrobert)


    if(function_exists('seo_title_tag')) { seo_title_tag(); }
    is not working anymore.
    PHP 7.2, WP 5.2.2. plugin latest version
    That is not good for the rankings.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Robert

    (@hartlrobert)

    ?
    We habe several sites with this problem after updating to the latest version.

    I prefer using your plugin instead of changing the code in all templates in something like this:
    if( get_post_field( "meta_title", get_the_ID())) { echo do_shortcode(get_post_field( "meta_title", get_the_ID())); } else { echo wp_title(''); }

    Thread Starter Robert

    (@hartlrobert)

    Alternative correct code without plugin:
    if(get_post_field("title_tag", get_the_ID())) { echo do_shortcode(get_post_field("title_tag",get_the_ID())); } else if(function_exists('seo_title_tag')) { seo_title_tag(); } else { wp_title('');

    Thread Starter Robert

    (@hartlrobert)

    the function seo_title_tag() itself is missing.
    Copy the old function code in the themes functions.php and it is working.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘seo_title_tag not working’ is closed to new replies.