• I’ve added a new page (“Archives”) and associated it with my Archives page template. Yet whenever I visit a monthly archive (domain.com/2009/09) it shows ALL posts ever published. The list of monthly archive links is automatically generated by WP using <?php wp_get_archives(‘type=monthly’); ?>

    How can I force it to only show the posts from that month?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Update your permalinks by visiting Administration > Settings > Permalinks and clicking on Save Changes.

    If the problem continues, deactivate all plugins, switch to the WordPress Default theme. See if that resolves the problem.

    Then switch back to your theme, see if the problem persists.

    If necessary, reactivate plugins one-by-one to find the culprit.

    Thread Starter laraswanson

    (@laraswanson)

    Thanks, Michael. I deactivated my theme, the one plugin (supercache), and activated the default theme and all was fine. I reactivated my theme and the issue returned (even with the one plugin still turned off).

    It seems as though the archives aren’t even pulling from the correct page template – I noticed that the page is missing a div class that I applied just to the archives template. Any ideas why that would be?

    Review Template Hierarchy and if necessary copy the archive.php from the WordPress Default theme wp-content/themes/default/archive.php and fit that to your style.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Monthly archive is showing all posts’ is closed to new replies.