Happy Halloween! Get 20% off GP Premium with the discount code: HALLOWEEN20

[Resolved] Title Header When Using Sections and WP Show Posts

Home Forums Support Title Header When Using Sections and WP Show Posts

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #880524
    Vernon Lees

    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!

    GeneratePress 2.2.2
    GP Premium 1.8.1
    #880560
    David
    Staff
    Customer Support

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.