How to hide field in the meta box by post type?

Support MB Conditional Logic How to hide field in the meta box by post type?Resolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18213
    PrzemekPrzemek
    Participant

    There's a list of available post-related params for conditions in documentation:

    Param        Description
    post_ID     Post ID
    page_template   Page template
    parent_id   Parent post ID
    post_format Post format

    Could you consider adding post_type parameter there?

    Or there's a different approach to manage a field visibility based on post type?

    I have the same meta box registered for 2 different post types but I'd like to hide some fields in one of them.

    Thank you.

    #18244
    Anh TranAnh Tran
    Keymaster

    Hi,

    We don't have that condition at the moment. But you can do that with custom callback.

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