How to assign Category template to a custom taxonomy?

Posted in: Newspaper
Post count: 37

Hi

I have created a custom taxonomy with categories separate from my WP posts, using the CPT UI plugin.

I want to have the custom categories displayed in a specific category cloud template.

I have created an additional cloud template but can’t work out how I add it to my custom taxonomy exactly.

I have looked through your documentation but I can’t find a clear understanding of how to to this.

Please can you explain what I need to do exactly?

Thank you
antonmh

Post count: 21065

Hello!

Unfortunately, you can not assign a category template to a custom taxonomy. You can create an identical cloud template, but not use the one from the simple category because it uses other shortcodes. Go to the Cloud Templates -> CPT/Taxonomies. There you can find your taxonomies and manage your cloud templates(add,edit,delete,etc). From that + you can add a blank template and customize it as you like, add elements you need, or add an existing one.

Thank you!

Post count: 37

Hi Bettina

Thanks for your reply.

Yes, I read about creating one from CPT/Taxonomies which I have done, but it is still not working from there either.

When I open it to edit, from the post loop I am not able to connect to the taxonomy of the custom categories. Nothing is coming through and no options are showing for me?

Post count: 37

Hi Bettina

I think it is working now.. so I will play around with things and get back to you if I need to.

Thanks

Post count: 37

Hi Bettina

Ok, I needed to re-create a new taxonomy as it needed to be named differently and I couldn’t change what I did before (it would not let me!).. so I did everything again like before in CPT UI..

After I did this I created a new category template (under CPT/Taxonomies) from the blank template but I am again unable to get the category to feed through to the template, the same problem that I had at the start.

I have checked that I am adding things correctly but it appears that something is wrong somewhere.

Please can you give me some other suggestions of how I can resolve the issue?

Thank you
antonmh

Post count: 21065

Hello!

You should import a custom taxonomy template for your taxonomies, not category template.

Thank you!

Post count: 37

Hi Bettina

Ok, so I have pressed the + sign and added a Taxonomy template, I can only add it under the archive area, there is no other option:

image 1

Then I have added a loop 2 in the composer:

image 2

..but categories are not coming through.

Is it correct that the taxonomy template is in the archive area? There isn’t any other option showing, is that correct?

Thank you

  • This reply was modified 1 year by antonmh.
Post count: 21065

Hello!

Yes. However, setting up the block to display your listings is incorrect. You should specify the name of your taxonomy in the post type option in a flex block or flex block builder if you want to add a custom module: https://forum.tagdiv.com/flex-block-settings-guide/ More info here: https://forum.tagdiv.com/modules-builder-newspaper-theme/ -> https://forum.tagdiv.com/flex-block-builder-flex-loop-builder/

Thank you!

Post count: 37

Hi Bettina

I have managed to get it to all work now. I am not really sure how 🙂

Things ‘miraculously’ appeared.. and also I am able to use a loop 2 function as well. It’s like the website got fixed with an AI developer.

I have another small issue with my layout but I will post that separately in a new thread.

Thanks for your help.

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.