• 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

Filter post types to change output

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 › General Discussion › Filter post types to change output

This topic is: not resolved
  • This topic has 4 replies, 2 voices, and was last updated 13 years, 7 months ago by khcreativemedia.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • December 13, 2012 at 8:58 am #4941
    khcreativemedia
    Member

    Hey guys,

    I have a site that uses custom post types. My intent is to have the custom post types show the full content (the_content) instead of the excerpt on the home page, while the regular post type shows the the excerpt. Here is my code that is currently being use to display all post types on the home page:

    remove_action('genesis_loop', 'genesis_do_loop'); // Remove default loop
    add_action('genesis_loop', 'custom_do_cat_loop'); // Execute custom loop
    function custom_do_cat_loop() {
    global $query_args, $paged;  // any wp_query() args
    $args = array('post_type' => array( 'post', 'schedule', 'news', 'quote', 'recommendation' ),
    'paged' => $paged );
    genesis_custom_loop(wp_parse_args($query_args, $args));
    }
    Can anyone tell me what I would need to add to accomplish my goal?

    http://www.fuelingnewbusiness.com

    Thanks,
    Keith

    December 13, 2012 at 6:02 pm #5096
    Jen Baumann
    Participant

    Are you using different sections of content? If so, then it would be easier just to create widget areas and use http://wordpress.org/extend/plugins/genesis-featured-widget-amplified/

    December 14, 2012 at 8:07 am #5205
    khcreativemedia
    Member

    No, these post will flow in within the rest of the posts. So I need them to be filtered somehow so that regular post pull the except and cpt pull the content. Make sense?

    Thanks Jen,

    Keith

    December 14, 2012 at 8:17 am #5206
    Jen Baumann
    Participant

    You could do something like this, targeted just to the post types that you want to do full content (inside conditionals). Of, course, if I understand you correctly

    /** Removes everything form post content **/
    remove_all_actions( 'genesis_post_content' );
    /** Add your custom content **/
    add_action( 'genesis_post_content', 'custom_post_content' );
    function custom_post_content() {
    the_content();
    }

    December 14, 2012 at 8:42 am #5207
    khcreativemedia
    Member

    Makes sense. I'll give it a shot. thanks

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ 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

© 2026 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