Do not display posts if get_post_meta reports date earlier than the current WordPress?
There is an arbitrary field, conventionally 'date' which passes the date.
How not to withdraw (and, ideally, to make a draft) post if this date is earlier than the current post_meta.
For example. Today 08.06.2019
There are 3 posts:
Tour tomorrow - $actual_date = 09.06.2019 - print
Tour today - $actual_date = 08.06.2019 - print
Tour yesterday - $actual_date = 07.06.2019 not derive, or ideally, do a draft
Ideally would be done without plugins. How is it possible to implement?
p.s. Php is not very strong, just understand, if there is some example, show pliz. )
March 23rd 20 at 19:38
Why don't the linear comments on a few lines in the html file in a VS Code?
Is it possible to synchronize a web form with Excel worksheet?
Question on YII2. Why when you open the edit form field fileinput is empty?
Migration of databases, how to implement it?
How to display clickable phone in the correct format?
Whether or not to implement a multiplayer based on the Realtime Database?
Why localhost doesn't see index.html?
What could be the problem with the access static.oracle.com?
More answers about
"Do not display posts if get_post_meta reports date earlier than the current WordPress?"
March 23rd 20 at 19:40
I think it's worth to look towards
. And adjust the query so that these posts were not included in the results.
But still in status "draft", I think it can be done for the crown.
Find more questions by tags