oleonard
Forum Replies Created
-
Thanks for the suggestion. I’m behind the curve on OOP so maybe I’m just missing something because of that, but here’s what I tried to test things out. I put this at the top of single_event_format.php:
<?php global $EM_Event; echo ($EM_Event->get_location()->location_name); ?>
I got “Fatal error: Call to a member function get_location() on null”
Okay, I’m back to thinking about this. Thanks for your quick reply. I’m trying to do in WordPress what I was able to do in another system, but I’m not sure if it’s possible:
I’d like to do a kind of drill-down path:
On Location Page 1, a list of links:
– Link to Category 1
– Link to Category 2
– Link to Category 3Clicking one of those links take me to a page which shows events at Location Page 1 with Category 3
I don’t know how you can do that without passing additional parameters in the URL. Using shortcodes to build the links would require that I know in advance what all possible categories might be.
One thing to be careful of if anyone is running into this problem and looking at the solution linked above: It works: The markup is saved without reformatting.
However, every time you open that page for editing the WordPress editor automatically reformats your markup incorrectly and you have to fix it again. This is less than ideal to say the least.
To me it sounds like a pretty serious WordPress bug if the WordPress visual editor can’t ignore content enclosed in shortcodes.
Got it! Thanks!
Thanks, I wanted to make sure I wasn’t missing something.
[events_list category="-26"]
The above gives me a correctly-filtered list of events.
[categories_list category="-26"]
This gives me a list of all categories, including the one with tag_ID = 26.
[categories_list hide_empty="1" category="-26"]
I didn’t have any luck with that either.
Thanks for the suggestion. If found this, and it seems to work:
Thanks very much for your reply. I haven’t worked through that tutorial yet but it’s on my to-do list.