WordPress.org

Ready to get started?Download WordPress

Forums

Count Posts in a Category, Tag, or Custom Taxonomy
[resolved] [Plugin: Count Posts in a Category] PHP code not working? Try this. (2 posts)

  1. deadhippo
    Member
    Posted 2 years ago #

    If you are trying to use the code shown on the home page:

    <?php do_shortcode('ccp cat="category-slug" '); ?>

    you might find it is not workning. You need code like this:

    <?php echo do_shortcode('[ccp cat="category-slug"] '); ?>

    http://wordpress.org/extend/plugins/count-posts-in-a-category/

  2. Luke Mlsna
    Member
    Plugin Author

    Posted 2 years ago #

    Ah, good observation. I'll fix the readme. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic