We need merged Dynamic date query and Get this number of posts
-
Hi
I need this by me very usefull and logicall style of showing latests posts in the sidebars:
1. always show 5 latests posts so it won’t look empty
(Get this number of posts -> 5)2. if there is many post recently, show all the posts from the recent time, so viewers who are visiting our page for example at evenings will not miss recent posts.
(Dynamic date query -> after 48 hours)So, I need show always at least 5 posts or more, if the posts was written in last 48 hours.
To have this solved for both possible cases, I recommend create option “Select priority” where will be two options:
Priority:
A) “1. number of posts 2. date and time filters”
B) “1. date and time filters 2. number of posts”So you can choose if you want:
A) see posts from recent time (48 hours), but limited to max number of posts (5 posts) so the sidebar wont be 3 pages long in case of many postsor
B) have always minimum amount of posts (5) posts but show more if there are more in recent time (in last 48h)
thank you!
- The topic ‘We need merged Dynamic date query and Get this number of posts’ is closed to new replies.