Thursday, January 26, 2023
HomeWordPress Development{custom} publish sorts - Two Permalinks with one Taxonomy

{custom} publish sorts – Two Permalinks with one Taxonomy


I already readed this thread: “https://wordpress.stackexchange.com/questions/108642/permalinks-custom-post-type-custom-taxonomy-post, however it did not assist me how I would like it.

I am having hassle working with WordPress rewrite guidelines, and will use some assist.

I would wish a taxonomy that has two completely different URLs and templates.

So I’ve a {custom} publish sort referred to as artist.

And the taxonomy is known as artist_file.

I would really like my URLs to be redirected this fashion:

www.mysite.com/[taxonomy_term] => archive-artist_all_files.php

www.mysite.com/%custom_post_type_artist%/ => single-custom_post_type_artist.php

www.mysite.com/%custom_post_type_artist%/[taxonomy_term] => archive-artist_file.php

So on the finish it ought to seem like this:

www.mysite.com/pictures => reveals a archive of all pictures of all artists

www.mysite.com/van-gogh/  => present solely artist data

www.mysite.com/van-gogh/pictures => reveals a archive of pictures from one artist

I’ve tried fairly a bit with just a few threads, however as I discussed earlier than, sadly it did not work out the way in which I needed it to.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments