[Waiting for user feedback] 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.

You are not logged in. You can view support threads, but not post.
If you are already logged in, please refresh your browser.

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 days, 11 hours 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:

http://www.example.com/watch/mens-watch/test-watch

it shows

http://www.example.com/uncategorized/test-watch

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: http://example.com/product-category/watch/mens-watch/
Single Product link: http://example.com/shop/watch/mens-watch/test-watch/

For more info:
https://www.youtube.com/watch?v=-YJ190Kne6A
https://docs.woocommerce.com/document/permalinks/
https://www.templatemonster.com/help/woocommerce-how-to-setup-and-manage-shop-permalinks.html

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)

You are not logged in. You can view support threads, but not post.
If you are already logged in, please refresh your browser.

Known issues and their solutions

We document known issues and their solutions in Toolset erratas. Save time by checking there first and seeing if what you are facing is a known issue. This list is kept short. We do our best to resolve all known issues with every release of Toolset plugins.

Support Policy

Toolset staff will help you use the Toolset plugins correctly, provide any information you need, help troubleshoot problems and advice on best-practices.

Please make sure to issue only one topic per each support ticket.

For more information, read our full Customer Support Policy.

Need custom programming work for your site? Check out our certified partners.