Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    it would be best to just go to wp-admin / Settings / Permalinks panel, select there an option different than “Plain” and save changes this will fix the search.

    If you would like to keep the plain links then you would need to use the adverts_form_load filter to add a hidden input named page_id with value 230.

    
    add_filter( "adverts_form_load", function( $form ) {
      if( $form["name"] != "search" ) {
        return $form;
      }
      $form["field"][] = array(
        "type" => "adverts_field_hidden",
        "name" => "page_id",
        "value" => 230
      );
      return $form;
    } );
    
    Thread Starter michalbialecki

    (@michalbialecki)

    That worked @gwin, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search in adverts_list redirects to main page’ is closed to new replies.