Posted: July 29, 2019 at 8:30 am
I have need help to fix list pages layout like with filter, Please review below screens: Filter : Categories, Locations, Date |
|
Hi there, If you are using our models to pull the events into that custom listing you basically just need to feed the selection into the models. We don’t provide support for custom coding, but can help point you in the right direction. The documentation for the model system can be found here: https://github.com/eventespresso/event-espresso-core/tree/master/docs/G–Model-System You need to set up the where conditions and pass them to the models, take a look at the examples here: |
|
if (!empty($search)) { “DWN2020 Conference” : not working when search with half word. |
|
Solved : |
|
Just noting that the above is correct. If you want results based on partial-string matches you need to pass the wildcard characters in the locations you want to use them (usually the beginning and end of the search string) as you have done above. |
|
Can you help me for state-based event list filter?
I have tried above this code but not working. I have check document also but there has not this logic. |
|
|
|
That should actually be something like:
Are you sure you have |
|
Are you sure you have Yes, I have set but this function not working on an event for a loop. I have customized but can you help me with this function. my custom code after this not working form ref of admin side code. I suggest you please create well document with all king of conditions argument with filter opitons,
|
|
It sounds like the trouble you’re having is because you’re trying to use functions that are only available on the frontend. Those will not work on the admin side. You can use the model classes helper method directly, like this one, instead of “View”-based helper methods intended for the front end only. e.g. |
|
you have not got my point I have need value id using event id. |
|
In the code above, your using an instance of EE_Venue to pull the ID from that EE_Venue, to then pull an instance of EE_Venue? To explain:
This sets
Uses
Uses This means
The point Josh is making is your going about this the wrong way, Why do you need only the Venue ID? I’m assuming its to pull the Venue object as there’s nothing else of value with just the VNU_ID Is the only value you have at that point the Event ID? No EE_Event object? You can use the |
|
The support post ‘How to customize Archive page with filter based’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.