Title: [Plugin: Advanced Post Manager] Date filtering
Last modified: August 20, 2016

---

# [Plugin: Advanced Post Manager] Date filtering

 *  Resolved [Rain3r](https://wordpress.org/support/users/rain3r/)
 * (@rain3r)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-advanced-post-manager-date-filtering/)
 * Hi,
    I would like to filter posts by post_date and post_modified. Currently I
   have datepicker text input field and operator select list, but I am not able 
   to pass these parameters to wp_query. Column sorting is already OK. Using the
   sample code for post_status filtering I changed mainly two functions : public
   function parse_query($wp_query, $active) { //only test, do the job for one certain
   date $wp_query->set(‘monthnum’, ‘5’); $wp_query->set(‘day’, ‘3’); $wp_query->
   set(‘year’, ‘2012’); } public function form_row($return, $key, $value, $filter){
   $query_options = array( ‘=’ => ‘Je’, //Is ‘!=’ => ‘Není’, //Is not ‘>’ => ‘>’,‘
   <‘ => ‘<‘, ‘>=’ => ‘>=’, ‘<=’ => ‘<=’ ); $is_key = ‘tribe_filters_is_’.$key; 
   $ret .= Tribe_Filters::select_field( $is_key, $query_options, $value[‘query_option’]);
   $ret .= ‘<input type=”text” name=”‘.$key.'” value=”‘.$value[‘value’].'” class
   =”date tribe-datepicker”>’; return $ret; } Please, do you have any tips or slice
   of code how to achieve date filtering with compare operators <, >, <=, >=, =,!
   =? Thank you very much
 * [http://wordpress.org/extend/plugins/advanced-post-manager/](http://wordpress.org/extend/plugins/advanced-post-manager/)

The topic ‘[Plugin: Advanced Post Manager] Date filtering’ is closed to new replies.

 * ![](https://ps.w.org/advanced-post-manager/assets/icon-256x256.png?rev=3155482)
 * [Advanced Post Manager](https://wordpress.org/plugins/advanced-post-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-post-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-post-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-post-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-post-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-post-manager/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Rain3r](https://wordpress.org/support/users/rain3r/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-advanced-post-manager-date-filtering/)
 * Status: resolved