New Landing How can we help? Themeforest Theme Support Dante Pingback doesn't appear within the comments

Viewing 12 posts - 1 through 12 (of 12 total)
  • Posted in: Dante
  • #139751
    icke
    Member
    Post count: 17

    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!
    icke

    #139956
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Please can you test this with TwentyFourteen enabled?

    – Kyle

    #139964
    icke
    Member
    Post count: 17

    Hi 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!
    icke

    Attachments:
    You must be logged in to view attached files.
    #139976
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    I’ll forward this to the developer to see what he thinks

    – Kyle

    #140009
    icke
    Member
    Post count: 17

    Alright, thanks!

    #140015
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    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.

    #140025
    icke
    Member
    Post count: 17

    Hi 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!
    icke

    Attachments:
    You must be logged in to view attached files.
    #140200
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    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.

    #140270
    icke
    Member
    Post count: 17

    Alright, 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!
    icke

    #140295
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    We’ll look at adding this natively for the next update.

    Thanks,

    – Ed

    #140309
    icke
    Member
    Post count: 17

    Awesome, thank you very much!

    #140313
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register