• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Display post excerpts for blog only; not archive pages

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Display post excerpts for blog only; not archive pages

This topic is: resolved

Tagged: archive, blog, category, Excerpt, full content

  • This topic has 6 replies, 2 voices, and was last updated 8 years, 12 months ago by Brad Dalton.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • June 11, 2014 at 4:50 pm #109400
    jodzeee
    Member

    I've got my blog set up using the "blog" template, but I also want to have pages that show posts from another category. I assume that using an archive/category page is the way to go? If so, I would like the full content to show on the category pages, but only the excerpt on the blog page.

    I have poked around and found some snippets, but haven't been able to get anything to work.

    Here's the site:
    http://www.awake-in-life.uncorkeddesign.com/

    Learn More > Latest News is one of the category pages I'm referring to.

    June 11, 2014 at 6:12 pm #109407
    Brad Dalton
    Participant

    You could do this from your functions file or make a custom template for your blog page

    Then use the SP snippets


    Tutorials for StudioPress Themes & WooCommerce.

    June 11, 2014 at 9:07 pm #109414
    jodzeee
    Member

    I don't think I worded my question right. I want to show all content on archive pages and excerpts only on the blog page.

    I finally figured it out.

    add_action( 'genesis_before_loop', 'sk_excerpts_blog_page' );
    function sk_excerpts_blog_page() {
      if ( is_page_template( 'page_blog.php' ) ) {
    		add_filter( 'genesis_pre_get_option_content_archive', 'sk_show_excerpts' );
    	}
    }
    function sk_show_excerpts() {
    	return 'excerpts';
    }
    June 11, 2014 at 11:13 pm #109437
    Brad Dalton
    Participant

    You did and that what my solution provides a custom blog page template.


    Tutorials for StudioPress Themes & WooCommerce.

    June 12, 2014 at 12:38 am #109442
    Brad Dalton
    Participant

    Here's my solution http://wpsites.net/web-design/display-excerpts-on-blog-page-full-content-on-other-archives-in-genesis/


    Tutorials for StudioPress Themes & WooCommerce.

    June 12, 2014 at 11:58 am #109495
    jodzeee
    Member

    Thanks, now I understand what you were getting at. Is there an advantage to doing it that way versus the way I did it above?

    June 12, 2014 at 3:09 pm #109512
    Brad Dalton
    Participant

    More efficient plus you can customize your blog page template without effecting other archives and add content before the loop in the blog page only.


    Tutorials for StudioPress Themes & WooCommerce.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble