Aldo
Forum Replies Created
-
Forum: Plugins
In reply to: [Ajax WP Query Search Filter] AJAX CallbackI dont want to manipulate it, just want to grab the executed query to use it again in the background for another purpose.
I thought maybe it would be possible to store it in a hidden field via Ajax.
Other suggestion?Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Costumize result templateOne more question regarding the output template:
How can I retrieve the search form ID in ajax_wpqsf_reoutput?EDIT: Could this be related to the “pagicurrent” issue?
$apiclass->ajax_pagination($arg[‘paged’],$query->max_num_pages, 4, $id) requires $id, but there is none in the ajax_wpqsf_reoutput filter.Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Multiple Select as Display TypeThanks, worked perfectly.
Maybe as Feature request if you would add multiselect as possible display type, would be great ??Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Costumize result templateFor some reason my “pagicurrent” class gets not changed to the according page when paginating.
This is my code:
function customize_output($results , $args){ $apiclass = new ajaxwpqsfclass(); // The Query $query = new WP_Query( $args ); $html = ''; //ob_start(); $results =''; // The Loop if ( $query->have_posts() ) { while ( $query->have_posts() ) { $query->the_post(); $html .= '<tr>'; $html .= ' <td><a href="'.get_permalink().'" class="name">'.get_the_title().'</a><span class="subtext">'. get_field('firma') .'</span></td>'; $html .= ' <td>'; $terms = get_the_terms( $post->ID, 'typ' ); if ( $terms && ! is_wp_error( $terms ) ) : $type_links = array(); foreach ( $terms as $term ) { $type_links[] = $term->name; } $types = join( ", ", $type_links ); $html .= $types; endif; $html .= ' </td>'; $html .= ' <td>'; $contact_person = get_field('ansprechsperson'); if (is_array($contact_person)) { $html .= $contact_person["user_firstname"] . ' ' . $contact_person["user_lastname"]; } else { $user = get_user_by( 'id', get_field('ansprechsperson') ); $html .= $user->first_name . ' ' . $user->last_name; } $html .= ' </td>'; $html .= ' <td class="align-right">'; $html .= ' <a href="#">'. get_field('e-mail') . '</a>'; $html .= ' </td>'; $html .= '</tr>'; } $html .= $apiclass->ajax_pagination($arg['paged'],$query->max_num_pages, 4, $id); } else { $html .= 'No post found'; } /* Restore original Post Data */ wp_reset_postdata(); return $html; }
Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Costumize result templateThanks, but still not changing the class “pagicurrent”, where else could I look?
Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Costumize result templateStill not changing the class “pagicurrent”
Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Costumize result template@tc.K,
If i place
$apiclass->ajax_pagination($pagenumber,$query->max_num_pages, 4, $id);
before the end while loop I get the pagination on each entry.When I place it outside, I get the pagination, but clicking on a number does not change the page. It loads, but no change.
EDIT: Pagination changes, but the class “pagicurrent” remains at the first page.
Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Costumize result templateDo I call the function in the customize_output filter?
Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Costumize result templateBut how do I use it in combination with ajax_wpqsf_reoutput()?
Because the pagination is not showed at all.Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Costumize result templateHow can I customize the pagination, any hook for this?
Forum: Plugins
In reply to: [Advance WP Query Search Filter] Feature Request: Export Results to csv / xlsNot tested, but maybe you can apply this plugin to the results:
https://datatables.net/extras/tabletools/Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Results with multiple taxonomies not accurateThanks!
Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Results with multiple taxonomies not accurateWould be great ??
Thanks for all your help.
Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Results with multiple taxonomies not accurateWorks perfect ?? Thanks!
Last thing, line 183 in process.php:
&& empty($keyword)
I removed this to have it strict, so the search string and the terms are checked.
Any way to manipulate this through a hook?Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Results with multiple taxonomies not accurateThanks for your feedback.
I get to warnings using your hook:
Warning: Missing argument 2 for my_custom_process() in /home/interpub/www/dev.site.com/wp-content/themes/interface/functions.php on line 191
Warning: Missing argument 3 for my_custom_process() in /home/interpub/www/dev.site.com/wp-content/themes/interface/functions.php on line 191The affected line is:
function my_custom_process($taxo,$id, $gettaxo ){