Forums

Hemingway Blocks (3 posts)

  1. pauliio
    Member
    Posted 4 years ago #

    In the Hemingway Blocks theme you can add blocks to its footer. I would like to change the way the "Categories" block works, if possible.
    Below is the "Category" block

    <h2>Categories</h2>
    <ul class="counts">
    <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>

    It is set up to show the categories, obviously.
    Would it be possible to show the number of comments listed under that category instead of the number of posts?

    The script in the theme is below

    ?php comments_popup_link('No Items', '1 Item', '% Items'); ?

    Do anyone know how to accomplish this?

  2. moshu
    Member
    Posted 4 years ago #

    Template_Tags/comments_popup_link
    If you read the Description - it says clearly that it will work only in the Loop. The sidebar is not the Loop.

  3. pauliio
    Member
    Posted 4 years ago #

    So basically you are saying it can't be done.

Topic Closed

This topic has been closed to new replies.

About this Topic