• 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 Hierarchical Archive & Taxonomy Templates

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 Hierarchical Archive & Taxonomy Templates

This topic is: not resolved

Tagged: archive, CPT, Custom post, Custom Post Type, taxonomy, template, term

  • This topic has 3 replies, 2 voices, and was last updated 11 years ago by electricbrick.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • June 25, 2014 at 4:08 pm #111335
    electricbrick
    Participant

    Recently I built a Faculty CPT-based plugin for our school's faculty member directory. The Faculty CPT has a single taxonomy of 'department' and the subsequent child terms of that taxonomy are our 5 main schools, followed by their respective academic departments as "grandchild" terms.

    I'm attempting to create three templates (with little success):

    1. A master archive of all Faculty, separated by school and then department, with faculty organized by name and entries showing in 3 columns.
    2. A top-level school archive separated by department, and with faculty organized by name and entries showing in 3 columns.
    3. A department-level archive with faculty organized by name and entries showing in 3 columns.

    Here's what I have:

    Faculty Archive Attempt 1

    The above is partially derived from this tutorial.

    Faculty Archive Attempt 2

    I've also been wrestling with the following code, but still cannot seem to get these archives to work. Any guidance would be appreciated — please let me know if I'm omitting any other details that would be helpful.

    http://su2.edu.70-32-99-102.electricbrick.co/blog/faculty/
    June 25, 2014 at 6:47 pm #111565
    carrieoke13
    Participant

    So this may not be helpful at all, but I recently needed a page displaying all posts in my custom taxonomy, separated by terms (Which may be what your master archive would be?) I tried a gazillion tutorials and this is the one that finally worked for me:
    http://vimodesigns.com/wordpress/how-to-list-all-posts-in-a-custom-taxonomy-separated-by-terms/ Just posting it in case there is something there to help troubleshoot your issue.

    Also - could you get the list working, and then do the columns with css instead of in the template? The archive portfolio template in the minimum pro theme or executive pro theme could be helpful.

    June 26, 2014 at 9:22 am #111631
    electricbrick
    Participant

    Thanks, Carrie. This is a LOT closer, plus very simple and elegant. With this new code, the output is showing faculty under the parent terms and the child terms at the same time, however.

    As far as the columns, I suppose I can use CSS, but for some reason I had it in my head that I was going to implement a grid loop in order to get each row to return cleanly and not have to rely on floats.

    Again, thanks a million!

    June 26, 2014 at 2:05 pm #111660
    electricbrick
    Participant

    So, I've been able to get my faculty bio info to show up in archives using your code, Carrie. Still can't figure out how to get it to not put faculty posts under the parent terms, or how to use the code to autodetect the slugs and only show department-related terms when in a specific department.

    Here's an updated Gist.

    http://su2.edu.70-32-99-102.electricbrick.co/blog/faculty/

    http://su2.edu.70-32-99-102.electricbrick.co/blog/department/biology/

  • 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