Justin Kramp
Forum Replies Created
-
That works…sort of; why that works and a straight up normal query doesn’t work is a mystery, but I”ll take it.
The sort of is that indeed, it appears to run a “normal” fresh query on events, however, even though my scope is set to “future” it is pulling back today’s event, rather than tomorrow’s.
My template code is currently:
<?php echo do_shortcode('[events_list limit="1" scope="future"]<h2>#_EVENTLINK</h2><div id="date"><span>#F <div id="day">{#j}</div> #_12HSTARTTIME</span></div>[/events_list]'); ?>The next future event is set at “13/03/2015 11:00 am – 11:00 am”.
Today’s event is set at “12/03/2015 11:00 am – 11:00 am” which should be considered “past”.
It is rendering today’s event. I’ve checked the server time by running ` <!–<?php echo date(“D M d, Y G:i a”); ?>–>
` above this so I can see the time in the source of the page immediately above the event echo. Upgraded to v 5.5.5 of the plugin too.You can see this at http://www.brooksiderbarandgrill.com/ under the “next event” section.
Hi Marcus, aglonwl, and thanks for the replies.
I added
'page'=>1to the initial EM_Events loop and it now works on subsequent pages. Brilliant solution, thanks for the assist. Don’t see that in the documentation at http://wp-events-plugin.com/documentation/event-search-attributes/ so am very thankful for your knowledge.
Forum: Fixing WordPress
In reply to: Fatal error after changing themeSo…could you share what you did to fix it with the rest of the class? Just ran into this error myself on a different WPZoom theme–but same function error.
Forum: Fixing WordPress
In reply to: Pages not Working<snip>
Never mind.