Save custom post type on custom table

Support MB Custom Table Save custom post type on custom tableResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #22640

    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!

    #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

    #28232
    Prabakaran ShankarPrabakaran Shankar
    Participant

    Hi, thank you for this question and the solution you found.

    Could you please give the full code?
    Because I am not a superuser to insert the above code in the right place.

    Thanks in advance.

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