I have made a custom template for a wordpress page. This template lists all posts in a certain category.
I want to change the order of the post, so they are listed ascending by a custom field named date. The date in the custom field is formatted like this: “d/m/Y”. I also want to exclude posts where the date has passed.
The code int he template looks like this:
I hope somebody can help me with this.
Thanks in advance!
- The topic ‘Change order of posts and exclude some posts’ is closed to new replies.