Rodrigo G. D'Agostino
Forum Replies Created
-
Forum: Plugins
In reply to: [Awesome Surveys] Export to ExcelWouldn’t it be easier to add the “export to CSV” feature into the “Your survey results” tab?
Forum: Plugins
In reply to: [Cimy User Extra Fields] Custom user rolesYes! It worked ??
Forum: Plugins
In reply to: [Cimy User Extra Fields] Custom user rolesGood idea ?? I’ll give it a try and let you know.
Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Displaying search results only for one role?Ok! I got it working now ??
The problem was that some of the meta key fields I used as search filters were blank in the rest of the post that were not being showed. I filled them up and now they appear between the search results ??
Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Displaying search results only for one role?It also might be important to mention that I’m using a custom post type.
Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Displaying search results only for one role?Could it be something related to the hook for displaying results? I think the problem must be there.
add_filter('ajax_wpqsf_reoutput', 'customize_output', '', 4); function customize_output($results , $arg, $id, $getdata ){ // The Query $apiclass = new ajaxwpqsfclass(); $query = new WP_Query( $arg ); ob_start(); //$results =''; // The Loop if ( $query->have_posts() ) { while ( $query->have_posts() ) { $query->the_post(); echo '<li>'.get_permalink().'</li>'; } echo $apiclass->ajax_pagination($arg['paged'],$query->max_num_pages, 4, $id); } else { echo 'No se han encontrado resultados.'; } /* Restore original Post Data */ wp_reset_postdata(); $results = ob_get_clean(); return $results; }
Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Displaying search results only for one role?Hahahahaa! I’ve definitely done that ;P
Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Displaying search results only for one role?I did change the sorting meta key, but it was blank in the beginning. I tried getting it back to blank but I’m still getting the same results.
This is the website I’m working on:
https://www.rodadosfueguinos.com.arForum: Plugins
In reply to: [Ajax WP Query Search Filter] Displaying search results only for one role?I added user parameters but on the displaying part, not on the search query. So the first thing I did was getting rid of those user role parameters, but still displayed the same results.
Oh, and the posts are definitely published. This is very strange :S
Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Customize search resultsI just found the difference on your code. Look how you commented the “$results =”;” line. That did the trick ??
Thanks a lot, TC!
Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Customize search resultsI’m still not getting any results after I changed what you told me to :S
This is my code:add_filter('ajax_wpqsf_reoutput', 'customize_output', '', 4); function customize_output($results , $arg, $id, $getdata ){ // The Query $apiclass = new ajaxwpqsfclass(); $query = new WP_Query( $arg ); ob_start(); $results =''; // The Loop if ( $query->have_posts() ) { while ( $query->have_posts() ) { $query->the_post(); echo '<li>'.get_permalink().'</li>'; } echo $apiclass->ajax_pagination($arg['paged'],$query->max_num_pages, 4, $id); } else { echo 'No se han encontrado resultados.'; } /* Restore original Post Data */ wp_reset_postdata(); $results = ob_get_clean(); }
Any other idea on what could be not working?
Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Customize search resultsI just tried what you said, but now it’s returning nothing ??
You can check it right here: https://www.rodadosfueguinos.com.arForum: Plugins
In reply to: [Ajax WP Query Search Filter] Customize search resultsSure thing! It’s almost the same as the one in the example:
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(); $results =''; // The Loop if ( $query->have_posts() ) { while ( $query->have_posts() ) { $query->the_post(); echo '<li>'.get_permalink().'</li>'; } echo $apiclass->ajax_pagination($arg['paged'],$query->max_num_pages, 4, $id); } else { echo 'No se han encontrado resultados.'; } /* Restore original Post Data */ wp_reset_postdata(); $results = ob_get_clean(); return $results; }
Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Customize search resultsI tried with the hook you provided, but for some reason there search form now is always returning “no post found” :S
Do you think there might be something wrong in the hook’s code?
Forum: Plugins
In reply to: [Ajax WP Query Search Filter] Search form not workingI just found the problem. I checked again deactivating all my plugins, and this time it worked. Finally, I found out that the plugin causing the problem was “jQuery Colorbox”.
I just needed to untick the option “Use jQuery library from Google” and that did the trick ??