Speaker Custom field

This topic contains 2 replies, has 2 voices, and was last updated by  Stephen Harris 8 years, 9 months ago.

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

    Hello,

    I need to add a custom field to add the speaker in an event.

    Is this possible, if so how?

    Karen Acklin
    #23036

    Hi Karen,

    You can use the custom fields metabox to store extra details.

    Or if you wish to something more advanced you could add your own metabox.

    Either way the custom data would be stored against the event with a meta data key. You would then need to edit the templates (e.g. event-organiser/templates/event-single-event-meta.php) to display the meta data:

    <?php 
    //Prints the value stored against the key 'my_meta_key'
    echo esc_html( get_post_meta( get_the_ID(), 'my_meta_key', true ) );
    ?>
    
    Stephen Harris
    #23038

    There is also this site which automatically generates the code for creating a metabox: https://generatewp.com/the-meta-box-generator/

    Stephen Harris
Viewing 3 posts - 1 through 3 (of 3 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.