set a limit equal to the number of events
-
Hello, I have a design to show events.
this is it – http://prntscr.com/q61jzkI try to output events but they don’t look like I need. it looks like this at the moment – http://prntscr.com/q61lay.
looks similar but doesn’t work as needed.at first i tried to get out with the tap [events_list_grouped], but it didn’t look the way I needed it to, so I’m using the code now
<?php echo do_shortcode('[events_list scope="future" limit="1"] <div class="calendar_events"> <div class="calendar_events_date"> #_{d} </div> <div class="calendar_events_month"> <p>#_{F}</p> <div class="calendar_events_day"> #_{l} </div> </div> </div> [/events_list]'); ?> <?php echo do_shortcode('[events_list_grouped scope="future" limit=2] <div class="events_description"> <div class="events_description_item"> <p> <?php if(#_24HSTARTTIME): ?> #_24HSTARTTIME <?php endif; ?> </p> <span> <?php if(#_EVENTNAME): ?> #_EVENTNAME <?php endif; ?> </span> </div> </div> [/events_list_grouped]'); ?>
but i can use this code only if i know how many events at this day, so i need universal solution which will show times and names of event in one day.
someting like$events; limit = $events;
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘set a limit equal to the number of events’ is closed to new replies.