hi
you can use conditional placeholders like {has_location} in your Settings > Formats/Layouts > Events Format
http://wp-events-plugin.com/documentation/conditional-placeholders/
Thread Starter
Trimek
(@trimek)
Yes, I did, but when I set limit to let’s say 5 and none of this 5 events will have location I will get empty list as {has_location} just hides events without location.
What I would like to achive is listing only next 5 events with location.
you can also use {no_location}-content-{/no_location}?
Thread Starter
Trimek
(@trimek)
As I said, I managed to find solution with {has_events}, but it requires bigger scope for small amount (5) events. I just wonder if this condition proceeds after query (like filtering results) or it`s and condition for general query to DB?
In my case I would have to query limit 100 events to {has_location} show 5 what makes no sense.
hi,
thx for the info. however can I ask whether if you are trying to do it in settings > formats/layouts or in a page using a shortcodes? also, can I ask where did you find {has_events}?
thx
Thread Starter
Trimek
(@trimek)
Thx for activity in this topic agelonwl. Sorry, {has_events} meant to be {has_location}.
I was trying to do this in widget settings (5 events, future, {has_location} for single output), but if it`s possible via template code or shortcodes it would be lovely.
I think I will make a small workaround with Category. I will make “Localization” category and query events from this Category. Should work like a charm.