• 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

Custom Post type excerpts

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 › Custom Post type excerpts

This topic is: not resolved

Tagged: Custom Post Type, Excperts

  • This topic has 1 reply, 2 voices, and was last updated 12 years, 11 months ago by Ozzy.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • April 26, 2013 at 4:44 pm #37972
    jkoop814
    Member

    Hey, I have got a custom post types excerpts to work on the home page with this in home.php

    remove_action('genesis_loop', 'genesis_do_loop');
    add_action('genesis_loop', 'custom_loop');

    function custom_loop() {
    $arg = array(
    'post_type' => 'Publications', // this can be an array : array('guide','guide1',...)
    'posts_per_page' => 6,
    'order' => 'DESC',
    // 'category_name' => 6
    'post_status' => 'publish'
    );
    $query = new WP_Query($arg);
    if ( $query->have_posts() ) :
    while ( $query->have_posts() ) : $query->the_post();
    ?>
    <article>
    <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <div class="post-info"><?php the_excerpt(); ?></div>
    <div class="entry-content"><?php the_excerpt(); ?></div>
    </article>
    <?php
    endwhile;
    endif;
    wp_reset_query();
    }
    genesis();

    Problem is that its not effecting the "Publications" page. Is there a different way of implementing excerpts as the main post format when it has to do with my custom post type "Publications"?

    http://eppc.polymath.io/
    April 26, 2013 at 10:41 pm #38004
    Ozzy
    Member

    you'd need to create a page called archive-publications.php and change the loop there.


    Ozzy Rodriguez | Twitter | Google+

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 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