• I am building a site for some real estate and want to show on my home page the nearest open house. I want to put the date in the post custom field and then when I use the get_posts() on my main page to display the post that is “ending” soonest. Hopefully that was clean on what I want to do, what is the easiest way to accomplish this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter EvanWatkins

    (@evanwatkins)

    a little clarification, I want the post that is displayed on the main page to only be displayed because it is happening soonest to today, once it expires the next closest (that has not expired) will take its place.

    Thread Starter EvanWatkins

    (@evanwatkins)

    Anyone? I need ideas tonight, is this possible? Any plugins that can work?

    The only solution I’ve found is to:

    1. Put the date at the beginning of the content field.

    2. Sort by content.

    Dumb, but it works.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add a date custom field and sort by it….’ is closed to new replies.