SOLVED: Custom taxonomy Archive page

I am using WP Recipe Maker plug-in for cooking recipes. This plug-in generates Custom Taxonomy from various purposes, eg. Cuisine, Ingredients, Keywords.
The Wordpress default “Category” is working correctly with my Bricks Archive template.

The all custom Taxonomy are recognised by Bricks when I am editing templates.

I realised that Archive pages for these custom taxonomy are not working correctly. The plug-in developer suggested to check to see the issue happens with a Wordpress default theme (Twenty-Twenty) and the issue does not happne with the theme.

It looks like something related to Archive.php in Brick but I do not to know how to overcome this issue.

Could someone please shed a light please?

Regards,
Shin

Hi Shin,
puh… the plugin seems kinda weird :sweat_smile:

But here’s how I got it to work. Please enable the following settings:

Then I created an Archive Template (including Loop Posts " Recipes) with the following conditions:

Since I only have a test recipe it looks like this (Test Recipe is the recipe title):

Best regards,
timmse

1 Like

Hi @timmse,
Thank you for testing it out for me. I did furhter tweak based on your suggestion, it looks like ‘Recipe Existence’ needs to be set as ‘Public’ and set appropriate Archive Terms on a teamplate as you suggested.

This plug-in seems to be relatively popular between food recipe bloggers so I contacted the developer of the plug-in and he advised me that it does not has to be set as ‘Public’ to use the Custom taxonomy and it did work with other Theme even if the recipe existence is set as Private. So there must be some compatibility issue with Bricks.

But now it is working now so I am happy as I can move onto other stuff.

Thank you for your time :slight_smile:

Regards,
Shin

1 Like

Having the same with the taxonomy for event-categories on Events Manager plugin.

Really confused what the heck I am trying to filter through on Bricks to get it to flag those templates, ha. I have used archive and targeted the Post Type eventually it hi-jacks the page and template, but pulls no information at all for the page and just uses the template blank- which means I have targeted the wrong type it seems.

Is there a method for custom taxonomy pages in Bricks please?


As above, first screenshot is settings and second is the template returning on the URL with no content and the default archive title

EDIT: from @timmse comment last time I had issues, I have enabled Bricks builder on Events (I don’t want, nor need it for them though) and suddenly It’s now pulling the body copy in on the archive. The title though is for the Post Type, not the Terms nor Tax or Archive page :slight_smile:

Sorry to keep adding:

I managed EVENTUALLY to get this to sort of work, using the below settings:



I did find though if I set the populate content option, below, to anything but blank it would return that content on every single template? Is that how this works? I thought that populate content option was just for us in the builder to get an idea of how content might loop - but it seemed to affect the front end too as it was returning only what I had set as the option for that for the titles…

I had to use the code shown on the image attached as the shortcode for the term name just was returning the post type only.

Hey @timmse Is this thread closed? Just curious. Today for the first time I’m creating a singular template for Taxonomy term in a custom Post type. So I added a template condition and then added a term as populate content. But it seems like preview doesn’t work. But when I view a term using view option in term template is applied to that term. But cannot populate content for preview purpose. I’ll attach screenshots below

Can’t upload images. It gives an error. But I uploaded them and here’s the links.

New user error. Only 2 links can add. Will add another 2 in new comment

I just noticed that there is no default archive page for taxonomy that would list terms. I would think we should have an archive for any custom taxonomy that lists all the terms?
Any ideas?

2 Likes

Did you find any solution for this?

You’ll have to make a page at the same slug as the taxonomy root, then create your own archive.

1 Like

I have also been struggling with creating and assigning a template to a custom taxonomy I created with ACF. No matter what I’ve tried, it seems that what @Wingtracer said above is what works (make a page with the same slug as the taxonomy root, then create your own archive.)

@timmse is this the only way to have an archive page for a custom taxonomy?

It is indeed the only way. That’s just the way taxonomies work in wordpress. No reason to fight it :stuck_out_tongue:

1 Like