Select All Categories in a Custom Post Type

Support MB Custom Post Type Select All Categories in a Custom Post Type

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #44163
    TanyaTanya
    Participant

    Hello Everyone - I hope that everyone is having a lovely Friday!

    I was wondering - Is there a way to have all the categories in a custom post type post be selected automatically by default? Or is there an option to have a "select all" button or link?

    Thank you in advance for any help you may offer! 🙂

    #44166
    PeterPeter
    Moderator

    Hello Tanya,

    You can use the field type taxonomy or taxonomy_advanced, there is an option to select all terms of a taxonomy, screenshot https://imgur.com/3h12Pdy
    Follow the documentation
    https://docs.metabox.io/fields/taxonomy/
    https://docs.metabox.io/fields/select-advanced/

    #44176
    TanyaTanya
    Participant

    Thank you so much for your response Peter, My apologies for the late response - the holidays caught up with me.

    The help files you have noted appear to be for custom fields - I was looking for a custom taxonomy option (categories for a CPT).

    I know it isn't good practice to have the same post in multiple categories but customers are always right LOL

    Tanya

    #44182
    PeterPeter
    Moderator

    Hello,

    The default meta box Category of WordPress doesn't have that option. You can use the field taxonomy, it sets the post term like the meta box Category.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.