Forums › Forums › Search & Filter Pro › I don't know how to make it work with ACF
Tagged: advanced custom fields, search and filter, V3
- This topic has 21 replies, 2 voices, and was last updated 5 years, 6 months ago by Trevor.
-
Trevor(Private) May 10, 2019 at 10:15 am #210717
‘To hide’ part.
As you are using our Shortcode Display Results method, the guide to customising it is here:
https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results
Your results.php file will have these lines in it (27-46):
?> Found <?php echo $query->found_posts; ?> Results<br /> Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br /> <div class="pagination"> <div class="nav-previous"><?php next_posts_link( 'Older posts', $query->max_num_pages ); ?></div> <div class="nav-next"><?php previous_posts_link( 'Newer posts' ); ?></div> <?php /* example code for using the wp_pagenavi plugin */ if (function_exists('wp_pagenavi')) { echo "<br />"; wp_pagenavi( array( 'query' => $query ) ); } ?> </div> <?php
You need to remove these.
With regard to the form, you also mentioned font sizing? I would use the browser developer tools inspector to work out what to change, and the gaps will be set as margins I would guess, but i would need to see a live link/URL to your search page so I can take a look.
Trevor(Private) May 10, 2019 at 4:38 pm #210831I suspect that they way you have it made it will not work. If a post does not have a value in the field that is used for a slider, the post will never appear once a search has been made.
Even though you have set those fields to only apply to one set of posts in the ACF Field Group, our plugin does not see those settings. Those settings only affect what is shown in the WordPress editor page for the posts, they do not set a rule we can use to filter by.
-
AuthorPosts