[SOLVED] Making a separate header for the trackbacks?
While it is great to have trackbacks and pingbacks separated from the rest of the comments, i.e. trackbacks below comments, is there a way to clearly identify them as trackbacks, i.e. with a header that says "trackbacks"?
1. Is it possible to insert a "Trackbacks" header before the trackbacks? 2. Is there a way to make it say "XX comments to ..." and then "YY trackbacks to...", taking into account the different numbers? 3. If neither 1 or 2 are possible, where can I change "XX comments to..." into XX reactions to..." since a trackback is not a comment and it thus makes more sense to call he whole thing reactions rather than comments as to not confuse the readers. Thanks for your help. Edit: I managed to figure out #3 but I would also like #1 to work, #2 would be better, though. |
Just bumping my own thread here.
What I am looking for is a way to insert "Trackback" above the trackbacks/pingbacks. Right now it's like this below the post, e.g. 6 reactions to post title comment 1 reply 1comment 2 reply 2trackback 1 trackback 2 I want it to be 6 reactions to post title comments comment 1 reply 1comment 2 reply 2trackbacks trackback 1 trackback 2 It should be very simple, just inserting a line of text somewhere in the php, but where? Ideally, it should be 4 comments to post title comment 1 reply 1comment 2 reply 22 trackbacks to post title trackback 1 trackback 2 How can I make that? |
In the comments.php, which you can find in the editor option in WP underneath the ATA options, find the code
Code:
wp_list_comments(array( Code:
echo "any HTML or text here, such as Trackbacks"; Note, this assumes you have, in the ATA>Comments settings, comments set up to separate trackbacks/pingbacks out. derek www.1775thebook.com |
Okay, I've been toying with this on my own site, and following the suggestions of http://wphacks.com/separating-trackb...wordpress-2-7/
here's what I did (using ATA 3.5.3 and WP 3.0.4): In the comments.php as noted above, I removed the above code, and replaced it with: Code:
<?php // Do this for every comment In the functions.php, I put the following at the bottom of the existing functions.php: Code:
<?php Code:
div#pings li { hope that helps someone! |
I created a Atahualpa child theme and copied over the comments.php and functions.php to the child theme directory with the intent to make these edits in those files. However, the presence of functions.php causes the site to not load. I don't wish to edit the theme files in the parent Atahualpa folder since an upgrade will ease those edits. I already have a edited index.php in the child theme folder and that works fine. Any suggestions on the functions.php?
|
You need to go back and read about child themes.
HTML Code:
Unlike style.css, the functions.php of a child theme does not override its counterpart from the parent. |
@juddledad, thanks for pointing me in the right direction.
|
How do I make the "Pingbacks/Trackbacks:" text conditional? Using the nested conditional results in the comments+comment form and the sidebars to vanish. (pardon my lack of php skills)
Quote:
|
You have to pay attention to when you are in PHP and when handling HTML, try this
HTML Code:
<?php // Do this for every comment |
@juddledad, Thanks. I had to slightly modify your modification, but here is the final version:
PHP Code:
|
All times are GMT -6. The time now is 09:17 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.