334 posts
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+4 more
cosmincotor says

Hi guys, I’m working on a project right now and can’t figure something out.

I have two taxonomies for the same post type

- taxonomies: “developers”, “customers”

- post type: “project”

Projects can be assigned to customers and developers.

How can I set the permalinks to look like this when I visit a single project page:

webisteurl.com/customers/customer-name/projects/project-name

Right now I got the archive working for the customers and developers taxonomies:

websiteurl.com/customers/john

but the project URL looks like this

websiteurl.com/customers/projects/project-name

So right now I’m missing the customer name from the permalink structure.

I hope you understand what I want to achieve and can help me out :)

Thank you!

1509 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE says
334 posts
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+4 more
cosmincotor says

While a good find, that’s not the problem I’m facing. I’m not trying to get both taxonomies to show up in the permalink structure, I only need one.

Right now I’m using “rewrite” to get the single project permalink structure to look like this “customers/projects/project-name”. But I can’t figure out how to inset the name of the “customer” between “customers” and “projects”.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by