• Resolved agiddens1

    (@agiddens1)


    I’ve added a new multiple image field in the field editor for venues. Meta Key is _images.

    Its not displaying on the venue page.

    How do I make the images appear?

Viewing 1 replies (of 1 total)
  • Hi

    We have not Provided the display of the Venue custom fields,

    You can use the following sample code and change as per your needs for Venue,

    <?php
                        $GLOBALS['event_manager']->forms->get_form('submit-organizer', array());
                        $form_submit_organizer_instance = call_user_func(array('WP_Event_Manager_Form_Submit_Organizer', 'instance'));
                        $fields = $form_submit_organizer_instance->get_event_manager_fieldeditor_fields();
                        $default_fields = $form_submit_organizer_instance->get_default_fields();
                        $additional_fields = [];
                        foreach ($fields['organizer'] as $field_name => $field_data) {
                            $meta_key = '_' . $field_name;
                            $field_value = get_post_meta($organizer->ID, '_' . $field_name, true);
                            if (!empty($field_value)) {
                                echo "<strong>".$field_name.": </strong>".$field_value."<br>";
                            }
                        }
                        ?>

    Put this code in \plugins\wp-event-manager\templates\organizer\content-single-event_venue.PHP where you want to display fields.

    Regards,
    Priya

Viewing 1 replies (of 1 total)
  • The topic ‘Venue – New Image Field Now DIsplaying’ is closed to new replies.