Title: Chris Mason's Replies | WordPress.org

---

# Chris Mason

  [  ](https://wordpress.org/support/users/beardied/)

 *   [Profile](https://wordpress.org/support/users/beardied/)
 *   [Topics Started](https://wordpress.org/support/users/beardied/topics/)
 *   [Replies Created](https://wordpress.org/support/users/beardied/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/beardied/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/beardied/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/beardied/engagements/)
 *   [Favorites](https://wordpress.org/support/users/beardied/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Custom Post Query/Filter Loop](https://wordpress.org/support/topic/custom-post-queryfilter-loop/)
 *  Thread Starter [Chris Mason](https://wordpress.org/support/users/beardied/)
 * (@beardied)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/custom-post-queryfilter-loop/#post-1820275)
 * I guess the date could be changed around before the query.
 * What i am trying to do is list all custom posts that have the custom date field
   stating a date after the current date. Basically i have a list of holidays and
   once the departure date for the holiday has passed i no longer need them to be
   listed, the idea being the posts are still there but wont be visable until an
   admin changes the dates for the next time that holiday will take place, then 
   it will re appear in the listing with the ammended date.
 * The holidays come under 4 different custom post types as explained earlier and
   each carries a departure date “ukhol_ddate_meta” (for the ukhol post type).
 * Hope that makes sense.
 * I have all my custom post types defined in my function.php file and my post list
   is in my index.php file, i have a line of code in my function.php which allows
   posts, ukhol, holabroad, specevent & daybreak post types to be visible when viewing
   the index.php, which works fine, i just need to ommit any holidays thats departure
   date has passed.

Viewing 1 replies (of 1 total)