• the site is sacramentocoaches.org and it’s using WP 3.0.3

    what I want to do is to have only articles that haver been categorized as newsletter categories AND are the current month only show up on the Newsletter page. It must be by month.

    Also want a widget on the side that is titled “Newsletter Archives” and when a particular month is selected only newsletter articles from that particular month show up and no others.

    Can someone help me with this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator t-p

    (@t-p)

    Thread Starter Rathius2010

    (@rathius2010)

    Yes, that is some help, but how do I use wp_get_archives to get ONLY the posts that have been categorized as “Newsletter” to come up when I click on the link for a particular month.

    Thread Starter Rathius2010

    (@rathius2010)

    Also, on the “results” page for a particular month I would like it to say, “Newsletter Archives” and not “Archives for December 2010”. How can I achieve this as well?

    Moderator keesiemeijer

    (@keesiemeijer)

    Create a custom Page template and do a query posts on the loop.
    To create a custom Page template duplicate your theme’s page.php and rename it newsletter.php Put this on top of that file:

    <?php
    /*
    Template Name: newsletter
    */
    ?>

    Put this right above the loop:

    <?php
    query_posts($query_string . '&cat=13&monthnum=' . date('n',current_time('timestamp')));
    ?>

    Make a new Page with the newsletter template and “Publish”.

    Now this page will show all posts of the current month from a category with an ID of 13. Change the category to yours and you’re done.

    Thread Starter Rathius2010

    (@rathius2010)

    Oki, if I use qo_get_archives on the newsletter page it will show a list of links by month and when you click on those links it shows an archive page that shows all posts for that particular month.

    What I want it to do is to show ONLY those posts that are in the “Newsletter” category. How can I achieve this?

    The first suggestion is more on track with what I’m asking and the second suggestion is good too, but how do I tie these together?

    Thread Starter Rathius2010

    (@rathius2010)

    a little bump

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘organizing category page by month’ is closed to new replies.