Support Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.

NOTE : Due to personal issue, this Ultimate WP Query Search Filter Plugin is no longer under development. Thanks for the support over the years.

Anyone that come across this page that want to find a realible saerch plugin, here are the list of potential replacements.

Plugin author will no longer giving support here, however you can still asking for help from other users here.
Pages: [1]
Author Topic: Ajax search results problem
Posts: 1
Post Ajax search results problem
on: March 12, 2016, 18:12

Ultimate WP Query Search Filter - the best plugin of its kind!
This is exactly what I need, but I am having some difficulties ...

Firstable, I use this code in my function.php -

add_filter('uwpqsf_result_tempt', 'customize_output', '', 4);
function customize_output($results , $arg, $id, $getdata ){
	 // The Query
            $apiclass = new uwpqsfprocess();
             $query = new WP_Query( $arg );
		ob_start();	$result = '';
			// The Loop

			if ( $query->have_posts() ) {
			while ( $query->have_posts() ) {
				$query->the_post();global $post; 
				get_template_part( 'content' );
                        echo  $apiclass->ajax_pagination($arg['paged'],$query->max_num_pages, 4, $id, $getdata);
		 } else {
					 get_template_part( 'content', 'none' );
				/* Restore original Post Data */

		$results = ob_get_clean();
			return $results;

But there was a problem with the display of results ...

For Ajax, you must specify the div id/class - I tried all - only suitable #main and #main .row (but I could be wrong)

When I use #main .row - all displayed correctly, but the results are duplicated!
You can check on my website - (just hit the search button)
(AWAKEN template)

And when I use #main - all displayed nearly correctly (the results are not duplicated), but breaks the CSS - the results are "clipped" - somewhere lost .row ...

Maybe I do something wrong ... but I really need to solve this problem!
I'm confused ... PLEASE HELP!

Posts: 530
Post Re: Ajax search results problem
on: March 15, 2016, 11:54

The div you choose have to be unique, otherwise it will display all the divs in the page.
By examine your page from the url, you should use #primary or .content-area , there are two unique divs that I found in the page.
Or if you don't want use these divs, you can add your own div in the them template.

New Add-On Plugins for Ultimate WP Query Search Filter has been released! Check it out now.

Buy Me A Beer! Thanks

Pages: [1]