Custom fields search issues
-
Hi there,
I’ve been reading the documentation and racking my brains so I’m hoping someone will be able to help me. I’m happy to fork out for the pro version to get the support but I don’t think I need any of the pro features and I’m worried that perhaps the plugin can’t do what I need!
I’ve added a custom attribute in the Settings/General Options
#_ATT{Sex}{Any|Male|Female}I’ve modified the way an event looks to show the sex
Now I need to be able to search events. I’ve added code to functions.php based on this tutorial
Which with changed text now looks like this:
https://www.kimberlyann.co.uk/wp-content/uploads/2015/12/functionsphp.txtThis stops the search function from working completely. When I take out the last line add_filter( ’em_events_build_sql_conditions’, ‘my_sex_conditions’,1,2); and instead try different functions from the tutorials in the documentation:
https://wp-events-plugin.com/tutorials/creating-conditional-placeholders-for-events/
https://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/
I’m getting nowhere. I can get the search working again but it completely ignores filtering the results by sex.Any ideas?
- The topic ‘Custom fields search issues’ is closed to new replies.