• I just dipped my feet into WP and PHP. So I wonder if there is a easy way to show:
    Category Name/Month (Number of posts in that category or for that month)
    I checked tags reference and could not find what I was looking for.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi, I would like to do the same thing; so I looked up the template documentation but i couldn’t find the option to display number of posts. Sorry to be so dense. Can anyone enlighten me? nsxpower, did you manage to get it?

    Thread Starter nsxpower

    (@nsxpower)

    <?php list_cats(0, 'All', 'name', 'asc', 0, 0, 0, 1); ?>
    <?php get_archives('monthly', 20, 'html', '', '', 1); ?>

    Thread Starter nsxpower

    (@nsxpower)

    replace that 20 with '' to show all months or set it to 12 to show last twelve etc. You get the idea.

    Thanks, nsxpower! I got it to work except for one thing: when I use
    <?php list_cats(0, ‘all’, ‘name’, ‘asc’, 0, 0, 0, 1); ?>
    instead of
    <?php list_cats(0, ‘all’, ‘name’); ?>
    the font bloats up; I can’t fix the font size back.(I’m a novice, you see) To illustrate what I mean check out the category section of my blog here
    Thanks in advance for any help!

    Erm, the website is actually at https://www.theperipherymovie.com/blog. Sorry for the extra post.

    Thread Starter nsxpower

    (@nsxpower)

    @anon: Hmm, I am looking at your site right now and I don’t see the “bloating” you mention (category list at the top-right corner?).
    @bronksi: I am using 1.0.2, so the problems you are experiencing may be a bug with that particular build and/or 1.2 syntax is different.

    Im using
    <?php wp_get_archives(‘type=monthly&show_post_count=true’); ?>
    to show the posts after each month and it still doesnt seem to be working…….thoughts?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Number of posts in archives view’ is closed to new replies.