Query Posts
[resolved] Query today's post (4 posts)

  1. hahvensa
    Posted 3 years ago #

    Nice plugin! I was wondering if it's possible to query current day's post automatically with this plugin? I can see that you can select a date but then you would have to change it every day..


  2. Marinko
    Posted 3 years ago #

    How about using scheduled publishing option in WP posts?

    Possible scenario should be something like this:

    1. Make multiple posts (eg. Monday, Tuesday ... Sunday) all placed into one category (eg. Week). Every single post will be scheduled to automatic publishing at 00:01 at corresponding date.
    2. Place the widget into desired sidebar and call
    post_status=published, scheduled (press and hold CTRL for multi select)
    entry_container=div (probably, it's up to You)
    3. click Save and check front page

    Please note that scheduled time is formatted as 00:00-23:59, so never use am/pm formatting. You should also check Your WP time settings if it is correct.
    Also note that if Your post content is intended to be seen on different time zone areas, this will be very bad approach.

    Hope this will be helpful.

  3. hahvensa
    Posted 3 years ago #

    Thanks, great tip! I will try this.

  4. Marinko
    Posted 3 years ago #

    One important update!

    According to another post in this forum:

    You should use category id number instead of category name.
    So, everything from my example still stands except category=Week ...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Query Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.