WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. hahvensa
    Member
    Posted 1 year 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..

    http://wordpress.org/extend/plugins/query-posts/

  2. Marinko
    Member
    Posted 1 year ago #

    How about using scheduled publishing option in WP posts?
    http://en.support.wordpress.com/posts/schedule-a-post/

    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
    category=Week
    post_per_page=1
    post_status=published, scheduled (press and hold CTRL for multi select)
    post_type=post
    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
    Member
    Posted 1 year ago #

    Thanks, great tip! I will try this.

  4. Marinko
    Member
    Posted 1 year ago #

    One important update!

    According to another post in this forum:
    http://wordpress.org/support/topic/post-categories-dont-work?replies=4

    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

About this Topic

Tags

No tags yet.