I want to show the 2 most recent comments in the sidebar plus have a page, that shows the most recent 20 or maybe 50 comments to all posts.
I got it to work fine in the sidebar, but now I wonder how to use it again in a page with different settings. Can I pass parameters to the function?
I already tried to create the page myself with get_comments():
$comments = get_comments(‘status=approve&post_id=0&number=20’);
This works fine to get comment_content, comment_author – but how do I get any info on the post, that was commented on?
- The topic ‘[Plugin: Get Recent Comments] How to use it twice in 1 installation’ is closed to new replies.