Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End WordPress – Hide posts based on custom date field Reply To: WordPress – Hide posts based on custom date field

#190532
Seath
Participant

Thank you for the replay,
I am sorry I didn’t explain my self properly. When I add date to my custom field “way_end_date” I need the post to show on the front for 14 days then stop showing, but all other posts what don’t have any date in the custom field need to still show.

For example I have post-1 post-2 and post-3 they all show in the front. now I add today’s date to post-2 and it will show for next 14 days then will be hidden from the front, but post-1 and post-3 continue to show.

I’m terrible in explaining whats in my head.

This is what I have now: it still doesn’t work!

http://codepen.io/seath/pen/dPMbJK