Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter Chris Mason

    (@beardied)

    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)