Need help caluclating future date in the Loop using custom field
-
Need to create page of future events – have tried about every events calendar style plugin available and none work as I need (not enough fields) SO I’m going to try my hand at using custom fields (no problems there) and creating a specific template page for a singe “events” category (no problem there either).
Where I need help is with calculating which events to display based on an “event date” not the publish date of the post UNLESS there is a way to use the Publish date AS the event date and still display it before the publish date.
This is for a non-profit wilderness organization that wants to display a list of upcoming hikes and exclude hikes that have already occurred. Since I can’t get any of the special plugins to do this and still have enough fields for all hike details, I’m going to use Posts with custom fields for the hike details and the post body for the hike description.
So HOW do I write The Loop so that it looks at the Custom Field for Hike Date, not the post publish date, to determine if the page should display the post?
Many thanks for any help any of you experienced PHP coders can lend – I’ve been racking my brains on this one for many months and have finally thrown in the towel and decided to go this route – I’ve only put it off and continued to try various plugins because of this future-date issue and my lack of PHP knowledge to make the right Loop statement.
- The topic ‘Need help caluclating future date in the Loop using custom field’ is closed to new replies.