Support Forums

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

Mike Reed

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Mike Reed in reply to:
    Can pre_get_posts be used to adjust S&F the results with a shortcode
    #219529
    This reply has been marked as private.
    Mike Reed in reply to:
    Order (group) results by taxonomy term by default
    #205287
    This reply has been marked as private.
    Mike Reed in reply to:
    Order (group) results by taxonomy term by default
    #205283

    Thanks for confirming. What I was seeing with that filter is that WP Query does not have a direct way to group or sort by tax term. Existing solution all use a loop in a template.

    For this application, duplicating the loop worked fine:

    <?php
    	while ($query->have_posts())
    	{
    		$query->the_post();
    
    		if ( get_post_type( get_the_ID() ) == 'business_listing' && has_term('for-sale', 'listing_status') ) {
    			echo do_shortcode( '[pods name="business_listing" template="Listing Snippet" id="'.get_the_ID().'"]' );
    		} 
            
    	}
    	?>
    	<?php
    	while ($query->have_posts())
    	{
    		$query->the_post();
    
    		if ( get_post_type( get_the_ID() ) == 'business_listing' && has_term('under-loi', 'listing_status')) {
    			echo do_shortcode( '[pods name="business_listing" template="Listing Snippet"  id="'.get_the_ID().'"]' );
    		} 
            
    	}
    	?>
    Mike Reed in reply to:
    Order (group) results by taxonomy term by default
    #205274

    That makes sense. Can you provide a little more info on how Relevanssi is integrated into the S&F results? I’m going to troubleshoot a bit more, but will probably end up using a meta value.

    -Is a search term required for Relevanssi filtered results?
    -How do the respective indexes interact?

    Thanks

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