PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Sorting Fields on a page based on custom fields

  1. Hi I'm using GF for users to input events that are posted as "posts." There is a custom field for the date of the event (event_date). How do I show only the posts from today on a page? And how do I sort the posts by event_date starting with today to the future (excluding past post)? This seems like it would be easy but I've been pulling my hair out trying out different code snippets. Thanks so much for your help!

    Posted 10 years ago on Wednesday May 19, 2010 | Permalink
  2. Hello, this is more of a question about WordPress and how to do a custom loop rather than Gravity Forms itself. But here are some resources for doing custom loops based on a custom field value to output posts:

    http://css-tricks.com/snippets/wordpress/custom-loop-based-on-custom-fields/

    http://www.smashingmagazine.com/2009/05/13/10-custom-fields-hacks-for-wordpress/

    Posted 10 years ago on Wednesday May 19, 2010 | Permalink