Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2821657
Post Excerpt Not Showing
Closed

Comments

  • nyehouse started the conversation

    Hi there. Post excerpts (on individual post pages, not home page) seem to be hidden. Other Layout Options > Remove Post Excerpt is already turned off. I can't figure out how to make the excerpts show.

  •  2,615
    PenciDesign replied

    Hi,

    Do you mean posts all on the Related Posts section? This section only shows the title, not show post exceprt.

    But if you want to add the except content, please download the attachment file and overwrite the path:

    inc/templates/related_posts.php

    Regards,
    PenciDesign.

  • nyehouse replied

    No, I meant regular posts. The excerpt isn't showing up.

  •   PenciDesign replied privately
  •   nyehouse replied privately
  •  2,615
    PenciDesign replied

    Hi,

    By default, the custom excerpt only displays on the archive/category/tags/search page.

    I've added this on a single page by adding the custom Snippet.

    add_filter('the_content','nyehouse_add_custom_excerpt_to_single_post');
    function nyehouse_add_custom_excerpt_to_single_post($content) {
        $excerpt = '';
        if ( has_excerpt() && is_single() ) {
            $excerpt = '<h4>'.get_the_excerpt().'</h4>';
        }
        return $excerpt.$content;
    }
    Please clear your site cache to take effect.

    Regards,
    PenciDesign.


  • nyehouse replied

    Thank you so much!