filtering posts in back end and showing by date restriction on front page (1 post)

  1. wthyn
    Posted 2 years ago #

    Hi, I swear, I promise, I have spent several days searching for possible solutions to my problems but I can't find any, and I have used all possible alternative search terms I can think of and nothing turns up, and I can't believe I'm the only user who wants these things, so I'm at my wits' end and humbly beg for a little assistance.

    Firstly, in admin, I want to be able to see (perhaps using a dropdown, such as one currently does for sorting by month or category) all Passworded or all Private posts. So far the only way I can see to do this is to assign a category or tag for these and filter on those but I sorely wish there was an inbuilt hook for it.

    Secondly, on the front page, I want to be able to show the (public) posts from the last N number of days where posts exist. I recall this used to be possible in some past version of WordPress but without getting into custom post types and fancy templating that I just can't wrap my head around (or else paying someone to make for me, which I can't afford), I don't know how to do it.

    Say I have posts dated May 28, 29, 31 and June 1, 3 and 5, and I want to show posts from the last 5 days. On June 3 I only made a private post so that means effectively only showing posts from June 5 and 1 and May 31, 29 and 28. Regardless of the number of posts (there might be one per day or three per day, not always the same number) I want to show just those five days' posts on the front page. On all other pages, show the default number of posts. Plugins I'm currently using, listed here: http://dontbiteyoursister.com/blog/plugins/ Ultimately I would like to not interfere with or have to find alternatives for the plugins I'm currently using.

    Any help much appreciated. Thanks in advance!

Topic Closed

This topic has been closed to new replies.

About this Topic