Search using ACF repeater

You can filter ACF repeater field sub fields on the front end using some jQuery. See basic example below. See live working demo here: https://jsfiddle.net/joshmoto/ns73z05b/ See comments in jQuery so you know what is happening. // faq filter input on keyup event $(‘#faq’).on(‘keyup’, ‘INPUT[type=”search”]’, function(event) { // get our elements let $faq = $(event.delegateTarget); // … Read more

Searching for one letter returns extra empty post

Searching using just one letter isn’t really a good thing to do. Result wise, many posts should match the search query. On my site and testbed it does return results, I don’t think they are particularly valid, but there are results. So it sounds like something is up with your install, but unless it is … Read more

Load search results into a div

If your form is already loaded inside fancybox you can updated it using ajax and simply assign the results to that fancybox instance $.fancybox(ajaxdata); To get a better understanding take a look at example 5 at this page Hope this helps.

Can’t place two custom post types into the WordPress search query?

Try to drop that in your functions.php file: function filter_query_for_search( $query ) { if ( isset( $query[‘s’] ) ) { $query[‘post_type’] = array(‘forum’, ‘topic’, ‘reply’, ‘any’); } return $query; } add_filter(‘request’, ‘filter_query_for_search’, 1); that would hook into the query just before its being executed.

Checkboxed term search

I built something similar for a client not too long ago. I believe your question is if it is possible — I can definitely say yes there. How would you go about it? Well, as I don’t have the code handy, I’ll give you a brief run-down of the steps I went about. I made … Read more

Why does this search.php not work?

I see at least two potential issues: You have if ( have_posts() ) : twice. Here: <?php if ( have_posts() ) : ?> <h1 class=”page-title”><?php printf( __( ‘Search Results for: %s’, ‘nothing’ ), ” . get_search_query() . ” ); ?></h1> And here: <ul id=”post-list”> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> The get_template_part() … Read more

Enhancin 404 to contain a search from URL

WordPress doesn’t deeplink to any php file for the front end. Instead, everything is passed throug the url as a query, like so http://your-blog-url.com?p=123. If you wanted to change that behaviour, you could edit your permalink structure in multiple ways. Just go to settings->permalinks (i have no idea what that is in czech, but its … Read more