adhanaraj
Forum Replies Created
-
Heyo – I’m actually working on this exact same issue. I’m in the process of figuring it out, but I’ll report back in in like a day or so. Basically where I’m attacking it from is creating new hierarchal taxonomies for my categories (which is all a category is anyways).
Sure thing – the things that are changed are anything that have the words ‘product’ or ‘segment’ in them ??
Disclaimer: This is probably not the best way of doing it, just the way that worked for me.
I’ve split the pastebin into events-list, events-search, and then the entire em-objects. Good luck!
Figured it out! Unfortunately had to change some of event_manager’s core files, so I’ll have to keep my eye out and replace it whenever EM updates.
Anyways, what I did was that I went into em-object.php (in /classes), and added two more key-value pairs to $super_defaults. I then went and duplicated anything to do with categories (minus wordpress terms) and changed them to the respective two new variables I wanted (products, segment).
Back to the event-list file I just passed the _REQUEST[‘variable’] onto their respect $variable.
Thanks for helping me out, really put me on the right path. ??
Just running some more updates for you guys :).
I’ve got the search to work to an extent. It currently treats the three category boxes as an OR command, as opposed to a AND.
I’ve uploaded what I’ve done to a pastebin here. https://pastebin.com/EMNmHfjS
Any help would be great ??
I absolutely lied, there definitely was an easy fix. Had to change $args[‘tag’] to $args[‘category’]. Thanks so much for your help, you are a god among men.
EDIT: Nope, I lied. Did not work ??
Yep, its to do with the events search form. Thanks for the start, taking a crack at it now :). Just stuck it in and playing around with it, will come back and update if I make any progress. As a quick dry run (and a hope for an easy fix!) I just tried swapping out the taxonomy from tags to categories, but that (of course) didn’t work). Just noted your ‘e.g’ comment, going to try to see if I can figure it out.
I guess I should be more specific with the search breaking part – it only accepts the value from the last one (as would be expected, I guess)