Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Pingback doesn't appear within the comments
New Landing › How can we help? › Themeforest Theme Support › Dante › Pingback doesn't appear within the comments
- This topic has 11 replies, 4 voices, and was last updated 9 years by Kyle – SUPPORT.
-
Posted in: Dante
-
January 7, 2015 at 5:14 pm #139751
Hi,
I just received a pingback (yay! ๐ ) to one of my blog posts. Unfortunately it doesn’t appear below the post. For testing purposes I answered that pingback-comment which really looks weird now.
Pingbacks/Trackbacks are allowed/activated in general (settings -> discussion) as well as on this specific post. Is there any other setting which might prevent showing that pingback?
Thanks a ton in advance!
ickeJanuary 8, 2015 at 11:42 am #139956Hi
Please can you test this with TwentyFourteen enabled?
– Kyle
January 8, 2015 at 12:03 pm #139964Hi Kyle,
thanks a lot for your fast answer – really appreciated!
By activating the theme “Twenty Fourteen” the pingback appears below the post. I don’t know if it helps but I also attached a picture with the source code to this post.
Thanks!
ickeAttachments:
You must be logged in to view attached files.January 8, 2015 at 12:14 pm #139976I’ll forward this to the developer to see what he thinks
– Kyle
January 8, 2015 at 1:41 pm #140009Alright, thanks!
January 8, 2015 at 2:05 pm #140015Hi,
Try to put this code in the place you want on comments.php
<?php if ($trackback == true) { ?> <h3>Trackbacks</h3> <ol> <?php foreach ($comments as $comment) : ?> <?php $comment_type = get_comment_type(); ?> <?php if($comment_type != 'comment') { ?> <li><?php comment_author_link() ?></li> <?php } ?> <?php endforeach; ?> </ol> <?php } ?>
If you want before the comments means, put it before the div..
<div id="comments-list" class="comments">
Let us know,
Thanks,
laranz.January 8, 2015 at 2:28 pm #140025Hi laranz,
including the code snippet unfortunately doesn’t change anything. I’ve attached a picture where I included the code snippet.
I also tried several other places within the code but maybe you’ve a hint where to include the code snippet exactly?
As soon as I include the code snippet beside the?>
I receive an error message saying “Parse error: syntax error, unexpected ‘<‘ in …/comments.php on line 24”.Thanks for your help!
ickeAttachments:
You must be logged in to view attached files.January 8, 2015 at 10:15 pm #140200Hi,
After putting the code like the above screenshot, not even the “Trackbacks” heading shown? Try remove the if statement and try to put on the same place,
<h3>Trackbacks</h3> <ol> <?php foreach ($comments as $comment) : ?> <?php $comment_type = get_comment_type(); ?> <?php if($comment_type != 'comment') { ?> <li><?php comment_author_link() ?></li> <?php } ?> <?php endforeach; ?> </ol>
Make sure that posts have trackbacks, We also wait for Ed’s reply. ๐
Let us know,
Thanks,
laranz.January 9, 2015 at 9:30 am #140270Alright, this worked now. Since it didn’t fit to my design I removed the
<h3>
thingie and included the code now like that:<ol> <?php foreach ($comments as $comment) : ?> <?php $comment_type = get_comment_type(); ?> <?php if($comment_type != 'comment') { ?> <li><strong>Trackback:</strong> <?php comment_author_link() ?></li> <?php } ?> <?php endforeach; ?> </ol>
It looks like that.
I assume, updating the theme as from now I will have to include that code snippet every time?Thanks again for your help!
ickeJanuary 9, 2015 at 10:48 am #140295We’ll look at adding this natively for the next update.
Thanks,
– Ed
January 9, 2015 at 11:19 am #140309Awesome, thank you very much!
January 9, 2015 at 11:40 am #140313No problem
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.