I’m looking for a solution to create a custom loop which will only display the last added/ modified posts since the last user login to the site.
It shouldn’t be that complicated doesnt it ?
I’m looking for a solution to create a custom loop which will only display the last added/ modified posts since the last user login to the site.
It shouldn’t be that complicated doesnt it ?
Comments are closed.
Getting the posts after a specific time will be done in 2 steps.
The below function will store the last login time of the user.
Then you need to collect the last login time of the logged in user and modify the query as below.