• Resolved subrat_php

    (@subrat_php)


    Hi!,

    I have a strange query to make here in this forum. One of my client wants to see the blog posts which will depend on the months (in which posted). Here, he do not want to have “Archives” in the blog. I mean to say, there are certain blog categories say, A, B, C and D. If it is month june then viewers will see the posts of category A. If it is month October then, viewers will see the posts of category D not any other posts. He wants a list of categories as part of the blog page but the posts of that month to be displayed as default. Please remember he will be posting all the posts/articles at a time before launching his website under different categories in this month only but wants a specific category to be displayed when its october. ??

    Is it possible???? I have tried to explain him but all in vain…

    Do anyone have any solution or better answer…

    Please revert back ASAP.

    Subrata
    [ Email deleted, do not post those here ]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Matt Knowles

    (@aestheticdesign)

    I can thing of three ways you could do this, manually, programaticaly and using a plugin.

    For the manual method you could assign categories to the posts and then change the posts for those categories that shouldn’t be displayed that month back to draft. Problaby cumbersome to manage, but possible.

    The programatic way would be to code a page that selects the posts to display based on the month and the category.

    A hybrid method would be to use a plugin such as Display Category Posts that uses a shortcode to display all the posts in one category. Then you would just have to manually change the shortcode each month.

    Thread Starter subrat_php

    (@subrat_php)

    Thanks Matt for your quick response…

    Please find the below two points you have explained;

    i. For the manual method you could assign categories to the posts and then change the posts for those categories that shouldn’t be displayed that month back to draft. Problaby cumbersome to manage, but possible.

    Query: Can you please elaborate the process so that i can give it a try.

    ii. The programatic way would be to code a page that selects the posts to display based on the month and the category.

    Query: I confused, if I post all the articles let’s say…10 articles today, i.e. 16th of June, 2015 and want to show these 10 articles under “January, 2015”, “February, 2015”, “March, 2015”, “April, 2015″….”October, 2015” respectively. Now, tell me is this possible to show by coding. Also, the default displayed article will be from current month whenever it may have been posted. (Is this really makes a sense…I am clueless) ??

    Please advice.

    Regards,

    Subrata

    Matt Knowles

    (@aestheticdesign)

    For the manual method, this document describes the options available in the publish box.

    https://codex.www.ads-software.com/Writing_Posts#Descriptions_of_Post_Fields

    Your question about the programatic way differs from what you said in your first question, so I’m confused now what you’re trying to do.

    Thread Starter subrat_php

    (@subrat_php)

    Thanks Matt…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to show posts from a specific category based on months’ is closed to new replies.