I have links built into my site that link to the most recent post in a category using get_posts, and I’d also like to display the number of posts in that category. so the link would look something like:
<a href="<?php the_permalink() ?>" rel="bookmark">Drawings (<?php show_count category=4?> images in post)</a>
Except where I just made used an imaginary wordpress tag, there would be one that works for real. Thanks.
- The topic ‘How do I get show_count to return just a number?’ is closed to new replies.