• Resolved maegllin

    (@maegllin)


    Greetings,

    I would like to ask if it is possible to display one and only post filtered from a post category which will be replaced each day from the next daily post.

    I’ve used [display-posts category=”CATEGORY NAME” include_content=”true” content_class=”dps-listing-content” date_query=”Today”] but unfortunately it does not remove the posts from previus dates.

    Any help would be appreciated.

    Looking forward for your replies.

    • This topic was modified 7 years, 8 months ago by maegllin.
Viewing 1 replies (of 1 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    I’m not sure the best way to do this. Are you posting one new post for each category every day? The simplest would be to just limit the post count to 1 so it shows the most recent post (today will be most recent). Any posts scheduled for tomorrow wouldn’t appear since they aren’t published yet.

    [display-posts category=”CATEGORY NAME” include_content=”true” content_class=”dps-listing-content” posts_per_page=”1″]

Viewing 1 replies (of 1 total)
  • The topic ‘Display Post based on current Date’ is closed to new replies.