Forums

[resolved] Trackback Only Displays Blog Title - Not Headline of Post (6 posts)

  1. steve49589
    Member
    Posted 4 years ago #

    I've been successfully grabbing trackback URLs from other Web sites and adding those URLs to my posts and in the Trackback attribute.

    Everything is working immediately, but when I go visit those other sites, the only thing that displays at the other site is the title of my blog, it does not provide the headline of my post.

    On the other site, the listed trackbacks either show only a blog name, only the headline of the post, or a combination like: Blog Title >> Headline. The same blog will display differently, and my listings only show blog title, so I think it is what I am sending out.

    Can someone provide some insight?

  2. Otto
    Tech Ninja
    Posted 4 years ago #

    Try publishing the post before adding trackbacks to it. See if that makes any difference.

  3. steve49589
    Member
    Posted 4 years ago #

    Thank you for the response. As a matter of fact, I did try that and got the same results.

    If it would help to see my blog and an example, let me know.

  4. Otto
    Tech Ninja
    Posted 4 years ago #

    Hmmm.. It's hard to say exactly what the problem is, because the other site may be receiving the trackback or they may be receiving a pingback instead.

    A trackback is something you manually send. Obviously.

    A pingback is automatic. Whenever you link to another site, WordPress checks to see if it can send a pingback to that site. If so, it does.

    The difference here is that a trackback is sent to that other site with the content included. Title, post content, etc. These are sent to the other site and it then does whatever it does.

    A pingback, on the other hand, doesn't have any information like that. It just says "hey, I linked to you over here". The other site then comes and loads your site, looks at it, and builds the resulting comment/post accordingly.

    Usually, a pingback will look at the <title> to get the name of the page in question. If your page has only the blogname in the page title and not the name of the post as well, that could explain the issue you're having, trackback or not.

    The default theme, for example, uses this code in the title:
    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>

    That's a bit ugly, but break it down.. it uses the blog name, then on single pages it adds "Blog Archive". Finally it calls wp_title(), which displays different things depending on the page.. For single posts, that displays the post title.

    So you might look at the title in your theme's header.php, see if it matches what you're seeing on these other sites.

  5. steve49589
    Member
    Posted 4 years ago #

    Interesting. I checked in the header.php file and I found the following:

    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>

    When I open the full version of the post, it does list the full title as expected in the title bar at the top of the browser window.

    Blog Name >> Blog Archive >> Post Headline

    Maybe it is the pingback versus trackback thing. I always do try to put a link to the trackback URL in the post, as well as manually in the WP field. Maybe I'm messing that up somehow?

    But if it was grabbing the pingback, what does it show? In header.php...

    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

    Thanks again for helping me to troubleshoot. FYI blog is at conservative247.org.

  6. steve49589
    Member
    Posted 4 years ago #

    I just did another post. This time I published the item without the trackback at all, and no link within the copy either.

    Then I edited the post and added the trackback, along with the trackback embedded in the copy.

    The trackback worked properly, displaying the full information with blog post headline which is what I'm looking for.

    Next I'll try it again by adding the proper trackback link before posting to live and I'll see what happens. Maybe it's just the order of how I'm doing things.

Topic Closed

This topic has been closed to new replies.

About this Topic