WordPress.org

Ready to get started?Download WordPress

Forums

Comments on Category pages (3 posts)

  1. chernann
    Member
    Posted 5 years ago #

    Hi, I'm new to WordPress but not PHP or MySQL. I recently took over administration of a content site that is using WordPress as a CMS and a News poster(http://www.emuhq.com).

    The way navigation is currently organized, all content pages are Category pages so that Breadcrumb navigation is autmatically enabled, and news posts about new programs are displayed on each content page.

    The problem is that pages called as Category pages don't seem to have any comment information linked. I tried calling comments_template(); which works fine on regular pages but does not show anything on the archive.php (I'm guessing this is equivalent to category.php in this theme).

    My question is, is there any mod or hack that enables commenting on Category pages, or is there a better way of ordering navigation so that they terminate in a final "page". Note that we've got several thousand potential entries so maintaining a manual sitemap of permalinks is out of the question.

  2. moshu
    Member
    Posted 5 years ago #

    Comments are not displayed on so-called "multipost views" - index, categiry and monthly archives/listings, search results.
    WP is built just like that: the comments are displayed ONLY on single post view.

    Now, if you meant to display the No comment, 1 comment, 333 comments link... you were using the wrong template tag.
    Despite its name, this is what you need if you want to display the comments link:
    Template_Tags/comments_popup_link
    Insert that one in archive.php

  3. chernann
    Member
    Posted 5 years ago #

    Hi Moshu,
    Thanks I'll give that a try. I'm thinking also of modifying the page2cat function to output the page id of the page it's converting into category so that comments.php will have something to work on.

Topic Closed

This topic has been closed to new replies.

About this Topic