Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter wotpstore

    (@wotpstore)

    I have used the shortcode as before, with and without parameters, it only displays exactly the text I have typed. As in:

    [better_recent_comments number=”1″ post_status=”publish,private” format=”{comment} {post}” excerpts=false]

    or

    [better_recent_comments]

    Shortcode does not work as normal after modifying the comment arguments in Better_Recent_Comments_Util.php on line 78 to this:

    $comments = get_comments( array(
    ‘number’ => $number,
    ‘status’ => ‘approve’,
    ‘type’ => apply_filters( ‘better_recent_comments_comment_type’, ‘comment’ ),
    ‘comment__in’ => array( 45, 56) 768// set your comment IDs here
    ) );

    And also when I changed it to this:

    $comments = get_comments( array(
    ‘number’ => $number,
    ‘status’ => ‘approve’,
    ‘type’ => apply_filters( ‘better_recent_comments_comment_type’, ‘comment’ ),
    ‘comment__in’ => array( 769) // set your comment IDs here
    ) );

    Just in case you meant IN the brackets replacing ( 45, 56) when you said ‘here’. Either way, I don’t get anything different than what I’ve typed displayed.

    Thread Starter wotpstore

    (@wotpstore)

    Ok, so editing the right file would be better. lol I forund the file you referred to and line 78. I replaced the code with the second option you gave me, and replaced the (45,46) with an actual comment id number. no bad header now :P.

    How do I call up the plugin now since I can’t use shortcode? I tried [better_recent_comments] but it just shoes that string of text and not the comment content.

    Thread Starter wotpstore

    (@wotpstore)

    Andy thank you for spelling it out for me. I’m breaking the code. Can we continue with private message?

    Thread Starter wotpstore

    (@wotpstore)

    Hi Andy,

    Thanks for the response. Will this specify the display of only one comment or comments from one product? I don’t understand how to add this code to the plugin without breaking it. Would you please help me out with that? And I’d need to know what line to add to the shortcode too.

    Christian

Viewing 4 replies - 1 through 4 (of 4 total)