- This topic has 9 replies, 4 voices, and was last updated 1 year, 7 months ago by Tom.
January 22, 2018 at 11:25 am #477359Craig
I’m struggling with creating an archive page for my custom taxonomy – resource_categories.
I want to display/hyperlink the resource categories on this archive page – not the actual posts. The idea is to see all the categories on page, and visitors can drill down into each category from there.
Is this possible? Do I have to create a custom page template?
Thanks for any suggestions!
CraigGeneratePress 2.0.2GP Premium 1.5.6January 22, 2018 at 2:34 pm #477490LeoStaffCustomer Support
I would recommend giving Tom’s WP Show Posts plugin a shot and see if it does what you want:
If not can you provide a quick example of what it should look like?
Let us know 🙂January 22, 2018 at 7:13 pm #477634Craig
Yep, I’ve got a license for WP Show Posts Pro…great plugin, but I don’t think it’ll help me on this one.
Basically, this is a ‘directory’ with multiple businesses in each category. I need an archive page that displays links to the various resource categories – the taxonomy terms.
Resource Categories (a custom taxonomy)
- Accounting Services
- Bank Products & Services
When clicking on Architects/Build/Design
- Acme Architects (title is a link to their ‘post/page’)
- Donovan Designs
- Buildings by Bob
Hope that helps. I was hoping to leverage native taxonomy pages, but that doesn’t seem to work.
Thanks!January 22, 2018 at 9:10 pm #477675TomLead DeveloperLead DeveloperJanuary 23, 2018 at 7:51 am #478088Craig
The ‘landing’ page would be a display of all of the resource categories (a custom taxonomy): accounting services, architects, etc. (posts are not displayed on this page…just the taxonomy term)
Clicking on the resource category title takes you to a page with all of the posts. This page is already done…just a taxonomy archive page.
It’s the first landing page – all of the custom taxonomy terms. Didn’t realize it’d be so difficult to construct.
I’m guessing I have to build something based on this:
ThanksJanuary 23, 2018 at 10:36 pm #478536TomLead DeveloperLead Developer
Ah yes, you’re right. Here are some pretty good examples: https://developer.wordpress.org/reference/functions/get_terms/#comment-288January 24, 2018 at 5:09 am #478753Craig
Great. Thanks Tom…I’ll take a look at these.January 24, 2018 at 9:25 am #479012TomLead DeveloperLead DeveloperApril 25, 2019 at 12:24 pm #879592Dan
Could I ask that with the example you referred to in the link – does that code need to be added to functions.php or to a new archive.php template?
CheersApril 25, 2019 at 3:59 pm #879741
- You must be logged in to reply to this topic.