Today in history posts retrieving
-
I have been using WordPress as my personal blog for a long long time, and recently I am trying to get more out of it.
I want to link my personal website with my blog site and display some nice information in my website, like the latest posts (done).
As I am developing my website with PHP and all functions are provided with REST so I took a look at https://developer.wordpress.org/rest-api/reference/posts/ but unfortunately I can’t find the API to get “a post list for posts posted the same day but in all previous years”.
Now I have to switch to direct database manipulation to get the post list.
Would suggest to include this feature as soon as possible.
The page I need help with: [log in to see the link]
-
I’ll throw this idea out to you as this is how I recycle posts on one of my ‘word of the day type sites’. The plugin will recycle posts ‘on the date’ if you’ll use the ‘Recycle only on this day’ feature and set it to recycle.
https://wordpress.org/plugins/auto-post-scheduler/
So if you had 6 posts on July 4th of the previous 6 years it should recycle them for you. Not a list of posts but all that date’s posts should be reposted on July 4th!
If you also had a new post for the year’s July 4th you can schedule that via the scheduler.
Caveat: It hasn’t been tested on 5.X but I expect it should work and it says it will work on 4.9.9 so there is that assurance anyway. You might want to speak with the author or support and pass your suggestion for the ‘output as a list’ on as a possible premium enhancement if you wish.
You may need to continue with the Classic Editor to keep the posts compatibility.
The topic ‘Today in history posts retrieving’ is closed to new replies.