- This topic has 9 replies, 4 voices, and was last updated 5 years ago by Tom.
-
AuthorPosts
-
January 22, 2018 at 11:25 am #477359Craig
Hello,
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!
Craig
January 22, 2018 at 2:34 pm #477490LeoStaffCustomer SupportHi Craig,
I would recommend giving Tom’s WP Show Posts plugin a shot and see if it does what you want:
https://en-ca.wordpress.org/plugins/wp-show-posts/If not can you provide a quick example of what it should look like?
Let us know 🙂
January 22, 2018 at 7:13 pm #477634CraigHi Leo,
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
- Architects/Build/Design
- Advocacy
- Associations
- Bank Products & Services
- …etc.
When clicking on Architects/Build/Design
Architects/Build/Design- Acme Architects (title is a link to their ‘post/page’)
- Donovan Designs
- Buildings by Bob
- …etc.
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 DeveloperSo this is a page which lists out custom taxonomy titles with their posts titles below?
January 23, 2018 at 7:51 am #478088CraigHi Tom
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:
https://developer.wordpress.org/reference/functions/get_terms/Thanks
January 23, 2018 at 10:36 pm #478536TomLead DeveloperLead DeveloperAh yes, you’re right. Here are some pretty good examples: https://developer.wordpress.org/reference/functions/get_terms/#comment-288
January 24, 2018 at 5:09 am #478753CraigGreat. Thanks Tom…I’ll take a look at these.
January 24, 2018 at 9:25 am #479012TomLead DeveloperLead DeveloperThe last example in that comment should have everything you need 🙂
April 25, 2019 at 12:24 pm #879592DanHi Tom
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?
Cheers
April 25, 2019 at 3:59 pm #879741TomLead DeveloperLead DeveloperThose would go into your
archive.php
template. -
AuthorPosts
- You must be logged in to reply to this topic.