Forums

displaying trackbacks (7 posts)

  1. travel-junkie
    Member
    Posted 2 years ago #

    hello,

    i've never really thought about trackbacks, mainly cause i'm very new to blogging and haven't received any yet :)
    now i managed to separate comments and trackbacks and i sent myself one to see how they get displayed and i'm not really that happy with it right now.
    i would like to show it like here. been trying to use comment_author_url_link and comment_author_link, but to no avail.
    any help is appreciated. bo

  2. travel-junkie
    Member
    Posted 2 years ago #

    *bump*

  3. Chris_K
    Administrator
    Posted 2 years ago #

    What, exactly, is the question?

    Thanks for the binary-moon link, but what aspect of your solution do you not like? Would a link to your site be helpful for illustrative purposes?

  4. travel-junkie
    Member
    Posted 2 years ago #

    well, actually, no, a link to my site would not be helpful at all since you can't see any trackbacks. this is mainly due to the fact that i haven't been sent any and i deleted the one i sent myself (i don't much see the point of keeping trackbacks you send yourself, not even for illustrative purposes).

    i would like the trackback just to be a link and the trackbacks on the binary-moon page seem to consist of the <title> of the page the trackback is being sent from.

    so the question would be what code/functions to use so that trackbacks get displayed in such a way.

    i am sorry i haven't made it clear enough in my original post, which just means that i should probably refrain from posting anything at all after 1 am.

  5. Chris_K
    Administrator
    Posted 2 years ago #

    So, from the article, for Trackback display we're focusing on this section, right?

    // check there actually are some trackbacks
        if ( count( $bm_trackbacks ) > 0 ) {
    
            // I like to add a separate heading here
    
            foreach ( $bm_trackbacks as $comment ) { ?>
                // trackback display code (I only display a link to the site and no message content)
            }

    What do you currently have in place of
    // trackback display code
    ?

    I do something similar to what you're doing and get by with
    <?php comment_author_link() ?> (well, and some styling and a date after it). [sample]

  6. travel-junkie
    Member
    Posted 2 years ago #

    i have this:

    <li id=\"comment-<?php comment_ID() ?>\">
    <?php comment_author_link() ?>
    </li>

    but all i got was my blog title, but shouldn't it show the whole <title> bit?

  7. Chris_K
    Administrator
    Posted 2 years ago #

    It'll show the title that came in the trackback (the "source"). Typically, whatever the blog uses for the title is what should show up.

    Perhaps use this "Test Blog" to send yourself some trackbacks?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags