Skip Navigation

[Resolved] Getting URL settings the way I want them

This support ticket is created 6 years, 5 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#1005362

Hi there,
Thank you for the options and documentation about URLs and Custom Taxonomies. I don't understand much about how this works, so I'm going to ask for specific help accomplishing what I need.

Can you help me set the URL structures for 1) my custom post type and 2) custom taxonomy?

I have Custom Post type "knitting-videos." What I want to accomplish is that each post should have one taxonomy term and I want the taxonomy term to show up in the URL for that post.

Let's say I have a post with the slug "example-video." I set it to the taxonomy term "free videos" (for example).
Right now (default behavior) is: hidden link.
What I want is hidden link.

In addition, I need help with the URL structure of the taxonomy term.
Let's say I have a Custom Taxonomy for knitting videos called "video-category."
I have set a taxonomy term "free-videos."

Right now to get to the default archive page for all posts in the "free-videos" category, the URL (default behavior) is hidden link.
What I want is hidden link.

How can I make this happen? Thank you very much for your help.

Cheers,
Liat Gat
KnitFreedom
"Finally finding website freedom with Toolset :)"

#1057398
taxonomy-slug.JPG

Hello,

Q1) I want to accomplish is that each post should have one taxonomy term

There are two kinds of WordPress custom taxonomy:
hierarchical and non-hierarchical
https://toolset.com/documentation/user-guides/create-custom-taxonomies/#taxonomy-types
But both of them can assign multiple terms to one post, so there isn't such a feature:
each post should have one taxonomy term

Q2) I want the taxonomy term to show up in the URL for that post

There isn't such a built-in feature within Toolset or WordPress, AND since the problem of Q1), it is not recommended to setup such kind of URL for that post.

Q3) I need help with the URL structure of the taxonomy term... hidden link.
Yes, it is possible, you can edit the taxonomy "video-category", in section "Options", enable option "Rewrite", in the option "Replace taxonomy slug with this" fill the string "/", see screenshot: taxonomy-slug.JPG
Then you will get the URL hidden link for the term "free-videos" archive page
But even it is possible, it is still not recommended to setup such kind of rewrite rule, it might conduct some unexpected result, if you create a wordpress page with slug "free-videos",