WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Archives Post Count Issue (3 posts)

  1. makingtrails
    Member
    Posted 4 years ago #

    Archives Post Count Issue

    It seems that every post I make counts as 5 posts on my Archives Widget Count.

    My posts look normal (I have 14 posts that are live during May but 77 are displayed in Archives Widget Count!?)

    Any Idea's?

  2. MichaelH
    Member
    Posted 4 years ago #

    Don't know what that widget does, so you might consider downloading and installing Otto's PHP Code Widget, then something like this code in one of those widgets:

    <?php
    $num_posts = wp_count_posts( 'post' );
    echo '<p>' . 'Number of posts is '.$num_posts . '</p>';
    ?>
  3. makingtrails
    Member
    Posted 4 years ago #

    Thanks!

    It was caused by a Plugin a forgot to disabled called Post Levels (http://www.fortes.com/projects/wordpress/postlevels). It's a old plugin that divides posts into different security levels (e.g 1 - 5) hence why the posts where multiplying!

    I have installed Otto's PHP Code Widget which is superb! makes it alot easier to customise requests!

    Thanks Michael! Much appreciated!

Topic Closed

This topic has been closed to new replies.

About this Topic