{"id":12908712,"date":"2020-05-29T07:21:49","date_gmt":"2020-05-29T07:21:49","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/filter-query-by-custom-field\/"},"modified":"2020-05-29T07:24:40","modified_gmt":"2020-05-29T07:24:40","slug":"filter-query-by-custom-field","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/filter-query-by-custom-field\/","title":{"rendered":"Filter Popularpost query by custom date field"},"content":{"rendered":"<p>Hi guys, I have been using this plugin for years and it is a fantastic plugin, keep up the great work, I&#8217;m throwing this out there to anyone who can help please. <\/p>\n<p>I have my current query by custom post &amp; taxonomy working fine (currently using a widget but I can switch to template tag if needed to filter the query further) but what I need to do is filter the current query so it only shows post based on a custom start date fild so only now and future post display, I have played with the template tag and pre_get_posts but not manage to get the output I need, any help would be appreciated.<\/p>\n<p>Thanks<\/p>\n","protected":false},"template":"","class_list":["post-12908712","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12908712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12908712\/revisions"}],"predecessor-version":[{"id":12908730,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12908712\/revisions\/12908730"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12908712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}