Support Forums

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

Noeste IJver

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 69 total)
  • Noeste IJver in reply to:
    Trigger the infinite scroll through a “load more” button, not automatically
    #276618

    Thanks for understanding that it almost felt like it was vaporware. 😜
    I’m still very interested in V3 and will absolutely give it a spin when it’s available.

    Noeste IJver in reply to:
    Trigger the infinite scroll through a “load more” button, not automatically
    #276596

    I have somewhat given up on v3 and am now using FacetWP as well. In some ways it’s a bit more flexible then S&F as well, but in other ways it’s more stubborn.

    Noeste IJver in reply to:
    Trigger the infinite scroll through a “load more” button, not automatically
    #276390

    We are absolutely high-jacking this topic now..

    But since v3 has been promised for such a long time now, everyone is really interested to know what it will offer and what it will look like. Maybe it’s possible to publish some blogs or video’s to get us up to speed a bit?

    All due respect, but we’re being told that “v3 will arrive in a couple of months” for almost 5 years. I really hope the promise about the availability it true, but after all these years I think it’s not all that weird to take the due date with a grain of salt now.

    Although v2 is still workable, I’m really looking forward to more features in terms of functionality and developer customisability.

    Noeste IJver in reply to:
    Trigger the infinite scroll through a “load more” button, not automatically
    #276384

    Oh, just creating a ticket is enough? Then we should be golden.

    Noeste IJver in reply to:
    Trigger the infinite scroll through a “load more” button, not automatically
    #276380

    Hi Trevor,

    No I probably didn’t. What do I need to do to get considered for beta testing?

    Noeste IJver in reply to:
    Trigger the infinite scroll through a “load more” button, not automatically
    #276376

    This is probably not the right place but we’d like to be added to the beta-test for the mythical v3 of Search & Filter Pro as well.

    Noeste IJver in reply to:
    Form on a single-post
    #253659

    I’ve solved it with some workarounds. I will post my solution for other people:

    Form settings:
    – configured the form display method as ‘custom’;
    – added a results url of a random page (it needs to be filled);
    – enabled Ajax loading and configured a div as Ajax container;
    – enabled ‘make searches bookmarkable’;
    – enabled Ajax pagination.

    I added a filter in functions.php, so the results url for this specific form will always be overwritten with the current permalink:

    
    function filter_function_name( $url,  $sfid) {
    	if (get_post_field('post_name', $sfid) == 'agenda-shadow-single-post') {
    		$url = get_permalink();
    	}
    	return $url;
     }
     add_filter( 'sf_results_url', 'filter_function_name', 10, 2 );
    

    I implemented the form in template files as following:

    
    <?php
    	// retrieving the the form by using the slug
    	$sf_form_obj = get_page_by_path('agenda-shadow-single-post', OBJECT, 'search-filter-widget');
    
    	if ($sf_form_obj) {
    		$args['search_filter_id'] = $sf_form_obj->ID;
    		$query = new WP_Query($args);
    
    		if ($query->have_posts()) {
    			while ($query->have_posts()) {
    				$query->the_post();
    
    				get_template_part('template-parts/blocks/block-activiteit');
    			}
    		} else {
    			?>
    				<div class='search-filter-results-list' data-search-filter-action='infinite-scroll-end'></div>
    			<?php
    		}
    	}
    ?>
    

    I tried to alter the query args with the sf_edit_query_args filter, but it didn’t work for me. So I wrote some JavaScript to modify the value of the filter of the post-type that’s currently being viewed. After that I’ve hidden the filter, so it won’t be changed by the user. I did this with a function that’s being triggered on these ajax events:

    jQuery(document).on("sf:ajaxstart sf:init sf:ajaxfinish", ".searchandfilter", function () {
    	fillFilterOnLocation();
    });
    
    Noeste IJver in reply to:
    Form on a single-post
    #253647

    Hi Ross,

    Thanks for your answer, I tried to work this out but I’m not getting there yet. I think I’m still confused about what display method I should use for showing results on a single-post. Can you inform me about this?

    Noeste IJver in reply to:
    Count of filters not correct after using pre_get_posts
    #242109

    Hi Ross,

    We are trying to show S&F results on a Google Map.

    Therefore we want to set the posts per page to -1 (I can achieve that).

    But we also want to check the existence of a meta value (the location). For compatibility reasons I add that piece to the meta query (instead of setting the meta value). But maybe I am too careful.

    What I have:

    // modify posts per page to show all
          $query_args['posts_per_page'] = -1;
    
          // only items with location
          $query_args['meta_query'][] = array(
             'key'     => 'fw:opt:location',
          );

    But maybe it could also be:

    // modify posts per page to show all
          $query_args['posts_per_page'] = -1;
    
          // only items with location
          $query_args['meta_query'] = array(
             'key'     => 'fw:opt:location',
          );

    I want to prevent overwriting the meta query if it is already set.

    Noeste IJver in reply to:
    Count of filters not correct after using pre_get_posts
    #242096

    I’m trying to add something specific to the meta query, but this addition is done twice because of this.

    Is there a better way to add stuff to the meta query?

Viewing 10 posts - 1 through 10 (of 69 total)