• Resolved ananddevops

    (@ananddevops)


    Hello,

    I am new to WP and to Meta Box.My requirement is I have a Vendor plugin installed for my application. The Vendor plugin has few setting pages within the WP Admin dashboard.

    One of those pages is to do with Annoucements. Basically a feature such that an Admin can generate and send announcements to all its vendors.
    I want to customize the same and send specific announcements to specific vendors. Hence I have added MetaBox to my setup.

    Now as I read MetaBox doesn’t provide any WP Admin setting or MetaBox creation panel. Hence one has to use the Online Generator.

    1. So I went to the Online Generator
    2. I need a Select field hence went to the Fields tab – Meta box Select

    But after that I don’t understand, how will the data within the Select field get populated from the Vendor Plugin data? What do I do with the Generate Code?

    And so on and so forth. Kindly guide how to achieve the above scenario.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ananddevops

    (@ananddevops)

    Any thoughts?

    Thread Starter ananddevops

    (@ananddevops)

    @rilwis

    I have seen the video how to to Create a Metabox using the Online generator. I want to create a Select type of metabox for a plugin setting page which is within the WP Admin Dashboard.

    I am also aware that once the code is generated it needs to be added in the Theme’s function.php.

    What I am finding difficult to connect is how this piece of Code will associate with the particular plugin setting page?

    Some insight/example/reference will be really appreciated.

    Thanks

    Thread Starter ananddevops

    (@ananddevops)

    I am using this reference Kindly confirm if I am looking at the right refenrence.

    Thread Starter ananddevops

    (@ananddevops)

    I have also had a look at this Link

    But it says adding to posts, hence I am guessing this is not the correct one.

    Thanks

    Plugin Author Anh Tran

    (@rilwis)

    Hello,

    Sorry for the confusion you’re having. Let me try to explain a little bit:

    Now as I read MetaBox doesn’t provide any WP Admin setting or MetaBox creation panel.

    We actually have an extension that helps you to create meta boxes and fields in the WordPress back end. It’s a premium extension and is not included in the free version.

    If you’re just using the free version, then the Online Generator is the right tool for you. It helps you create custom meta boxes and custom fields. It’s kind of a limited version of the Meta Box Builder, though.

    how will the data within the Select field get populated from the Vendor Plugin data

    If you use GUI to create fields, you have to enter the options manually. The only way to make the field populate the data from vendor plugin is via code only. See this docs for select field. You need to use PHP to generate (dynamically) the field options.

    Hope that helps.
    Anh

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Creating a Select Element and Adding to a Plugin Setting Page within WP Admin?’ is closed to new replies.