[wp-trac] [WordPress Trac] #45353: Homepage title none static homepage when static blog page is set

WordPress Trac noreply at wordpress.org
Wed Nov 14 16:28:59 UTC 2018


#45353: Homepage title none static homepage when static blog page is set
--------------------------+-----------------------------
 Reporter:  BackuPs       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.0
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hi

 I have issue with the title of teh page in the browser tab. When i use a
 seo plugin and i have a static blog page set and a non static homepage the
 none static home page show the static blog page title in the browser tab.

 I have tested this with wp 20-17 and various other themes and they all
 have the same issue.

 I tried AIOSEO and YOAST SEO and even if i enter the title for the nin
 static homepage i get the title for the static blog page.

 I reported to both plugin builders and they sais i had to be at wordpress
 core team.

 You can read all details here.  https://github.com/Yoast/wordpress-
 seo/issues/11548

 1) static blog page none static home page. When Index.php is called
 is_home = true  is_front_page=false

 2) static home page none static blog page. When front_page.php is called
 is_home = false  is_front_page=true

 3) none static home page and none static blog page (set it to "your latest
 posts"). When Index.php is called is_home = true  is_front_page=true;

 Exactly as it should be, But only in case 1) the browser tab has the wrong
 title !

 Please advice how to resolve this issue as the none static home page is
 not equal to the static homepage and can have different content then the
 static blog page. It all depends on the theme used if the theme is also
 pulling the default page content and or has a setting for adding content
 into the non static home page.

 One can easily detect the homepage id.... for the none static homepage it
 is 0  https://github.com/Yoast/wordpress-
 seo/issues/11548#issuecomment-438643740

 is_home() should only be true in case 3) and not in case a static blog
 page is used and a none static home page.

 I would like to get this resolved. Please advice.

 Thanks

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45353>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list