Hallo!
Ich möchte in meinem Theme die Trackbacks/Pings und die Kommentare von einander trennen und jeweils separat auflisten. Zuerst sollen die Trackbacks/Pings angezeigt werden und dann die Kommentare. Ich möchte dies direkt in mein Theme progammieren und dies nicht mit Hilfe von einem Plugin lösen.
Das Netz ist voll von Anleitungen und da ich auch ganz gut mit Google zurecht komme habe ich mir einige durchgelesen und komme dennoch nicht weiter. Vielleicht sehe ich den Wald vor lauter Bäumen nicht... Ich bin jedenfalls nach dieser Anleitung vorgegangen (wobei ich auch zu anderen Anleitungen keine nennenswerte Unterschiede festgestellt habe). Doch leider funktioniert dies so in meinem Theme nicht: So wie ich die besagten Änderungen vorgenommen habe, wird mein Theme nicht bis zu Ende geladen; Kommentare werden überhaupt nicht mehr angezeigt.
Der validator wirft mir folgende Fehler vor, die vor den Änderungen so nicht da waren:
ZitatAlles anzeigen
- Line 195, Column 3: end tag for "div" omitted, but OMITTAG NO was specified You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, endiing with "/> instead of ">".
- Line 150, Column 9: start tag was here </ul><div class="post" id="post-1506">
- [Blockierte Grafik: http://validator.w3.org/images/info_icons/error.png] Line 195, Column 3: end tag for "div" omitted, but OMITTAG NO was specified … ✉
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".- [Blockierte Grafik: http://validator.w3.org/images/info_icons/info.png] Line 137, Column 2: start tag was here <div id="content">
- [Blockierte Grafik: http://validator.w3.org/images/info_icons/error.png] Line 195, Column 3: end tag for "div" omitted, but OMITTAG NO was specified … ✉
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".- [Blockierte Grafik: http://validator.w3.org/images/info_icons/info.png] Line 129: start tag was here ><div id="wrapper">
- [Blockierte Grafik: http://validator.w3.org/images/info_icons/error.png] Line 195, Column 3: end tag for "body" omitted, but OMITTAG NO was specified … ✉
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".- [Blockierte Grafik: http://validator.w3.org/images/info_icons/info.png] Line 128: start tag was here ><body>
- [Blockierte Grafik: http://validator.w3.org/images/info_icons/error.png] Line 195, Column 3: end tag for "html" omitted, but OMITTAG NO was specified … ✉
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".- [Blockierte Grafik: http://validator.w3.org/images/info_icons/info.png] Line 2: start tag was here ><html xmlns="http://www.w3.org/1999/xhtml">
- [Blockierte Grafik: http://validator.w3.org/images/info_icons/error.png] Line 195, Column 2: XML Parsing Error: Premature end of data in tag div line 150
- [Blockierte Grafik: http://validator.w3.org/images/info_icons/error.png] Line 195, Column 2: XML Parsing Error: Premature end of data in tag div line 137
- [Blockierte Grafik: http://validator.w3.org/images/info_icons/error.png] Line 195, Column 2: XML Parsing Error: Premature end of data in tag div line 129
- [Blockierte Grafik: http://validator.w3.org/images/info_icons/error.png] Line 195, Column 2: XML Parsing Error: Premature end of data in tag body line 128
- [Blockierte Grafik: http://validator.w3.org/images/info_icons/error.png] Line 195, Column 2: XML Parsing Error: Premature end of data in tag html line 2
Im Anhang von diesem Beitrag findet man ein zip Archiv. In diesem Archiv findet man zwei comments.php dateien. Die alte ist die funktionierende Sicherheitskopie vor meinen Änderungen - in der neuen findet man alle Änderungen die ich nach der oben genannten Anleitung vorgenommen habe.
Ich bin für jedwede Hilfe Dankbar!!