• Hello Support,

    I’ve currently creating a weekly news website.

    Every week I create a new category for that week ie: 01-21-2015 all the main news goes into this category.

    On the home page I want to show all the stories/posts/blogs from the latest category. As the category will change the following week ie 01-28-2015 it can’t be depicted ie cat=234.

    IS there a way to do this.?

    Thanks for read and any help
    Wayne

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    I suggest you run a custom query using the ‘w’ (week number) argument. The current week number can be determined from the PHP date() function. It’ll work out that the posts returned will have the current week’s category.

    You may ignore this last question if you like. I don’t mean to criticize your category scheme, after all it’s your site, not mine. Why the week based categories? Since all posts are date stamped, and date functions exist to determine weeks and queries can be made accordingly, it seems week categories become redundant data subject to human error.

    Thread Starter wlansell

    (@wlansell)

    Sorry for the delay in getting back to you. And thank you for your reply. It gives me something to think about.

    The reason behind creating a week based category, was because its a weekly paper and thats when I update the website. So to keep the news stories together, I create a category based on the release date: 04-22-2015.

    They also get put in a category named: news, so that I can remove them and week later when the new news stories get uploaded.

    I’m open to any suggestions and examples anyone has to make my life easier as I’m currently redesigning the site.

    Thanks
    Wayne

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show post from latest category’ is closed to new replies.