Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Khang Minh

    (@oddoneout)

    Do you use default settings or have your own?

    Thread Starter thatsgame1

    (@thatsgame1)

    Used default settings. tallyconnection. below Highlights section.

    WordPress 2.9.1

    Plugin Author Khang Minh

    (@oddoneout)

    Is the part after Highlights inside a post/page? If it’s not the shortcode will not work.

    Thread Starter thatsgame1

    (@thatsgame1)

    the shortcode is inside home.php which is a page under “Appearance” then “Editor”. Is that considered a page?

    Plugin Author Khang Minh

    (@oddoneout)

    No it’s not considered a page. I suggest you use the template function instead (fyi: https://betterwp.net/wordpress-plugins/bwp-recent-comments/#template_functions)

    Thread Starter thatsgame1

    (@thatsgame1)

    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.”

    Plugin Author Khang Minh

    (@oddoneout)

    Try this:

    <?php bwp_get_recent_comments(array(‘comment_type’ => ‘comment’)); ?>

    Thread Starter thatsgame1

    (@thatsgame1)

    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

    Plugin Author Khang Minh

    (@oddoneout)

    Can you give me a link to the page you’re showing page_id 275676?

    Thread Starter thatsgame1

    (@thatsgame1)

    Plugin Author Khang Minh

    (@oddoneout)

    What browser did you use to test? It is working fine for me here using Firefox.

    Thread Starter thatsgame1

    (@thatsgame1)

    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.

    Plugin Author Khang Minh

    (@oddoneout)

    Weird, I tried IE, Chrome too and they both worked fine. Maybe you should create a screencast for me.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Simply Using BWP Recent Comments’ is closed to new replies.