• Resolved ckruse

    (@ckruse)


    I am having a crazy amount of trouble with wp_list_comments(). I am trying to create my own custom function to display comments.

    Within the_loop I have:

    wp_list_comments(‘type=comment&callback=lp_comment’);

    Then, in my functions.php file I have:

    function lp_comment($comment, $args, $depth) {
    $GLOBALS[‘comment’] = $comment; ?>

    <p style=”white-space:nowrap”>
    <strong class=”w-name”><?php comment_author(); ?>
    <?php comment_text(); ?>
    <?php the_time(); ?>
    </p>

    <?php
    }

    It will not display anything. No matter where I put it. I have even tried calling lp_comment directly, which will throw an error stating that parameters are missing. But not so much as a space using wp_list_comments.

    PLEASE HELP ME! I am going crazy!

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_list_comments’ is closed to new replies.