• 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 archive template question

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 archive template question

This topic is: not resolved

Tagged: Custom Post Type

  • This topic has 3 replies, 3 voices, and was last updated 9 years, 11 months ago by Brad Dalton.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 5, 2015 at 12:06 pm #143354
    mel62
    Member

    I have created a custom post type and added 'genesis-cpt-archives-settings' support in functions.php and all is great, but there is no 'read more' link on the archive page so a visitor has to know to click on the header link of an entry.

    It shows this […] but there is nothing to click on and I really prefer for it to say [Read More].

    How can I add that read more link?

    March 5, 2015 at 4:40 pm #143385
    mel62
    Member

    Actually, since no one has responded yet, I would also like to have the option of showing the full content rather than an excerpt.

    Are both of these possible?

    August 10, 2015 at 9:50 am #161937
    sahdow
    Participant

    Providing you are trying to override theme settings and have CPT display differently than regular post types...

    Add to functions - replace CPT with your post type (3 occurrences in following snippet

    add_action( 'genesis_before', 'CPT_conditional_actions' );
    function CPT_conditional_actions() {
        if( is_archive() && 'CPT' == get_post_type() ) {
            //put your actions here
            remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
            add_action( 'genesis_entry_content', 'the_content' );
     
        }
     
    }
    August 11, 2015 at 3:38 am #162012
    Brad Dalton
    Participant

    For the conditional tag, you could also use

    is_post_type_archive('your-post-type');

    Swap out your-post-type with the name of your CPT


    Tutorials for StudioPress Themes.

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

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