Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Rebecca Taubert

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Rebecca Taubert in reply to:
    Pagination not working for custom results
    #212527

    To be honest I am not sure how to create that function – it’s a bit beyond my abilities.

    I tried this, but it made the search form stop working.
    function filter_function_name( $query_args, $sfid ) {

    //if search form ID = 225, the do something with this query
    if($sfid==26869)
    {
    //modify $query_args here before returning it

    $query_args[‘post_type’] = array( ‘practitioners’ );
    }

    return $query_args;
    }
    add_filter( ‘sf_edit_query_args’, ‘filter_function_name’, 20, 2 );

    Just to simply matters, I have removed all the functions.php code altogether for the time being. As you will see on the page, the pagination does not seem to work with the search form on the page. When I put in a manual pagination link of https://staging-universallifetools.kinsta.cloud/our-teachers/page/2 it works, but the actual pagination buttons do not seem to do anything, just refresh the page.

    Rebecca Taubert in reply to:
    Pagination not working for custom results
    #212514

    I have just taken this code out and it still does not work. If I take the shortcode for the search and filter pro searh out, then the pagination works again, so I am not sure what is happening. Happy to share login details if that would help as it is only a staging site

    Rebecca Taubert in reply to:
    Pagination not working for custom results
    #212512

    Hi Trevor – I am using the below code. Happy to catchup via Skype but I am in Australia GMT +10 so not sure what time zone you are in?

    add_filter(“pre_get_posts”, “modify_bb_query”);

    function modify_bb_query($query){

    if(!isset($query->query_vars[‘fl_builder_loop’])){
    return $query;
    }

    //if is page “our-teachers” and this is a fl_builder_loop
    if((is_page(“our-teachers”)) && ($query->query_vars[‘fl_builder_loop’] == true)){
    //then attach S&F to the query
    $query->set(‘search_filter_id’, 26869);

    $taxquery = array(
    array(
    ‘taxonomy’ => ‘teacher_status’,
    ‘field’ => ‘slug’,
    ‘terms’ => array( ‘teacher’ ),
    )
    );
    $query->set( ‘tax_query’, $taxquery );

    }
    }

    Rebecca Taubert in reply to:
    Beaver Themer conflict
    #164053

    Hi Trevor

    I have been working with Justin Busa on the Beaver Builder end with regards to this issue who has confirmed that it is not a problem specific to Beaver Themer.

    Even with Beaver Themer deactivated, when SFP is active, CPT archives aren’t returning any posts and the $post object is NULL – please see the attached screenshot.

    https://www.dropbox.com/s/flr7ipew95rsiyt/Screenshot%202018-01-15%2010.01.47.png?dl=0

    It’s definitely an issue with the Search & Filter Pro plugin. Can you please have a look at this urgently?

    Thanks in advance!

Viewing 4 posts - 1 through 4 (of 4 total)