Support » Fixing WordPress » iterate through or filter wp_query and custom fields

  • Hey all,

    I’m using the Advanced Custom Fields plugin, and am having some trouble doing something that I would think would be relatively easy.

    So, I’ve got a featured item with the typical description, title, and image. I also have some meta information that is irrelevant to this post. But, most importantly, I have a Start_date datepicker and an End_Date datepicker. I want to make a wp_query, and set $featured_item = the_post() only if the Start_date is before or equal to today’s date, and the End_Date is after or equal to today’s date.

    How should I go about doing this?

  • The topic ‘iterate through or filter wp_query and custom fields’ is closed to new replies.