WordPress.org

Ready to get started?Download WordPress

Forums

How to show twitter mentions/ tweetbacks along with comments in P2 (2 posts)

  1. Gauravonomics
    Member
    Posted 4 years ago #

    I'm trying to show twitter mentions/ tweetbacks along with comments in P2. The tweetbacks plugin is one way to do it but it doesn't seem to work in P2, because it handles comments differently from normal themes.

    Specifically, where can I find the equivalent of the comment loop in P2?

    <?php if ( have_comments() ) : ?>
    <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h3>
    <ol class="commentlist">
    <?php wp_list_comments(); ?>

    <div class="navigation">
    <div class="alignleft"><?php previous_comments_link() ?></div>
    <div class="alignright"><?php next_comments_link() ?></div>
    </div>
    <?php else : // this is displayed if there are no comments so far ?>
    <?php if ('open' == $post->comment_status) : ?>
    <!-- If comments are open, but there are no comments. -->
    <?php else : // comments are closed ?>
    <!-- If comments are closed. -->
    <p class="nocomments">Comments are closed.</p>
    <?php endif; ?>
    <?php endif; ?>

  2. noel
    Member
    Posted 4 years ago #

    Check up on the comment function callback that was implemented in WordPress 2.7 - it's pretty common, just not default usage.

    It shouldn't be too much trouble to use those types of plugins as long as you're willing to put them into the P2 theme yourself - not hook them (unless the hook works!)

Topic Closed

This topic has been closed to new replies.

About this Topic