Premium events / highlighting events
-
Hey all,
is it possible to create “premium events” which are highlightet in a special way e.g. different background than the others or that the “premium events” always are at the top?
Best regards
-
Good question, look fwd to answer!
Good question, look fwd to answer!
Although there’s no ready-made way to do it, you could give the premium events their own tag or category, then use a conditional tag to detect that category / tag nd apply different styling to the event listing.
http://wp-events-plugin.com/documentation/conditional-placeholders/
Hey caimin_nwl,
thanks for your answer, I will try to do it. π
hey again,
so I’ve tested your suggestion and it works, but not perfectly.
When my code is{has_tag_premium} <div class="event-widgets-events"> <div class="event-cover">#_EVENTIMAGE{100,100}</div> <div class="event-w-data"> </div> <div class="event-w-title"><h3><a href="#_EVENTURL"> #_EVENTNAME </a></h3></div> <div class="event-w-venue">#_EVENTDATES, #_EVENTTIMES Uhr</div> <div class="event-w-venue"><a href="#_LOCATIONURL"> <i class="fa fa-map-marker fa-2x"></i> {has_location}<i>#_LOCATIONNAME, #_LOCATIONTOWN #_LOCATIONSTATE</i>{/has_location}</a></div> <div class="event-w-excerpt"> <p>#_EVENTEXCERPT{65,...}</p> </div> <div class="event-w-status"><a href="#_EVENTURL">Weitere Infos</a> </div> </div> {/has_tag_premium}It works fine and it shows only the events with the tag “premium”, but when I want to show the others beneath like this:
{has_tag_premium} <div class="event-widgets-events"> <div class="event-cover">#_EVENTIMAGE{100,100}</div> <div class="event-w-data"> </div> <div class="event-w-title"><h3><a href="#_EVENTURL"> #_EVENTNAME </a></h3></div> <div class="event-w-venue">#_EVENTDATES, #_EVENTTIMES Uhr</div> <div class="event-w-venue"><a href="#_LOCATIONURL"> <i class="fa fa-map-marker fa-2x"></i> {has_location}<i>#_LOCATIONNAME, #_LOCATIONTOWN #_LOCATIONSTATE</i>{/has_location}</a></div> <div class="event-w-excerpt"> <p>#_EVENTEXCERPT{65,...}</p> </div> <div class="event-w-status"><a href="#_EVENTURL">Weitere Infos</a> </div> </div> {/has_tag_premium} {no_tag_premium} <div class="event-widgets-events"> <div class="event-cover">#_EVENTIMAGE{100,100}</div> <div class="event-w-data"> </div> <div class="event-w-title"><h3><a href="#_EVENTURL"> #_EVENTNAME </a></h3></div> <div class="event-w-venue">#_EVENTDATES, #_EVENTTIMES Uhr</div> <div class="event-w-venue"><a href="#_LOCATIONURL"> <i class="fa fa-map-marker fa-2x"></i> {has_location}<i>#_LOCATIONNAME, #_LOCATIONTOWN #_LOCATIONSTATE</i>{/has_location}</a></div> <div class="event-w-excerpt"> <p>#_EVENTEXCERPT{65,...}</p> </div> <div class="event-w-status"><a href="#_EVENTURL">Weitere Infos</a> </div> </div> {/no_tag_premium}It just shows all the events and ignores the tag with the premium.
Maybe I got some mistakes with my thinking or didn’t understand something correctly.Best regards
So the premium events show on their own at the top (like they should), but the lower list shows all events including premium?
not exactly. When I only use the has_tag_premium code it works fine. It just shows the events with the tag “premium” (one event at the moment)
When I use it the way, like I posted in my second code, it is like they totally ignores both the “has_tag_premium” and the “no_tag_premium” and just shows all the events like it would do without the tags.
Does it get overwritten when I use two tags?
Where are you using this code? Is there any other code / formatting above or below it?
I’m using it in the eventmanager admin panel “option” -> “formatting” -> standard format for list of events.
My wordpress is on german so I don’t know how the proper labeling is. Hope you understand it this way, else I will upload a screenshot.
I have som ideas I will test tomorrow, after testing I will give a feedback.
Thanks again for your help. Really appreciate it.
Does is work if change premium in {no_tag_premium} to the ID of the tag?
The topic ‘Premium events / highlighting events’ is closed to new replies.