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.