• Resolved haylelen

    (@haylelen)


    Heey! So, I’m trying to display comments from 2 different post types, is that possible?

    I THINK I did it last time, but don’t remember how, help? LOL

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @haylelen ,

    Thank you for reaching out. If you have only two post types on your website, then you can achieve what you want by setting the post_type to any. This will show the comments from all of your post types on your website.

    You can use the post_type attribute in the shortcode of the plugin.

    Let me know if you have further questions.

    Thread Starter haylelen

    (@haylelen)

    Hey, Amir!

    Actually I have 4 cpt, but I just want to show the comments in 2 of them, I used the shortcode like this:

    [better_recent_comments number="6" date_format="F j, Y" format="{avatar} {author} em {post}: “{comment}” {date}" avatar_size="75" excerpts="true" post_type="capitulos,fics_divididas"]

    But its not showing any comments (It works fine if I leave just 1 cpt)

    • This reply was modified 1 year, 7 months ago by haylelen.

    Hi @haylelen ,

    The post_type parameter doesn’t accept multiple values and you can only pass a single post type or any. We actually like your idea and we are tracking it as a feature request. We will let you once we are going to implement it.

    Thread Starter haylelen

    (@haylelen)

    I’ll be waiting LOL

    Hi @haylelen

    Thank you for your patience. We have released a new version of our Better Recent Comments and in this version, you can enter multiple post types like this:

    `post_type=”post, dlp_document”

    And get the comments for all of them. Please update the plugin to the latest version and let me know if you have further questions.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Post types’ is closed to new replies.