[Resolved] Page Header Excerpts

Home Forums Support [Resolved] Page Header Excerpts

Home Forums Support Page Header Excerpts

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #492757
    Tiago

    Hi there,

    Is it possible to add the page/post excerpt into the page header add-on like {{post_excerpt}} (didn’t work for me)

    Thanks!

    #493048
    Tom
    Lead Developer
    Lead Developer

    Since it’s a metabox, you should be able to do this:

    {{custom_field.excerpt}}

    Let me know πŸ™‚

    #519519
    David
    Staff
    Customer Support

    Tom,

    cant get this to work.

    David

    #524874
    John

    That didn’t work for me either. Is there some other way to get the page/post excerpt into the page header?

    #525105
    Tom
    Lead Developer
    Lead Developer

    Just looked into this further. Unfortunately it doesn’t look like WP stores the excerpt metabox as a custom field.

    For now, you’d have to use the custom fields metabox.

    In a future version I’ll include an “excerpt” template tag.

    #525242
    John

    Ok thanks. Really enjoying the theme!

    #525606
    Tom
    Lead Developer
    Lead Developer

    Great to hear! πŸ™‚

    #1976273
    Alexander

    Hi Tom,

    wich future version you mean?

    #1976304
    David
    Staff
    Customer Support

    Hi there,

    this topic is really old – its not even related to the Header Element… but it never made the cut on any of the updates to it. This doc explains how to add one:

    https://docs.generatepress.com/article/page-hero-examples/#example-4

    Or better still use the Block Element – Page Hero:

    https://docs.generatepress.com/article/block-element-page-hero/

    It comes with a GP Dynamic Content Block that can display the Excerpt ( amongst other stuff )

    #1976474
    Alexander

    Hi David,

    i just have to say…wow! Great.
    Does it work with custom post type as well and costum post type terms?

    Because i have a custom post type called “Tours” with “Custom Fields “Duration” and “Price”

    ->Block Element – Page Hero: Awesome!

    Alex

    #1976497
    Leo
    Staff
    Customer Support

    It should πŸ™‚

    Please open a new topic if you run into any issues.

    Thanks!

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Page Header Excerpts’ is closed to new replies.