black friday sale

Custom Fields
Re-Envisioned
Support MB Custom Table Save custom post type on custom table

  • Creator
    Topic
  • #22640
    Resolved Timos Alexandropoulos
    Participant

    Hi,

    is there a way to add a meta box saving on a custom table on a specific post type?

    Let’s say I have an “Events” custom post type. I want to add there a custom meta box which uses MB Custom Table to save on a custom table on db. I have integrated MB Custom Table but I am only able to use it on the default post type.

    I understand that I have to use the add_meta_box() but I do not know how to pass the “storage_type” and “table’ fields there.

    thanks in advance!

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #22641

    I found the solution but I think this should be on the documentation. On the definition array of meta box you include something like this:

        'post_types' => 'events'
    

    I think this is going to be useful for a lot of people

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.