dlip
Forum Replies Created
-
The code is in the theme’s functions document, not a plugin.
Again, I created attributes in Settings. They are showing on the Registration Form. Now, all I want is:
a) that I can add them to shortcodes so that I can create a list of items that have that attribute
b) that people can search for this attribute by typing it into the Events Manager search bar.
Which Step of the code is needed from the tutorial document, and which words do I have to replace with my Attribute Name (which is ‘Gender’).
http://wp-events-plugin.com/tutorials/creating-a-events-manager-add-on-a-complete-walkthrough/
Thanks a lot. This will be lifesaving help.
Any ideas? In short, I just need to be able to Filter the events_list shortcode by the custom attributes I created under Settings.
I’ve tried the tutorials, but they haven’t helped me (maybe I’m doing something wrong).
Please help! Thanks again
I saved the code as PHP and uploaded it to my Plugin folder, as instructed (found at http://d1mkunav5pg7l3.cloudfront.net/wp-content/uploads/2011/04/em-event-styles.txt). But it doesn’t seem to have made any changes.
In short, I need to be able to achieve these 2 things:
1. The user has to be able to search by custom attributes (using the search box, or at least with a pull down box)
2. To filter event lits by the custom attributes.Thanks a lot!
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Search barThanks, but I’m referring to the Search Bar that comes with Events Manager. So my question is that I’d like the user to be able to search for all attributes, such as Category, using the search bar itself. (I’m not referring to custom attributes, which I know need some coding done to make them searchable).
Please let me know. Greatly appreciated!
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Search barThanks.
I’m referring to the search box provided by Events Manager. It seems that it doesn’t recognize Categories or other Attributes. Users expect to be able to input anything into a search box, and not have to head over to the “Category” pull down in order to search by Category.
is there any way to make this possible?
Thanks for your response. You write “
so until you have a bunch of town pages, there’s no easy way
Once you DO have a bunch of town pages, then what’s the way to do it?
Yup, that’s where I put it. But nothing happens. This is a serious issue as searching for other attributes is key.
FYI, I downloaded the entire code that’s included at the bottom of the add-on tutorial, saved it as php, uploaded it to Plugin folder, but nothing happened.
Any ideas on this? On how to make a list of TOWNS that are clickable and will bring you to a page with all events for that town?
Events Manager can do this for VENUES (which it calls LOCATIONS). But I want it for TOWNS.
Any ideas?
Thanks.
It didn’t work. This is what I did: I created an attribute in the Settings. I then copied and pasted the following 2 pieces of code into functions.php in my theme folder. In the first snipped I changed the 4 mentions of STYLE to one of my attribute names: GENDER. IN the second piece I replaced the 3 mentions of STYLE with GENDER. I did Nothing else that’s listed in the Add-on Tutorial. But it doesn’t work. Any suggestions?
add_filter('em_events_get_default_search','my_em_styles_get_default_search',1,2); function my_em_styles_get_default_search($searches, $array){ if( !empty($array['style']) && is_numeric($array['style']) ){ $searches['style'] = $array['style']; } return $searches; }add_filter('em_events_get','my_em_styles_events_get',1,2); function my_em_styles_events_get($events, $args){ if( !empty($args['style']) && is_numeric($args['style']) ){ foreach($events as $event_key => $EM_Event){ if( !in_array($args['style'],$EM_Event->styles) ){ unset($events[$event_key]); } } } return $events; }Awesome,thanks.
Thank you, but here’s what I’m trying to do: In a widget on homepage, I’d like a list of TOWNS that are clickable, so when you click on a town’s name it will bring up a page with all events from that town.
It’s a pretty basic request, but is it possible?
Thanks again for your help.
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] User submissionsThanks a lot.
Thanks angelo, but that just returns a list of Location Venues. I’m looking for a list of location CITIES/TOWNS. Any ideas?
Thanks.