• Resolved ggz78

    (@ggz78)


    Hello,
    I was wondering if it was possible to filter posts by date, by only displaying posts since 2020 for example ?
    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author Trusty Plugins

    (@trustyplugins)

    Hi,

    If you are using PRO then you can modify the WP_QUERY with hook and compare the dates. In free version , its not possible to modify the query.

    
    add_filter('tc_caf_filter_posts_query','tc_caf_filter_posts_query_function',10,2);
    function tc_caf_filter_posts_query_fun($args,$filter_id) {
    		
    		$args_new = array();
    		$args_updated=array_merge($args,$args_new);	
    		return $args_updated;
    	}
    

    Hope it will solve the issue.

    Looking forward.

    Thanks,
    Trusty Plugins Team

Viewing 1 replies (of 1 total)

The topic ‘Only displaying posts since 2020’ is closed to new replies.