Custom Post Hierarchical Archive & Taxonomy Templates

Community Forums Forums General Discussion Custom Post Hierarchical Archive & Taxonomy Templates

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  electricbrick 1 year, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #111335


    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.


    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: 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.



    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!



    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.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.