Event finished
-
Using
{is_past}content{/is_past}works fine on events over one day, but if an event is over two days, on second day it creates the past event even though event is still current on second day http://whatsoninberkshire.co.uk/events/maidenhead-festival/
( removed image but above Date/Time)also noticed http://whatsoninberkshire.co.uk/events/pixie-party/
is only on one day today but shows as finished( logo removed for the moment missing image under facebook)
-
another example
http://www.gigzone.co.uk/events/wickerman-festival/i think it is down to them listed as all day
try {is_long}content{/is_long} or {not_long}content{/not_long} then try nested conditional
e.g.
{is_long}
{is_past}content{/is_past}
{/is_long}also, to enable nested conditional placeholder try to add this snippet
define('EM_CONDITIONAL_RECURSIONS',2);inside your wp-config.phpso replace in my formatting
{is_past}content{/is_past}with{is_long} {is_past}content{/is_past} {/is_long}and add
define('EM_CONDITIONAL_RECURSIONS',2); inside your wp-config.phpis it ok to alter core WP as i was told not to?
have set like this at moment<div style="float:right; margin:0px 0px 15px 15px;">#_LOCATIONMAP</div> <p>#_EVENTIMAGE<br /> <strong>{is_past}<img src="http://www.gigzone.co.uk/finished.gif" alt="Event over logo">{/is_past}</strong><br /> <strong>Date/Time</strong><br/> #_EVENTDATES<br /><i>#_EVENTTIMES</i> </p> <p> #_EVENTGCALLINK</p> {has_location} <p> <strong>Location</strong><br/> #_LOCATIONLINK <br /> #_LOCATIONTOWN<br/> #_LOCATIONSTATE </p> {/has_location} <p><a href="#_ATT{Website}" rel="nofollow">#_ATT{Website}</a></p> <p> #_ATT{Phone Number}<br /> #_ATT{Contact Email}</p> <br style="clear:both" /> #_EVENTNOTES {has_bookings} <h3>Bookings</h3> #_BOOKINGFORM {/has_bookings}yes, that’s okay and that line is only for EM use.
<div style="float:right; margin:0px 0px 15px 15px;">#_LOCATIONMAP</div> <p>#_EVENTIMAGE<br /> {is_long}{is_past}<img src="http://www.gigzone.co.uk/finished.gif" alt="Event over logo">{/is_past}{/is_long}<br /> <strong>Date/Time</strong><br/> #_EVENTDATES<br /><i>#_EVENTTIMES</i> </p> <p> #_EVENTGCALLINK</p> {has_location} <p> <strong>Location</strong><br/> #_LOCATIONLINK <br /> #_LOCATIONTOWN<br/> #_LOCATIONSTATE </p> {/has_location} <p><a href="#_ATT{Website}" rel="nofollow">#_ATT{Website}</a></p> <p> #_ATT{Phone Number}<br /> #_ATT{Contact Email}</p> <br style="clear:both" /> #_EVENTNOTES {has_bookings} <h3>Bookings</h3> #_BOOKINGFORM {/has_bookings}trying
{not_long}content{/not_long}
but all day event shows as passed event
http://www.gigzone.co.uk/events/music-and-cider-festival/
but two day event seems ok
http://www.gigzone.co.uk/events/wickerman-festival/seems the single day event listed as all day is the issue if i give an event a time it is ok
http://whatsoninberkshire.co.uk/events/pixie-party/also noticed long past events show as current no passed image inserted
http://www.gigzone.co.uk/events/henley-royal-regatta/So i have
define(‘EM_CONDITIONAL_RECURSIONS’,2); inside wp-config.phpMy event format is
<div style="float:right; margin:0px 0px 15px 15px;">#_LOCATIONMAP</div> <p>#_EVENTIMAGE<br /> {not_long}{is_past}<img src="http://www.gigzone.co.uk/finished.gif" alt="Event over logo">{/is_past}{/not_long}<br />It appears all events passed or future that are over two or more days are same i.e
{is_past}being ignored, single events with all day time get listed as past event on day of eventHOW can i remove the all day option ?
example past event over several days
http://whatsoninberkshire.co.uk/events/reading-summer-fair/past event on single day
http://whatsoninberkshire.co.uk/events/groove-manoova/Changed all day to a time today and that is ok now
http://whatsoninberkshire.co.uk/events/pixie-party/but if i set to all day shows as finished
can I know what what are you trying to do with {not_long} ? this is since the definition of not_long at http://wp-events-plugin.com/documentation/conditional-placeholders/ is
*event does not last longer than one day (i.e. same day events).
well i have tried `{is_long}
{is_past}content{/is_past}
{/is_long}`but results are not as good as using
{not_long}
Using{is_long}makes any current event over more than one day a past event. i.e if event is on 29/7/13 and 30/7/13, on 30/7/13 event will show as finished, using{not_long}prevents any event over more than one day showing as finished.
However any single day event with times set as ALL DAY show as finished on day of eventAlso using `{is_long}
{is_past}content{/is_past}
{/is_long}` makes single events that have past not show as finished
EXAMPLES OF BOTH
look here at past event over more than one day, and past event single day
http://www.gigzone.co.uk/using
{not_long}would this work
define(‘EM_CONDITIONAL_RECURSIONS’,3);{is_long}{not_long} {is_past}content{/is_past} {/is_long}{/not_long}set as `<div style=”float:right; margin:0px 0px 15px 15px;”>#_LOCATIONMAP</div>
<p>#_EVENTIMAGE<br />
{is_long}{is_past}<img src=”http://www.gigzone.co.uk/finished.gif” alt=”Event over logo”>{/is_past}{/is_long}
{not_long}{is_past}<img src=”http://www.gigzone.co.uk/finished.gif” alt=”Event over logo”>{/is_past}{/not_long}<br />`
on this site now http://www.gigzone.co.uk/Hiya,
I don’t see a two day event on your site that covers today so can’t see this in action.
However, I think in this case you might need to create a custom conditional placeholder to suit your particular needs. Those two placeholders don’t really cater for this situation, hence why you’re struggling to get the result you desire.
Cheers
The topic ‘Event finished’ is closed to new replies.