iterate through or filter wp_query and custom fields (1 post)

  1. Connor Montgomery
    Posted 5 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 5 years ago by Connor Montgomery
  • This topic is not resolved
  • WordPress version: 3.2.1