WordPress: Selecting Comments from a Specific Category in Decent Comments plugin.

These Adverts help to pay for this site. ai2

How to Select Comments from just one Category in the ‘Decent Comments’ plugin..

The Decent Comments plugin shows the following information to be able to select comments from specific Categories or Tags:


These Adverts help to pay for this site ai6.

taxonomy
Used to show comments on posts related to certain taxonomies. Use category for categories or post_tag for tags.
Default : empty

I tried using
[decent_comments category=”my-category-name” etc for remainder of shortcode
and
[decent_comments taxonomy=”my-category-name” etc for remainder of shortcode

But both options included comments from ALL categories.

It took a bit of time before I eventually found the correct wording:

[decent_comments taxonomy=”category” terms=”visas-and-immigration” etc for remainder of shortcode


Agoda HolidaysAgoda HolidaysThese Adverts help to pay for this site. ai5

This worked well.

Other terms that I found useful:

[decent_comments taxonomy=”post_tag” terms=”my-tag-name” etc for remainder of shortcode.  This included only the comments from one specific tag.

[decent_comments taxonomy=”post_tag” terms=”my-tag-name,my-second-tag-name” etc for remainder of shortcode.  This included only the comments from more than one specific tag.

exclude_post_author=”true” – This excluded any comments made by myself, the author of the page where I placed the shortcode.

 

WordPress Decent Comments plugin: https://wordpress.org/plugins/decent-comments/


6.1 - 570,834
Scroll down for Comments
0 0 vote
Article Rating
Subscribe
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments