Forums Forums Search & Filter Pro Plugin show but do not filter

Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Anonymous
    #175625

    Hi,

    I have tried to make your plugin work, but can’t seem to solve my problem. I’ve set up a filter by categories and it shows on the page but it doesn’t filter / nothing happens when click. The test posts have been marked with different categories but nothing seems to work.

    Also I can’t seem to find a guide to how ACF fields can be connected to a filter by your plugin?

    Thanks, Maria

    Trevor
    #175636
    This reply has been marked as private.
    Anonymous
    #175661
    This reply has been marked as private.
    Trevor
    #175758

    The only thing I can see initially is that your site is https, but in WP Admin -> Settings -> General, WordPress-adresse (URL) and Webstedsadresse (URL) are set to http. Try changing those first to https and see if that makes a difference?

    Anonymous
    #175766
    This reply has been marked as private.
    Trevor
    #175770

    I see an error in the archive-workshops.php template file. Line 49 is </ul> but it needs moving up to line 45 (inside the IF and WHILE).

    In the archive-workshops.php template file I can see on line 15 a shortcode from our free version. Can this be removed?

    When I edit the find-din-workshop page, I also see the same shortcode in a text element. Again, can this be removed?

    Will this page be where the search and results are?

    If so, can we try a different method? See here the guide to use the Shortcode Results method:

    https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/

    And make sure to follow the guidance for Customising. In the custom result.php file, find this part (lines 47-72):

    	while ($query->have_posts())
    	{
    		$query->the_post();
    		
    		?>
    		<div>
    			<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    			
    			<p><br /><?php the_excerpt(); ?></p>
    			<?php 
    				if ( has_post_thumbnail() ) {
    					echo '<p>';
    					the_post_thumbnail("small");
    					echo '</p>';
    				}
    			?>
    			<p><?php the_category(); ?></p>
    			<p><?php the_tags(); ?></p>
    			<p><small><?php the_date(); ?></small></p>
    			
    		</div>
    		
    		<hr />
    		<?php
    	}
    	?>

    and replace it with this:

    	<ul>
    	<?php
    	while ($query->have_posts())
    	{
    		$query->the_post();
    		
    		?>
    		<li>
                    <a class="workshop-thumbnail" href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
    
                    <p class="workshop-emnefelt"><?php the_field('Emne'); ?></p>
    
                    <h5><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>
    
                    <h5 class="workshop-pris"><?php the_field('pris'); ?></h5>
    			
    		</li>
    		
    		<?php
    	}
    	?>
            </ul>
    Anonymous
    #175790
    This reply has been marked as private.
    Trevor
    #175837
    This reply has been marked as private.
    Anonymous
    #176261
    This reply has been marked as private.
Viewing 9 posts - 1 through 9 (of 9 total)