Default term

Support MB Custom Post Type Default termResolved

  • This topic has 6 replies, 2 voices, and was last updated 3 years ago by GregGreg.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #35417
    GregGreg
    Participant

    The free CPT UI has an option to set the default custom taxonomy term for new posts. Is this missing from the paid Meta Box?

    #35430
    Long NguyenLong Nguyen
    Moderator

    Hi Greg,

    You can use the field taxonomy and set the default term with the setting std as well. Refer to this topic https://support.metabox.io/topic/checkbox-checked-by-default-in-field-group/

    #35431
    GregGreg
    Participant

    That just won't work. Setting a custom field value is not the same as assigning a post to a term.

    #35432
    GregGreg
    Participant

    This topic is not resolved.

    #35445
    Long NguyenLong Nguyen
    Moderator

    Hi Greg,

    The option to set the default term for new posts is not available when you use the WP function register_post_type() which the plugin MB Custom Post Type does the same.

    The field taxonomy set the post terms so you can use it to set a default value (term) after saving the post.

    Or you can use custom code to do that, refer to this topic https://stackoverflow.com/questions/66349128/assign-default-taxonomy-term-to-custom-post-type-when-new-post-created

    #35482
    GregGreg
    Participant

    Going back to my original question: The free CPT UI has an option to set the default custom taxonomy term for new posts. Is this missing from the paid Meta Box?

    The answer is yes, the paid Meta Box does not have this feature that is in the free CPT UI.

    #35483
    GregGreg
    Participant

    Meta Box's implementation of register_taxonomy() is missing the default_term option. This should be a field on the custom taxonomy page.

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