You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
page_for_posts: The ID of the page that displays posts. Useful when show_on_front‘s value is page.
So when is_home() == true then get_option( 'page_for_posts' ) always returns '0' and get_the_title( get_option( 'page_for_posts' ) ) always returns a title of the first post.
In home.php that line causes showing a title of the first post in
h1
tag;yith-proteo/home.php
Line 21 in 3d79ca5
It cause a double printing of a title of the first post on home page:
h1
tag aspage-title
h2
tag asentry-title
It should be a hard code or calling a different function to print localized title of home page.
From WordPress Developer Resources:
So when
is_home() == true
thenget_option( 'page_for_posts' )
always returns'0'
andget_the_title( get_option( 'page_for_posts' ) )
always returns a title of the first post.So:
yith-proteo/inc/template-functions.php
Line 221 in 3d79ca5
never shows the correct title.
The text was updated successfully, but these errors were encountered: