Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterSure!
You can use the advanced title/content fields for that. There is a date format argument available as well.
For the events manager use the
_event_start_dateand/or the_event_end_datepseudo variables. For example, using this in the advanced description field will display the event start date like “Starts: 2024 Nov, 01, Fr”:Starts: {_event_start_date date_format="Y M, d, D"}Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
Sure!
I quickly logged in to check the settings, and I found that the category filter default was set to the first element instead of the “Choose one” option, so all results were basically filtered to the “Ausbildung” category.
I turned this option on, now it should be okay.Ernest Marcinko
KeymasterThank you!
Can you please tell me how can I access the admin interface? I only see a username, but no password. I checked my mailbox if you sent me any links or one time login queries, but I can’t find any. Can you please let me know the login/pass? Thanks!
Ernest Marcinko
KeymasterHi Nathan,
If you enable the search results override then the filter arguments will be automatically passed with the request in the url. The argument names will be different though, those can’t be modified.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
September 4, 2023 at 4:07 pm in reply to: Demo Setup: Events Search – Events Manager – Code needed #45220Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi Valentina,
Thank you very much for the details. I tried to check, but currently I am getting a database issue when trying to view the site: https://i.imgur.com/AfSgRkq.png
Please let me know once it’s resolved and I will check again 🙂
September 4, 2023 at 4:01 pm in reply to: Demo Setup: Events Search – Events Manager – Code needed #45217Ernest Marcinko
KeymasterHi,
Sure!
I am not sure what happened with that knowledge base, the code just vanished and I can’t even see it in the history. Anyways, I managed to scrape out a solution from a previous ticket, which takes multiple choices and other various things into consideration:
add_filter('asp_pre_get_front_filters', 'asp_locations_pre_get_front_filters', 10, 2); function asp_locations_pre_get_front_filters($filters, $type) { if ( $type == 'custom_field' ) { foreach ($filters as $k => $filter) { if ( $filter->data['field'] == '_location_id' && class_exists('EM_Locations') ) { $location_ids = array(); $select_all = false; foreach ( $filter->get() as $kk=>$item ) { if ( $item->value == '' ) { $select_all = $item->label; } else if ( is_numeric($item->value) ) { $location_ids[] = $item->value; } } $filter->remove(); $locations = EM_Locations::get( array('location'=>array_unique($location_ids)) ); $locarr = array(); if ( is_array($locations) && count($locations) > 0 ) { foreach ( $locations as $loc ) { if ( isset($locarr[$loc->location_town]) ) { $locarr[$loc->location_town] .= '::' . $loc->location_id; } else { $locarr[$loc->location_town] = $loc->location_id; } } if ( $select_all !== false ) { $filter->add(array( 'value' => '', 'label' => $select_all, )); } ksort($locarr); foreach ( $locarr as $key => $loc ) { if ( !empty($key) && !empty($loc) ) $filter->add(array( 'value' => $loc, 'label' => $key, )); } } $filters[$k] = $filter; } } } return $filters; }This should very likely do the trick.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterThank you!
I tried deactivating the plugin, to see if there is anything on the search results page – but it’s empty as well for any search phrase: https://i.imgur.com/V6cmB6E.png
The issue seems to be, that the search results loop is missing from the theme search.php file. If you changed that file, then I suggest making sure to revert it back to the original where the posts loop is present. Otherwise WordPress will not show anything on the page.
-
AuthorPosts