Create custom metabox in admin with ECP

Home Forums Calendar Products Events Calendar PRO Create custom metabox in admin with ECP

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1184066
    Ken Charity
    Participant

    I am trying to make a metabox in the event page for my events. The metabox would be a simple shortcode (ie. [download id=”173″] ) this would allow me to then on front end run that shortcode to display downloads entered from Download Monitor.

    does this post still carry weight? custom-metabox-for-post-type

    if so what would be the adding the metabox with ECP?
    <?php add_meta_box( $id, $title, $callback, $page, $context, $priority, $callback_args ); ?>

    #1184524
    Cliff
    Member

    Hi Ken.

    Yes, that link provides good general information how to add a metabox, but it’s not specific to our events plugin.

    Our plugin’s “Events” custom post type is ‘tribe_events’, although technically best practices would be to get it from Tribe__Events__Main::POSTTYPE

    If I’m understanding your metabox, you’d probably also want to run that shortcode through do_shortcode() if you want it to actually render the shortcode.

    All those “add_meta_box” arguments you asked about is what you need to decide to call your metabox and what you want it to do for you.

    If you need some coding help, you may want to ask your developer or reference our documentation and list of known customizers.

    #1194895
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Create custom metabox in admin with ECP’ is closed to new replies.