Basic PHP variable problem – custom fields
I’m trying to separate a list of events (a custom post type) into two sections – upcoming and passed. I figured the best way to do this was to run two separate loops, one under each heading, which compare the custom field date value with the current date, one showing things before the current date, the other after the current date.
I’ve tried various bits of code to set the variable, but can’t get it to work (I’ve not used variables in PHP before). Could someone point me in the right direction?
- The topic ‘Basic PHP variable problem – custom fields’ is closed to new replies.