• Resolved bignevola

    (@bignevola)


    Im trying to display event metas in loop (with shortcode function in functions.php), but my venue addres array is always empty (even if I try with event ID – eo_get_venue_address(4545) call).

    query:

    $events = eo_get_events(array(
              'numberposts'=>$number,
              // 'event_start_after'=>'today',
              'event_end_after'=>'today',
              'orderby'=>'eventstart',
              'showpastevents'=>true,//Will be deprecated, but set it to true to play it safe.
         ));

    Echo:

    <?php
                                $address_array = eo_get_venue_address($event->ID);
                                $prizorisce = eo_venue_name($event->ID);
                                echo $prizorisce;
                                ?>
                                <?php echo $prizorisce.', '. $address_array['address'].', '.$address_array['postcode']; ?>

    So this displayed only those brackets between variables…

    https://ww.wp.xz.cn/plugins/event-organiser/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Addres in loop’ is closed to new replies.