[Closed] Custom taxonomy permalink

This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Related documentation: Adding Custom Taxonomies to WordPress and Creating Archives

This topic contains 4 replies, has 2 voices, and was last updated by  Noman 2 months ago. The support staff assigned to this topic is Noman.

Viewing 5 posts - 1 through 5 (of 5 total)
Author
Posts
#568651

Hello. I am using Types to create custom taxonomies for Woocommerce.
I have disabled the builtin WC taxonomies (Product categories & Tags).

I created my own (Watch categories, Jewelry Categories) and populated them. For example under Watch Category I created Watch->Men's Watch.

I did not change the default settings in permalinks.

The problem is that the permalink is not showing the custom taxonomy. Instead it obviously uses a default WP taxonomy (not sure if its WP or WC's). Show insted of:

hidden link

it shows

hidden link

I would appreciate some help on how to solve this.
Thanks

#568716

Noman
Forum moderator

Supporter languages: English (English )

Supporter Timezone: Asia/Karachi (GMT+05:00)

Hi Aris,

Thank you for contacting Toolset Support. This is basically a WooCommerce question as it handles any taxonomy permalinks attached with its products. For this you need to follow below steps:

1. Add Watch as parent category and Men’s Watch as child -- see attached screenshot.
2. Set Permalink Settings as attached.
3. It will give you URLs like this:

Product Category link: hidden link
Single Product link: hidden link

For more info:
hidden link
https://docs.woocommerce.com/document/permalinks/
hidden link

If you need something else than above, please consider posting the issue here:
https://wordpress.org/support/plugin/woocommerce

Thank you

#568723

Noman
Forum moderator

Supporter languages: English (English )

Supporter Timezone: Asia/Karachi (GMT+05:00)

UPDATE: I have just modified above reply with some more details.

#571244

Thank you for your reply.
I understand your suggestion. However and as I previously mentioned, I do not use builtin product categories to group my products. I created custom taxonomies for that.

Just a thought: what is the respective syntax to refer to custom taxonomy directly? I mean the one like '%product_cat%'. Would just including the slug inside suffice? Eg if slug is 'watch-categories' can I refer to it inside permalink settings as

/shop/%watch-categories%

?

#571316

Noman
Forum moderator

Supporter languages: English (English )

Supporter Timezone: Asia/Karachi (GMT+05:00)

Hello Aris,

Eg if slug is 'watch-categories' can I refer to it inside permalink settings as
/shop/%watch-categories%
==> Sorry, you can’t use Custom taxonomies directly in permalink as native taxonomies (categories). It needs some custom coding.
Here is a client that make it to show custom taxonomies in permalink using some code:
https://wp-types.com/forums/topic/display-custom-taxonomy-in-permalink/#post-88991

Its a kind of builtin limitation of WP or WooCommerce itself, so you might want to ask it from their support forums if above client provided code does not work.

Thanks

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘[Closed] Custom taxonomy permalink’ is closed to new replies.