• I’m having trouble getting my trackback_url tag to display where I want it to. I want it to display right above the “Leave a Comment” box when the post is viewed separately, i.e. not on the main page.

    My first thought was to place it in my comments.php file, but it won’t display there. Next I tried placing it after the php tag that calls the comments page in index.php, and it does display there, but it comes up on the main page as well as on the individual post, and I don’t want trackback links on the main page.

    My first question is whether the contents of comments.php are in The Loop if they’re called on in The Loop.

    My second question is if there is a way to hide certain items on the main page.

    Also, if anyone has been successful in displaying trackback URLs in the way I’ve described and have a different solution, I’d be glad to hear it.

    Thanks, ~Quincy~

    P.S. I’m running WP 1.5.

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you want a trackback link only on a comments page it will have to be placed in that file.

    It should go somewhere within this section of code. Yours may vary slightly due to theme variations.


    <label for="comment"><?php _e('Your Comment'); ?></label>

    <textarea name="comment" id="comment" cols="50" rows="4" tabindex="4"></textarea>

    <input name="submit" id="submit" type="submit" tabindex="5" value="<?php _e('Say It!'); ?>" />

    If you place the TB code just below the “Your comment” line it will appear just above the entry box.

    If is is just below the “submit” section of code the TB will appear just under the “submit” button.

    Thread Starter quincy2001

    (@quincy2001)

    Marc,

    Turns out it was something entirely different. My template was referencing the default comments.php file rather than the one in the template folder, which I was editing. Once I figured that out, everything worked. Thanks for the help, though.

    ~Quincy~

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

The topic ‘Trackback link location’ is closed to new replies.