KramBie
Forum Replies Created
-
By default cancelled events are hidden. You can change that in Events –> Settings –> Tab pages –> Section Event lists/Archives –> “Including cancelled events”.
Than you can use the conditional placeholder
is_cancelled(https://wp-events-plugin.com/documentation/conditional-placeholders/#is_cancelled) to change its css class, but how that is done depends on which event list you are using.You can try to add the placeholder
#_EVENTDATESto your title.
Something like:MyRecuringEvent #_EVENTDATESSounds that you nee to filter your events according to the language. Add a tag with the language name to the events. Then you can try something like this:
[events_list tag="French"]. Of course this can also be a category[events_list category="English"], whatever you prefer.
And if you need both languages this is also possible:[events_list tag="French,English"]- This reply was modified 1 year, 9 months ago by KramBie.
I am not completely understanding what you want to do, but showing content on page can be controlled with the placeholders
logged_inandnot_logged_in. See
https://wp-events-plugin.com/documentation/conditional-placeholders/#otherI found one solution: Create a ticket which is only available on the event date itself. Not visible on the booking form, but an EventManager can assign that ticket earlier.
However there might be a better solution.I figured it out. I also created its counterpart
has_no_attendees, but in that snippet I made a typo:if ('has_attendees' == $condition) {without the_no_which gave weird results. After correcting is worked as to be expected.Adding this plugin is a bit too much for just changing word especially when it is jut a nice to have modification. But I keep this in mind if there are more translations needed.
I must have missed something. Steps I did:
1. Add the Code Snippets plug in.
2. Added the few lines of code into Code Snippets.
Unfortunate that wasn’t working.To be sue I also added a line
$EM_Ticket->name = "My Standard Ticket2";but that wasn’t working either. Must I configure something the EventManager listens to the Code Snippets plugin or something like that?BTW: If this is hard to solve, leave it. This is just a nice to have thing. You already helped me a lot so far.
Thank you this is working great. And I was able to extend it with adding the ticket name based on the code example you gave me earlier this week.
I got the feeling that you spent some time to work out this sorting example and that is highly appreciated.Just a wild guess but maybe a specific right is switched off by accident. Goto Events –> Settings –> Tab General –> Section Access Rights and check there.
And this works now too. Thanks once again.
Thank you, I missed those parenthesis. That did the trick.
Hi joneiseman,
Unfortunate this classification isn’t working:
foreach ( $EM_Booking->get_tickets as $EM_Ticket ) {
echo 'In the for each';
echo $EM_Ticket->name;
}To be more precise, the loop is not getting a list of tickets. I confirmed it because the line ‘In the for each’ isn’t in the output either. What am I missing?
I found a workaround by using the placeholder
#__BOOKINGTICKETNAME, but that works only in single ticket mode. So I prefer your solution.<The plugin has too many !important statements in its CSS making it impossible to override, without adding CSS hacks.>
I solved that by using an ID for my custom table combined with the !important attribute. I started with my own class as selector and that indeed wasn’t working. But an #ID selector (with !important) is more specific the !important statements in the CSS of EventManager.- This reply was modified 1 year, 9 months ago by KramBie.
Thanks will try that next week also. Quite busy with other work right now.