Archived topic
Title Header When Using Sections and WP Show Posts
1 reply · Started by Vernon Lees on April 26, 2019
Hi all.
I've run into an issue on a site I'm developing.
I am using sections so have added an <h1>TITLE</h1> tag to the first section as the page title is removed when using sections.
However when I use WP Show posts this is seen as part of the body content of the page and therefore appears in the extract.
I guess the question is as to whether I can find a way for the <h1> not to be picked up as part of the extract by WP Show posts, or is there a better way to get around the lack of page title when using sections?
Thanks in advance!
Hi there,
you could use a Header Element:
https://docs.generatepress.com/article/header-element-overview/
This will be added above the content area. And you can use the {{post_title}} template tag to output the title dynamically.