Pingbacks don’t show in comments
-
I have pingbacks set up to show in comments and have read all I can in the forums here but the solutions I have found have not seemed to help. The pingbacks show on my dashboard for approval and once approved, they still don’t show on the site. My site is https://www.theyaoireview.com
Here’s ALL the coding under the comments.php section. I’m thinking the theme is set to not show them but I don’t know enough about code to find where the problem is. Any help is appreciated!:
<?php // Do not delete these lines
if (!empty($_SERVER[‘SCRIPT_FILENAME’]) && ‘comments.php’ == basename($_SERVER[‘SCRIPT_FILENAME’]))
die (‘Please do not load this page directly. Thanks!’);// if there’s a password
if (post_password_required())
{
?>
<p class=”nocomments”><?php _e(“This post is password protected. Enter the password to view comments.”); ?><p>
<?php
return;
}// This variable is for alternating comment background
$oddcomment = ‘alt’;
?><!–
You can start editing here.
–>
<?php if (have_comments()) { ?>
<!–
T R A C K B A C K S / P I N G B A C K S
–>
<?php if ($comment->comment_type == “trackback” || $comment->comment_type == “pingback” ||
ereg(“<pingback />”, $comment->comment_content) ||
ereg(“<trackback />”, $comment->comment_content)) { ?><div class=”commentsdiv threaded”>
<div class=”comments-top”>
<h2>Trackbacks & Pingbacks</span></h2>
</div><ul class=”commentlist”>
<?php wp_list_comments(‘type=trackback’); ?><div class=”comments-bottom”> </div>
</div><?php } ?>
<!–
C O M M E N T S
–>
<?php if ($comment->comment_type != “trackback” && $comment->comment_type != “pingback” &&
!ereg(“<pingback />”, $comment->comment_content) &&
!ereg(“<trackback />”, $comment->comment_content)) { ?><div class=”commentsdiv threaded”>
<div class=”comments-top”><h2>Comments</h2></div><ul class=”commentlist”>
<?php wp_list_comments(‘type=comment’); ?>
<!– end .comments-bottom –><div class=”comments-bottom”> </div>
</div><?php } ?>
<?php } else { ?><!–
If comments are open, but there are no comments.
–>
<?php if (‘closed’ == $post->comment_status) { ?>
<div class=”comments”>
<div class=”comments-top”></div>
<div class=”comments-middle”>
<p>Comments are closed. Please check back later.</p>
</div>
<div class=”comments-bottom”> </div>
</div> <!– end .comments –>
<?php } ?>
<?php } ?><?php if (‘open’ == $post->comment_status) { ?>
<div id=”respond” class=”commentsdiv”>
<div class=”comments-top”>
<h2><?php comment_form_title(‘Leave a Reply’, ‘Leave a Reply to %s’); ?></h2>
</div><div class=”comments-middle”>
<div class=”commentform”>
<form action=”<?php echo get_option(‘siteurl’); ?>/wp-comments-post.php” method=”post” id=”commentform”><div class=”commentform-inputs”>
<div class=”row”>
<label for=”author” class=”text”>Name:</label>
<input type=”text” name=”author” id=”author” value=”” class=”text” tabindex=”1″ />
</div>
<div class=”row”>
<label for=”email” class=”text”>Email:</label>
<input type=”text” name=”email” id=”email” value=”” class=”text” tabindex=”2″ />
</div>
<div class=”row”>
<label for=”url” class=”text”>Website:</label>
<input type=”text” name=”url” id=”url” value=”” class=”text” tabindex=”3″ />
</div><div class=”commentform-headers”>
<p class=”small”>You can use these tags: <?php echo allowed_tags(); ?></p>
</div><div class=”commentform-textarea”>
<textarea name=”comment” id=”comment” cols=”50″ rows=”10″ tabindex=”4″></textarea>
</div><div class=”commentform-buttons”>
<input type=”hidden” name=”comment_post_ID” value=”<?php echo $id; ?>” />
<?php comment_id_fields(); ?>
<?php do_action(‘comment_form’, $post->ID); ?>
<input name=”submit” id=”submit” type=”submit” tabindex=”5″ value=” Say It! ” />
<input name=”reset” id=”reset” type=”reset” tabindex=”3″ value=” Reset ” />
</div>
</div></form>
</div> <!– end .commentform //–>
</div><!– end .comments-middle //–><div class=”comments-bottom”></div>
<?php } ?>
</div> <!– end .commentsdiv //–>
- The topic ‘Pingbacks don’t show in comments’ is closed to new replies.