• Resolved arniarni

    (@arniarni)


    Hi,

    Please tell how could I display recent comments from posts filtered by taxonomy value? Is it possible to add taxonomy field to shortcode comments like as loop shortcode? For example:
    [comments count="10"] ---> [comments count="10" category="forum"]

    If I use comments shorcode inside loop of posts filtered by taxonomy then result is bad – loop takes each post by selected taxonomy and then takes 10 recent comments from each post. Bad structure below:

    [loop type="post" category="forum"]
       [comments count="10"]
          [comment title-link]
       [/comments]
    [/loop]

    And this cose logic (above) is incorrect because firstly should be taken all recent comments and then they should filtered by taxonomy.

    Hope for solution.
    Regards,
    Arni

    https://wordpress.org/plugins/custom-content-shortcode/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    In the latest update, I added a few parameters to the [comments] shortcode: category, tag, taxonomy and term.

    [comments count="10" category="forum"]
      [comment title-link]
    [/comments]

    This should get 10 most recent comments, filtered by post category.

    Please see to the reference for more detail: Settings -> Custom Content -> Comments.

    Thread Starter arniarni

    (@arniarni)

    Hello,

    it works fine.
    Thank you!

    Regards,
    Arni

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Recent comments from all posts by one taxonomy value’ is closed to new replies.