Override Display Content Limit with Display Excerpt in template

Community Forums Forums Design Tips and Tricks Override Display Content Limit with Display Excerpt in template

This topic is: not resolved

This topic contains 3 replies, has 3 voices, and was last updated by  Sridhar Katakam 5 months, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #88724

    jamesbo
    Member
    Post count: 1

    Here is my setting: Genesis > Theme Settings > Content Archives > Display Post Content Limit
    That is fine. I want to use it site-wide except for a specific archive template where I want to show Post excerpt only.
    Is there a code snippet to do this? Thanks

    #99947

    Susan
    Moderator
    Post count: 9010

    As you posted this a while back, I hope you were able to get your issue resolved. If not, please check back in, and I will escalate for you. Thanks!

    If your issue was resolved, go ahead and mark this as “resolved”, so it can be closed.


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #100075

    jamesbo
    Member
    Post count: 1

    Hi Susan!

    Thanks for coming back. Since I just need this in a rare template, I did not bother digging deeper. I will appreciate if you can escalate this. If someone can provide a snippet then I will definitely use it.

    Best regards,
    James

    #100158

    Sridhar Katakam
    Participant
    Post count: 1019

    Try adding this in your archive template file:

    add_filter( 'genesis_pre_get_option_content_archive', 'sk_show_excerpts' );
    
    function sk_show_excerpts() {
    
    	return 'excerpts';
    	
    }

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.