[wp-trac] [WordPress Trac] #45353: Homepage title none static homepage when static blog page is set
WordPress Trac
noreply at wordpress.org
Tue Dec 22 18:56:20 UTC 2020
#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: Options, Meta APIs | Version: 4.9.8
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------------+------------------------------
Changes (by sabernhardt):
* component: General => Options, Meta APIs
Comment:
When switching the homepage option from your latest posts to a static
page, the `show_on_front` option changes from `posts` to `page`. This
should require at least a static homepage, yet the Reading Settings screen
and Customizer do not give an error message if no homepage is selected.
(The customizer's instructions include: "To set a static homepage, you
first need to create two Pages. One will become the homepage, and the
other will be where your posts are displayed.")
Yoast only checks the `show_on_front` option value, without making sure a
static front page is set. So the Search Appearance screen does not offer
the option to set title and description there, and the link to the static
front page can have an empty `href`. If the homepage setting is "your
latest posts," Yoast's Search Appearance screen is where to edit the title
and description for the homepage with that plugin.
This probably does not relate to the theme template file, but that part
sounds correct:
https://developer.wordpress.org/themes/basics/template-hierarchy/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45353#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list