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.
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 2 years, 10 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.
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.