WordPress.org

Ready to get started?Download WordPress

Forums

How to display post count of specific month (2 posts)

  1. sanchitsoni1981
    Member
    Posted 2 years ago #

    Hi guys,

    I want to display post count of specific month.Actually i want when visitor visit on Archives page of specific month then Number of post related to that month is shown in Title bar.

    Thanks in Advance for helping.

  2. egado
    Member
    Posted 2 years ago #

    Don't know how your theme is build up. But you need to find out, which file is the template for your archive, maybe the archive.php

    Search for something like

    <?php wp_get_archives('type=monthly&limit=5'); ?>

    and change it to

    <?php wp_get_archives('type=monthly&limit=5&show_post_count=true'); ?>

    Source: http://codex.wordpress.org/Function_Reference/wp_get_archives

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags