[Support request] Display Post Excerpt (Summary) Single Post Header

Home Forums Support [Support request] Display Post Excerpt (Summary) Single Post Header

Home Forums Support Display Post Excerpt (Summary) Single Post Header

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1363391
    Brandi

    I’m trying to change the individual post header to display as title / excerpt (summary) / meta.

    Right now I have the following in the header element but none of my variations of {{entry-excerpt}} seem to be working.

    Site is in development stage.

    <h1>
    {{post_title}}
    </h1>`
    {{entry-excerpt}}
    <div class=”post-meta”>
    {{post_date}} by {{post_author}}
    </div>

    #1363600
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You can build a simple shortcode which will output it for you:

    add_shortcode( 'excerpt', function() {
        return get_the_excerpt();
    } );

    Then you can use [excerpt] in your header.

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