Skip Navigation

[Resolved] custom url for post taxonomy list

This support ticket is created 4 years, 6 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: Africa/Casablanca (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by scottL-6 4 years, 6 months ago.

Assisted by: Jamal.

Author
Posts
#1865717

Tell us what you are trying to do?
I've created a custom post type "People" along with custom fields / taxonomies. I have a landing page that will display all of the "People" custom posts: hidden link – I have a custom search and filters at the top of the page to allow the user to refine the view. This works perfectly.

Once the user selects one of the "People", they are taken to a detail page.
Example: hidden link

In the right side bar, I'm displaying a list of taxonomies associated with that particular person. I'm trying to create custom URLs for the taxonomies so that I can direct the user to a static page rather than the taxonomy archive. I do still need the taxonomy archive active for the front end sorting.

This is the code that I'm using, and it's very close, but I can't get the URL to return just a single taxonomy name. It appends the URL with a comma separated list of taxonomies.


  • [wpv-post-taxonomy type='employee-service' format='name' separator='
  • ']
  • Is there any documentation that you are following?
    No

    Is there a similar example that we can see?
    Not that I'm aware of

    What is the link to your site?
    hidden link

    #1866273

    Hello and thank you for contacting the Toolset support.

    Currently, the options to display taxonomy terms of a single field block are limited, and you will always get a list of names, slugs, or URLs, separated by a separator. If you want more control, I'll suggest that you use the legacy shortcodes inside a "Field&Text" block. Check this similar thread where the user wanted to display the terms and term counts. You can follow the same idea https://toolset.com/forums/topic/post-counter/

    More about the Toolset shortcodes here: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/

    Let me know if you need further assistance with this.

    #1868901

    I ended up using conditional display to achieve this.

    My issue is resolved now. Thank you!