Forums

[Updated Plugin: Decent Comments] Comments in specific categories or tags (1 post)

  1. itthinx
    Member
    Posted 5 months ago #

    As suggested by MishaOLS in this comment, the plugin now allows to show comments from specific categories. This also works for tags. It actually works with any taxonomy, you can specify the term slugs in the widget options or in the shortcode.

    Shortcode examples:

    Show comments on posts in the "uncategorized" category:
    [decent_comments taxonomy="category" terms="uncategorized"/]

    Show comments on posts tagged with "haiku" or "poem":
    [decent_comments taxonomy="post_tag" terms="haiku,poem"/]

    You can also specify that comments for posts in the same categories as the current post are shown:

    [decent_comments taxonomy="category" terms="{current}"/]

    If you want to you that in the widget, there are two new fields: Taxonomy and Terms and these work just as the shortcode.

    Oh and the shortcode works in two versions, either [decent_comments] or [decent-comments]

Reply

You must log in to post.

About this Topic

  • RSS feed for this topic
  • Started 5 months ago by itthinx
  • This topic is not a support question
  • WordPress version: 3.3