• G’Day,
    I already posted this in the documentation request forum, as I now know where the documentation is. However, now I am at the point where I do not know what is wrong so I am asking for help.
    Task:
    Looking to add the post count after my categories and on my archives. ( ex.. )
    June ( 45 )
    General ( 15 )
    I need some documentation on this, or if a hack has been created the link so I do not have to reinvent the wheel.
    Solution:
    <?php wp_list_cats(0, ‘All’, ‘name’, ‘asc’, ”,1,0,1,1); ?>
    Problem:
    <?php wp_list_cats(0, ‘All’, ‘name’, ‘asc’, ”,1,0,1,1); ?>
    I still do not get a post count….
    https://www.gravityworks.us/a.wpblog/
    I appreciate any and all information.
    Kind regards,
    Stephen

Viewing 7 replies - 1 through 7 (of 7 total)
  • You asked for one that listed category counts.
    The code you have above works for precisely that.

    Thread Starter gravity

    (@gravity)

    G’Day,
    The intersting thing about replies on this board is that they make no sense to us newbs…. Do you see a post count next to the general link equivilent to ( 1 ) ?? I do not… I need to know how to get it to say the number of posts in the general and any other category not to mention the archives Next to the link itself…
    Can someone please help me achieve this goal with something other then.. well it is doing what the code says it is doing… that makes no sense..
    Kind regards,
    Stephen

    If you put what I gave you above (in another post here) inside your <div id=”menu”> -you need to edit index.php to do this, then you will see, on your blog, a list of all your categories, and next to each category, you will also see a numbet that equals the number of posts in that category.
    Like:
    Pets (23)
    News (14)
    If you want something that has the same effect for archives
    June (100)
    May (45)
    then you need to search for something like that here on the forums, or look at the template tags – get_archives being one – that was listed on your previous post.

    Thread Starter gravity

    (@gravity)

    Hmmmm….
    This IS what I have:
    https://www.gravityworks.us/a.wpblog/wp-backup/index.txt
    Please tell me what I am doing wrong..
    Kind regards,
    Stephen

    Thread Starter gravity

    (@gravity)

    wp_list_cats is the default .. came with the index.php.. there is NO list_cats in the index.php …
    I have been saying that it was WP_LIST_CATS since the first post.. I will try these new parameters…\
    Now that worked… Now onto the archives.. and I will research your comments above, before I come back here for help.. I will never post unless I have exhausted my patience..
    Thanks…

    Thread Starter gravity

    (@gravity)

    G’Day,
    Here is the code for doing archives as well..
    wp_get_archives(‘type=monthly&show_post_count=true’);
    Thanks for the help, just wanted to post that here for a single solution.
    Kind regards,
    Stephen

    From the apparent tone of your posts, it looks like you exhausted your patience somewhere already ?? Glad the confusion was cleared up and you got the answer you wanted.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘General ( 15 ) – Code Request’ is closed to new replies.