[Plugin: WordPress SEO by Yoast] Can't override title on posts page
-
When I have a static homepage + separate posts page set, and using the WordPress SEO plugin with default settings, the title for the posts page solely contains the title of the page (no blog name). Attempting to override this with the SEO Title field on that page does not change anything.
Had a quick look into the plugin and I saw why: in the title() function in frontend/class-frontend.php, lines 91 onwards, we have:
if ( $this->is_home_static_page() ) { ... } else if ( $this->is_home_posts_page() ) { ... } else if ( $this->is_home_static_page() ) { ... }
The third block is where all the code for this posts page is handled, but since $this->is_home_static_page() is true in the first if condition, ‘else if’ will always return false in the third.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘[Plugin: WordPress SEO by Yoast] Can't override title on posts page’ is closed to new replies.