Plugin Author
TC.K
(@wp_dummy)
No, you cannot use this method in the Ajax version, this plugin is using Ajax to load the results in the same page. The two plugin are working differently.
Thread Starter
Dneiz
(@dneiz)
Hmm.. How can i fix this?
I just need to show the ‘€’ sign on my website. I doesnt matter if I use the AJAX or the normal edition.
Thank you!
Plugin Author
TC.K
(@wp_dummy)
No, it is not a ‘fix’ matter. I assume you want to customize the searched result, to do this, you can use ajax_wpqsf_reoutput() to do it. For how to use the filter, please refer to this post.
Thread Starter
Dneiz
(@dneiz)
I tried your post, but is still not working.
I get this error:
Parse error: syntax error, unexpected '<', expecting ')' in /xxxxxxxxxxx/public_html/wp-content/themes/smart/functions.php on line 55
And this is the search result page:
add_filter('ajax_wpqsf_reoutput', 'customize_output', '', 4);
function customize_output($results , $arg, $id, $getdata ){
// The Query
$apiclass = new ajaxwpqsfclass();
$query = new WP_Query( $args );
ob_start(); $result = '';
// The Loop
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
echo '<li>'.get_permalink().'</li>';
}
echo $apiclass->ajax_pagination(<code>$arg['paged']</code>,$query->max_num_pages, 4, $id);
} else {
echo 'no post found';
}
/* Restore original Post Data */
wp_reset_postdata();
$results = ob_get_clean();
return $results;
}
Plugin Author
TC.K
(@wp_dummy)
If you check properly, you will find there is in the line
$apiclass->ajax_pagination(<code>$arg['paged']</code>,$query->max_num_pages, 4, $id);
Just remove the <code> and </code> and you are good to go.