WordPress.org

Ready to get started?Download WordPress

Forums

Ajax WP Query Search Filter
AJAX Callback (5 posts)

  1. Aldo
    Member
    Posted 11 months ago #

    Hello

    Is there a callback, so we can grab the Post query for further use?

    Thanks,
    Aldo

    http://wordpress.org/plugins/ajax-wp-query-search-filter/

  2. TC.K
    Member
    Plugin Author

    Posted 11 months ago #

    Actually you can manipulated the post query form the wp_query in the 'ajax_wpqsf_reoutput' filter.

  3. Aldo
    Member
    Posted 11 months ago #

    I 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?

  4. TC.K
    Member
    Plugin Author

    Posted 11 months ago #

    Sure, you can hold your $query in a place holder.
    For example:

    $data = $query;
    //then you can use that $data for another purpose.
  5. Aldo
    Member
    Posted 11 months ago #

    But how do I pass the $id?

    add_filter('ajax_wpqsf_reoutput', 'customize_output', '', 2);
    function customize_output($results , $args){
    
    echo $id;
    
    }

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.