Want full content on one category only

Community Forums Forums Design Tips and Tricks Want full content on one category only

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  nutsandbolts 4 months, 1 week ago.

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

    webcami
    Participant
    Post count: 52

    Hi! I need help. I’ve been looking for answers through google and nothing I found worked.

    I want to have this category only be full content and NOT an excerpt:

    http://xgym.com/testimonials/

    This is the associate theme. Nothing here, including the link out, worked for me:

    http://www.studiopress.com/forums/topic/how-to-do-conditional-post-excerpt-vs-full-content-based-on-category/

    Thank you if you can help me!

    http://xgym.com/testimonials/
    #103908

    nutsandbolts
    Moderator
    Post count: 3130

    Associate is an older XHTML child theme, so the tutorial linked on that thread would have to be modified for XHTML hooks. Try this one:

    add_action( 'genesis_before_loop', 'sk_full_content_specific_category' );
     
    function sk_full_content_specific_category() {
      if (is_category('testimonials')) {
    		remove_action( 'genesis_post_content', 'genesis_do_post_content' );
                    add_action( 'genesis_post_content', 'sk_do_post_content' );
    	}
    }
     
    function sk_do_post_content() {
    	the_content();
    }

    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

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

You must be logged in to reply to this topic.