Custom Fields
Support MB Custom Table Save custom post type on custom table

  • Creator
  • #22640
    Resolved Timos Alexandropoulos


    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 2 replies - 1 through 2 (of 2 total)
  • Author
  • #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

    Prabakaran Shankar

    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 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.