bunjip
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] WooCommerce Payments 5.1.0 Critical ErrorSame here, just posted this
Forum: Plugins
In reply to: [The Events Calendar] Translation changes do not appearForum: Plugins
In reply to: [The Events Calendar] Translation changes do not appearSo embarrassing…
just a view words
should of course read
just a few words
Hey Shelby,
With Version 4.4.0.1 the customized query returns the results just as expected :).
Thanks,
BunjipHi,
Oh, that’s quite a drawback for me :(.
Could a waiting list be simulated by creating two ticket types, where the second ticket will not be available until ticket one is not available anymore? If so, how would this work exactly?
Thanks,
RonaldOkay,
Good to know. At least I can say to myself, that I did research carefully enough but couldn’t find something due to a lack of existence ;).
Slowly but surely I’m making my way through the source files and get a feeling for most of the concepts in use. Well, I’m sure you guys will be well aware of the fact that a consistent documentation of the public API’s of your classes could boost the acceptance of your fantastic software even further.
Thanks,
BunjipHey,
Thanks for the answer. Just to make my question clear, it’s not about checking whether a user is logged in or not. If logged in, I need to check, whether this particular user has already made a booking for the event in concern (since we’re on a single event page).
What expression (even PHP / MySQL query string) would either return TRUE or FALSE to that request?
Thnx,
BunjipThanks for reply,
So, there is no comprehensive API documentation available yet – am I right? ‘Cause your hint to loop over an object of many events does not yet solve my question actually. You’d still get an array of category objects in each
$EM_Event->category
attribute. Question was, how to retrieve the actual name of the (first) assigned category without knowing about the public API of the objects in use…?How is it done the right way? What public methods and attributes are available for objects like EM_Events, EM_Event, EM_Categories, EM_Locations, e.t.c.? Where are they documented?
Thanks,
BunjipOkay, slowly I think I’m getting what you’re saying. Sorry for being a bit resistant. It doesn’t feel very intuitive to me to retrieve data for custom templates with shortcodes and placeholders in ‘layout arrays’.
However, in the meantime I stumbled upon this page. This object based approach resonates much more with me at the moment. If only there was an API documentation available… ??
Forum: Plugins
In reply to: [The Events Calendar] WP_Query to filter events by venue cityHey @shelbelliott,
Thanks for your reply! I’ll try my best to illustrate my intention ??
Image #1 – Admin backend: Event location to choose for a given event
Image #2 – Frontend view with default filters:
Image #3 – Frontend view with custom ‘City’ filter:
Can’t send you a link to my site, though. I’m developing on my local machine. So, basically, I want to display advanced filter options for events based on the event location. In this case, the ‘city’ field from the location post type should be the filter option.
Can you imagine what I’m after :)?
Thanx,
Bunjipp.s. Uhm… can’t see the images which I included in my reply here. So I added links to the images in a paste bin
Alright,
Thanks again. So does that mean, that Event Manager doesn’t come with actual template tags, that could be used in a custom template to retrieve event data?
It still leaves me puzzled, how to write a custom event template with EM means. I’m still wondering what a (complete) template would look like for a single event view with EM shortcodes / placeholders / template tags in action. Is there an EM’s way to create such?
- This reply was modified 7 years, 11 months ago by bunjip.
Hi @caimin_nwl,
Thanks for your reply. In a way, that’s what I’m looking for. I’ve come across this page before. However, when I insert placeholders in my custom template, they won’t work. That’s why I assumed there might be ‘regular’ template tags available, too.
I copied
wp-content/plugins/events-manager/templates/templates/event-single.php
towp-content/themes/mytheme/plugins/events-manager/templates/event-single.php
to override the default template for a single event view.As the original template replaces ‘the loop’ with custom class methods to retrieve data, I tried both ways in my template:
a) without the loop:
<h1>#_EVENTNAME</h1>
b) within the loop:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h1>#_EVENTNAME</h1>
<?php endwhile; endif; ?>
However,
#_EVENTNAME
never gets parsed but rather the plain string just echoed out. What am I doing wrong with placeholders in custom template?Thanks!
- This reply was modified 7 years, 11 months ago by bunjip.