• katjo8

    (@katjo8)


    Hi: I have the placed the code in my template to enable a Trackback URL after each post. However, what I would really like is for it to be a hyperlink instead of just the straight URL.

    How do I modify the code to make this happen?

Viewing 10 replies - 1 through 10 (of 10 total)
  • drewactual

    (@drewactual)

    preceding URL text:

    your url here”>

    after URL text

    is that what you are looking for?

    drewactual

    (@drewactual)

    whoops, forgot these boards incorporate some codes—-

    <a href="yoururlhere">

    your url in text

    </a>

    Thread Starter katjo8

    (@katjo8)

    Well…I guess I have no idea. What would I do with what you posted?

    Thread Starter katjo8

    (@katjo8)

    Can you tell me exactly where I should put that in the loop?

    drewactual

    (@drewactual)

    you placed your URL in your theme, you want it as a link, right?

    the code is simple html… I was being partially silly by providing that, because I don’t understand your question completely…

    I am thick like that sometimes 🙂

    Thread Starter katjo8

    (@katjo8)

    OK – maybe I should back up. I placed this in my theme to allow a trackback URL to be available after each post:

    <p>Trackback URL for this post: <?php trackback_url(); ?></p>

    So now I have this appearing after each post:

    Trackback URL for this post: (and then the URL)

    What I really want is for it to say this:

    Trackback URL for this post (and have “URL” be a hyperlink to the post).

    Does this make sense?

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    When in doubt, look at how the default theme does it and modify to your needs.

    Trackback <a href="<?php trackback_url(); ?>" rel="trackback">URL</a> for this post

    drewactual

    (@drewactual)

    It does now… I gotcha…. I’m thinkin’… I think a little slow… give me a minute or two…………………………or ten…

    drewactual

    (@drewactual)

    Otto thinks much faster than me….. not hard to imagine…

    Thread Starter katjo8

    (@katjo8)

    Thanks much to you both! I’ll remember that tip, Otto!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Trackback URL’ is closed to new replies.