This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 15 posts - 3,466 through 3,480 (of 18,427 total)
  • Author
    Posts
  • in reply to: events manager – no results found for some events #45239
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Sure!

    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_date and/or the _event_end_date pseudo 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"}

    in reply to: events manager – no results found for some events #45236
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: events manager – no results found for some events #45234
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    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.

    in reply to: Search by custom post type #45233
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Thank 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!

    in reply to: Custom Fields Won't Appear In URL #45232
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi 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.

    in reply to: Searching in Elementor created pages #45231
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Search Box Position Issue #45230
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: ACF Search woocommerce #45228
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Demo Setup: Events Search – Events Manager – Code needed #45220
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Search by custom post type #45218
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi 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 🙂

    in reply to: Demo Setup: Events Search – Events Manager – Code needed #45217
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    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.

    in reply to: ACF Search woocommerce #45215
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Ajax Search pro tags – Doesn't find my product #45201
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Show results matching all selected taxomony terms #45200
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: search leads to no results #45199
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Thank 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.

Viewing 15 posts - 3,466 through 3,480 (of 18,427 total)