Support » Plugin: Custom Post Type UI » CPT not showing custom taxonomies

  • Resolved GWKaplan

    (@gwkaplan)


    Hello!
    I’ve two CPT and I also created a custom taxonomie for them.
    The problem I have is that in the archive page I’ve created for them, when I loop trough with a Gutenberg block for post listing, the categories that show are not my custom taxonomies but the default WordPress categories.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    Is it gutenberg blocks that are creating all of the output for these? or is the more traditional template-level route that’s showing output for the associated terms?

    If the template level, chances are you will need to edit the templates in question to check for your custom taxonomies. As is, it looks like it just checks for category

    Something like https://developer.wordpress.org/reference/functions/get_the_term_list/ would be useful here.

    If it’s Gutenberg blocks that are controlling output, then I think that’s a fairly new thing with WordPress in general, and block settings may need reviewed to confirm that they will even show custom taxonomies.

    Thread Starter GWKaplan

    (@gwkaplan)

    We’ll actually in the block settings I selected my custom taxonomy, but they don’t appear in the loop on the backend. Then the WordPress ones appear on the frontend.

    And the block is controlling the output.

    So, I created the CPT and the taxonomy. Then I assigned the taxonomy to the CPT and in the CPT I assigned compatibility with the custom taxonomy and not with the WordPress ones.

    Is that all I need to do in CPT UI settings?

    • This reply was modified 6 months, 4 weeks ago by GWKaplan.
    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    Honestly sounding like the block isn’t as robust as needed for your intended use case here. CPTUI only handles the registration of the content types, and then “duck” into the back of things, out of the way.

    We don’t have any settings that dictate how blocks behave or settings within them, as well as no direct influence on templates either.

    So it’s nothing that you’ve done wrong or anything, in this case.

    Thread Starter GWKaplan

    (@gwkaplan)

    Ok, thanks!

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    Welcome.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CPT not showing custom taxonomies’ is closed to new replies.