• 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

Adding list of custom post type to page_archive.php

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 › Adding list of custom post type to page_archive.php

This topic is: resolved

Tagged: archives, Custom Post Type

  • This topic has 5 replies, 3 voices, and was last updated 12 years, 1 month ago by bizedge.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • January 4, 2014 at 6:16 pm #83280
    lucaslem
    Member

    Working from the genesis framework (custom child theme) I am wanting to use the page_archive.php template as a sitemap. Beyond listing recent blog posts via wp_get_archives, I would like to list custom post type posts.

    I am able to list custom taxonomy with wp_list_categories, but it's the actual posts I would like to list and not the categories. I have googled this for a while but coming out confused from what I am reading.

    Is there something like wp_get_custom_post_archives (and associated arguments)?

    Thank-you.

    January 4, 2014 at 7:22 pm #83297
    Sridhar Katakam
    Participant

    Try http://bajada.net/2010/07/15/adding-custom-post-types-to-wp_get_archives

    Source: http://wordpress.org/support/topic/how-to-get-funcitons-like-wp_get_archives-to-work-with-custom-post-types#post-1652998 via https://www.google.com/search?q=wp_get_archives+custom+post+type


    Genesis Tutorials | Follow me on Twitter

    January 6, 2014 at 3:27 pm #83652
    lucaslem
    Member

    Sridhar,

    Thank-you for the snippet. It does work in that my custom posts now appear in the general posts lists, but I suppose I should have been more specific: I would like to display the CPT's in their own list, separate from the blog posts. In other words:

    What I currently have:

    Custom Post Types:
    -- nothing

    Blog posts:
    -- blog post one
    -- custom post type one
    -- blog post two
    -- custom post type two
    -- and so on

    What I'm trying to achieve:

    Custom Post Types:
    -- custom post type one
    -- custom post type two
    -- and so on

    Blog Posts:
    -- blog post one
    -- blog post two
    -- and so on

    Thanks for any help 🙂

    January 6, 2014 at 6:23 pm #83686
    Sridhar Katakam
    Participant

    Follow http://sridharkatakam.com/displaying-cpt-entries-genesis-archive-page-template/


    Genesis Tutorials | Follow me on Twitter

    January 9, 2014 at 4:29 pm #84256
    lucaslem
    Member

    Sridhar you're awesome! This is just what I needed. Combined with custom taxonomy queries in the shortcode, I managed to make the sitemap even better than I had hoped 🙂

    July 17, 2014 at 1:07 am #114617
    bizedge
    Member

    Sridhar,
    Am using the Executive Pro theme. Installed the plugin you recommended plus edited page_archive.php as per your instructions.
    The custom post types are now showing in the Genesis Archive page but it list only 10 entries and not the full list of 47 entries. How do I get it to list everything?

    Do advise and thanks in advance.

    Regards
    Andrew

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

© 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