阅读背景:

根据自定义元数据和当前日期查询文章

来源:互联网 

I've created a custom post type called "Events" and I am using Advanced Custom Fields (Wordpress plugin) to add custom fields to the posts. One custom field is the date of the event and my goal is to query the posts based on this date (which is stored in the database as "yymmdd") and only show future events. I've gotten close, but can't seem to figure out how to integrate the filter with the code I've already written.I've created a custom post type called "Events"




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: