Support » Plugin: Custom Post Type UI » How to display the custom values Taxonomies

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    As long as you specify that the taxonomy should have archives, then WordPress will automatically generate the url structures for those. It’ll be by term and not by taxonomy though, so there is that caveat. For instance, domain.com/books/author/j_k_rowling/ could be the url for all posts in the “books” post type that have the “author” taxonomy, and are tagged with “J.K. Rowling” for the author term.

    Thread Starter linger668

    (@linger668)

    I didn’t add the post type. How can I check the url?
    And do you know how can I get all the values of the taxonomy I created?
    e.g. get_the_tags().

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I was just using a post type as an example. You’re going to need to know the taxonomy and term slugs to visually piece together the urls. Otherwise, you’ll need to use WordPress core’s functions/api to generate the urls for your templates. Since this is a custom taxonomy, you’ll need things like get_the_terms and similar ones. Function names with “tag” and “category” are going to be specific to both of those, and not custom taxonomies.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to display the custom values Taxonomies’ is closed to new replies.