Skip Navigation

[Resolved] Custom Taxonomy for Custom Post Type

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Shane 5 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#1301089

I have PERMALINKS setup with %category%/%postname%
for wordpress defaults (which is fine, just the way I want it).

I created a custom post type called: Newsletters
I created three categories for this custom post type:
Newsletters
- Business Articles
- Technical Articles

I want the URL to show:
/newsletters/%year%/%month%/%day%/%postname%/

where newsletters is the root slug
%year% = year of post
%month% = month of post
%day% = day of post

Why? Because we plan on publishing monthly newsletters, and I don't want to create categories for each Year/Month/Day of the publication.

Any help you can provide would be of great assistance.

Thank you

#1301093

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Dan,

Thank you for getting in touch.

I believe this would need to be done using some amount of custom code to achieve.

Have a look at the link below.
https://wordpress.stackexchange.com/questions/94817/add-category-base-to-url-in-custom-post-type-taxonomy/188834

Its because you need to setup a custom rewrite rule in php in order to do this.

Take a look at this too.
hidden link

Thanks,
Shane