Do you use default settings or have your own?
Used default settings. tallyconnection. below Highlights section.
WordPress 2.9.1
Is the part after Highlights inside a post/page? If it’s not the shortcode will not work.
the shortcode is inside home.php which is a page under “Appearance” then “Editor”. Is that considered a page?
No it’s not considered a page. I suggest you use the template function instead (fyi: http://betterwp.net/wordpress-plugins/bwp-recent-comments/#template_functions)
When I put:
<?php bwp_get_recent_comments(array('instance' => 'page', 'separate' => true, 'post_type' => 'page', 'comment_type' => 'comment')); ?>
I get “No recent comment found.”
Thanks that worked. Question though. Before you sent that I have been testing this:
<?php
$page_id = 275676; // The number here relates to the WordPress page ID you want to show up and assigns it to a variable
$page_data = get_page( $page_id ); // This defines a new variable with your Page ID number
$content = apply_filters(‘the_content’, $page_data->post_content); // This apply a filter so the content is treated as it should be from WordPress
$title = $page_data->post_title; // This gets the post title and assigns it to a variable
echo $content; // This makes our page content show up
?>
I like that it lets users navigate between recent comments without taking them off the front page. I created a “page” then added the shortcode. That pages id is 275676.
With the code you gave me uses aren’t able to click “Older” and navigate anywhere. How would I set of comments to display? I see in the settings of the plugin but they don’t seem to change (always shows 5).
Thanks again for your help
Can you give me a link to the page you’re showing page_id 275676?
What browser did you use to test? It is working fine for me here using Firefox.
Google Chrome, IE and FireFox. I left comments on front page. There are two sets of them. First set is this code:
<?php
$page_id = 275676; // The number here relates to the WordPress page ID you want to show up and assigns it to a variable
$page_data = get_page( $page_id ); // This defines a new variable with your Page ID number
$content = apply_filters('the_content', $page_data->post_content); // This apply a filter so the content is treated as it should be from WordPress
$title = $page_data->post_title; // This gets the post title and assigns it to a variable
echo $content; // This makes our page content show up
?>
2nd set is the code you gave me:
<?php bwp_get_recent_comments(array('comment_type' => 'comment')); ?>
The second set doesn’t let me click the “Older” link to look through older comments.
I’ll leave both up so you can see it.
Thanks again for your help.
Weird, I tried IE, Chrome too and they both worked fine. Maybe you should create a screencast for me.