Ajaxify Post Sort

I am by no means an AJAX expert, I have only ever used for pretty much what you are needing it for. It can be quite a lengthy explanation for a forum post. But when I was trying to achieve the same thing the first time, I found this excellent YouTube video series (5 parts) … Read more

wp_query args with relation

I think your query is wrong post__not_in only accepts array of post_id’s only. I think it should be like this. $onemonth_before = date(‘Y-m-d’, strtotime(‘-1 month’)); $args = array( ‘tag__not_in’ => array(<pass tag_id here>), ‘date_query’ => array( ‘before’ = $onemonth_before, ‘inclusive’ = true, ), ); $query = new WP_Query($args);