# Register archive for custom taxonomy

**URL:** <https://forum.pinegrow.com/t/register-archive-for-custom-taxonomy/3747>\
**Category:** Pinegrow WP\
**Created:** [February 3, 2020, 11:01am UTC](https://forum.pinegrow.com/t/register-archive-for-custom-taxonomy/3747 "2020-02-03T11:01:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pugh](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@pugh](https://forum.pinegrow.com/u/pugh)\
**Post date:** [February 3, 2020, 11:01am UTC](https://forum.pinegrow.com/t/register-archive-for-custom-taxonomy/3747/1 "2020-02-03T11:01:46Z")

</div>

When registering a custom taxonomy with the WP Theme Converter, there does not seem to be the option to enable archives, like there is when registering a custom post type.

What’s the best way to enable archives for custom taxonomies created with the Theme Converter?

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [February 4, 2020, 10:57am UTC](https://forum.pinegrow.com/t/register-archive-for-custom-taxonomy/3747/2 "2020-02-04T10:57:56Z")

</div>

Hello Chris,  
​  
Generally speaking, If the option you are looking for is not available from the Pinegrow / Pinegrow Theme Converter UI, you will have to proceed differently (by adding a code snippet in functions.php for example).  
​  
For example, ​you can use the excellent generator here [https://generatewp.com/taxonomy/](https://generatewp.com/taxonomy/) to create custom taxonomies with exhaustive configuration settings.  
​  
However, thanks for your suggestion, the Pinegrow Development team is now informed about your question.

note: please be aware that this is by no means a guarantee of future integration.

Have a very nice day.

You should also have a look at:  
[https://developer.wordpress.org/themes/template-files-section/taxonomy-templates/](https://developer.wordpress.org/themes/template-files-section/taxonomy-templates/)

---

<div class="post-metadata">

**Author:** ![pugh](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@pugh](https://forum.pinegrow.com/u/pugh)\
**Post date:** [February 5, 2020, 3:25pm UTC](https://forum.pinegrow.com/t/register-archive-for-custom-taxonomy/3747/3 "2020-02-05T15:25:21Z")

</div>

Thanks Emmanual.

I realised in the end that I did not need to register an archive, but rather create the template file:

archive-{taxonomy}.php

In my case, this template file is archive-events.php (my custom post type is named “events”).

On the archive-events.php template, I then attached the Show Posts Smart Action to the appropriate part of the template, and set the Loop type to custom query. I then set the Post type to my custom post type (events).

From there, I converted the Smart Action into regular WordPress settings. I then entered the following settings as the Taxonomy parameters:

![custom taxonomy](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/d/d46ccafcf34ad4bf867b65520317ed0aa8e95b45.jpeg)

To summarise:

My custom post type is named events  
A custom taxonomy (called “location”) has been registered for the events custom post type.

The above settings ensure that if someone visits /location/{location-name}/ e.g /location/london/, the template only shows events that have had the custom taxonomy of London added to them.

If anyone else has a question around this, feel free to reply.

---

<div class="post-metadata">

**Author:** ![465media](https://avatars.discourse-cdn.com/v4/letter/4/a698b9/32.png) [@465media](https://forum.pinegrow.com/u/465media)\
**Post date:** [April 12, 2020, 10:58pm UTC](https://forum.pinegrow.com/t/register-archive-for-custom-taxonomy/3747/4 "2020-04-12T22:58:38Z")

</div>

@pugh would you mind sharing any screenshots of your show posts smart action? I am trying to do somethign similar and cant get is down.

Post type is ‘our\_work’  
Terms Is ‘work\_type’  
page is exported as taxonomy-work\_type.php  
URL for the term would be like ‘/work\_type/design/’

In my sow post smart actions I have the following -[https://www.screencast.com/t/dhNHkbE9zgtY](https://www.screencast.com/t/dhNHkbE9zgtY) and my “The Loop” setup the same as yours.

I think I have the right template name, but maybe I just dont.

---

<div class="post-metadata">

**Author:** ![pugh](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@pugh](https://forum.pinegrow.com/u/pugh)\
**Post date:** [April 13, 2020, 12:17pm UTC](https://forum.pinegrow.com/t/register-archive-for-custom-taxonomy/3747/5 "2020-04-13T12:17:42Z")

</div>

@465media I have converted my Smart Action into regular WordPress actions. If you do this, it will show the additional options that I have shared in the screenshot above. See if that helps, and if not send over the settings that you have entered and I will have another look.

---

<div class="post-metadata">

**Author:** ![465media](https://avatars.discourse-cdn.com/v4/letter/4/a698b9/32.png) [@465media](https://forum.pinegrow.com/u/465media)\
**Post date:** [April 13, 2020, 2:00pm UTC](https://forum.pinegrow.com/t/register-archive-for-custom-taxonomy/3747/6 "2020-04-13T14:00:19Z")

</div>

@pughSo here is my structure [https://www.screencast.com/t/8RZeAzBTkw3W](https://www.screencast.com/t/8RZeAzBTkw3W)

Site Content [https://www.screencast.com/t/WvWyluXPgd0](https://www.screencast.com/t/WvWyluXPgd0)  
– Show Post Smart Action setting the custom query. [https://www.screencast.com/t/dhNHkbE9zgtY](https://www.screencast.com/t/dhNHkbE9zgtY)  
---- The Loop with the query for the taxonomy terms. My Taxonomy parameters [https://www.screencast.com/t/L6IYT89mSn](https://www.screencast.com/t/L6IYT89mSn)

---

<div class="post-metadata">

**Author:** ![pugh](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@pugh](https://forum.pinegrow.com/u/pugh)\
**Post date:** [April 13, 2020, 4:05pm UTC](https://forum.pinegrow.com/t/register-archive-for-custom-taxonomy/3747/7 "2020-04-13T16:05:38Z")

</div>

Is the work\_type taxonomy registered to the our\_work custom post type?

Also notice in my post above I needed to create archive-{taxonomy}.php and not taxonomy-{term}.php

Here are the additional settings from my Loop:

The custom post type it is being used on is `events`

![Capto_Capture 2020-04-13_04-57-58_pm](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/0/0f7c1e86ac8d9a8412ad2a57d63025669ec6d426.png)

 ![Capto_Capture 2020-04-13_04-58-39_pm](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/d/d0d3b32259ed81c9e5e7814a7faa5551c74a9dae.png)

---

<div class="post-metadata">

**Author:** ![465media](https://avatars.discourse-cdn.com/v4/letter/4/a698b9/32.png) [@465media](https://forum.pinegrow.com/u/465media)\
**Post date:** [April 13, 2020, 6:45pm UTC](https://forum.pinegrow.com/t/register-archive-for-custom-taxonomy/3747/8 "2020-04-13T18:45:10Z")

</div>

@pugh  
Yes the work\_type is registered to the our\_work.  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/7/791b3c36d4c253fa985085ce73585733f4809a4a.png)  
Interesting thought and I have tried to open a ticket with support.

> BlockquoteI register a custom Taxonomy for a CPT, the taxonomy list does not appear on the post edit page [2020-04-08\_08-17-57.png](https://www.screencast.com/t/geeKtjGh1olL) like it might on the standard post [2020-04-08\_08-18-38.png](https://www.screencast.com/t/3DtiVmCs)

> Blockquote However it does appear in the quick edit screen on the wp-admin/edit.php?post\_type=our\_work See screenshot [2020-04-08\_08-15-36.png](https://www.screencast.com/t/8njH029Cd5)

My template works fine for the archive-our\_work.php and as your suggestion I changed this to archive-work\_type.php and still no results found. Frustrating.
