add_theme_support( 'title-tag' );
-
HI Yoast,
in wp 4.4 we need to add to our theme
add_theme_support( 'title-tag' );because wp_title() is deprecated and now produces a error message in the browser tab title saying so when debug mode is enabled.
However if i do so i need to enable force rewrite titles to get the page to show the correct title.
If i don’t enable the force rewrite titles the page shows me the default title the new wordpress function generates and not the one i entered in the yoast title field.
How to retrieve the correct entered yoast SEO title without enabling force rewrite titles?
Before we could just call wp_title() and the correct title was in there even without the force rewrite title enabled.
Now in wp 4.4 the new function wp_get_document_title() does not return the title as set in the page yoast seo box title settings. In order to get that title i now need to enable the force rewrite titles.
Is yoast SEO wp 4.4 compatibel yet and does it hook into wp_get_document_title() so that function returns the correct title?
If not, When will the update be available?
How to resolve this?
https://wordpress.org/plugins/wordpress-seo/
Is there a public function to call to get the correct title from your plugin? If so which function do i need to call?
The topic ‘add_theme_support( 'title-tag' );’ is closed to new replies.