• 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 posts

    or

    B) have always minimum amount of posts (5) posts but show more if there are more in recent time (in last 48h)

    thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Aldo Latino

    (@aldolat)

    Hi @dragy,
    I understand your request but the dynamic date query checks the current datetime and looks for posts published in the period of time you defined, let’s say 48 hours. If – for example – you published 3 posts in the last 48 hours, the plugin will show 3 posts.

    So, I need show always at least 5 posts or more, if the posts was written in last 48 hours.

    I would enter -1 in the field “Get this number of posts” to make sure that all posts published in the last 48 hours will be displayed.

    Thread Starter Peter K

    (@dragy)

    but when there are no posts in last 48 hours, I’d like to have always showed last 5 posts.
    I will try write some php aptch and post it here if works ??

    thanks Aldo!

    Plugin Author Aldo Latino

    (@aldolat)

    Great! Let me know. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘We need merged Dynamic date query and Get this number of posts’ is closed to new replies.