Ready to get started?Download WordPress


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
    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"] '); ?>


  2. Luke Mlsna
    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