More
    Home Design / Dev How to Separate Comments and Trackbacks

    How to Separate Comments and Trackbacks

    Most of wordpress default theme post or page will have comments and trackbacks in the same list. Sometime we can never differentiate between those two. Simply to make them more organize, there is a way to separate between comments and trackbacks. In order for commenters to have a clear picture of what is comment and what is not, prepare your favorite editor and here we go.

    • Step 1:

    Simply just open your comments.php file using your favorite editor (eg: Dreamweaver, Notepad++ or any other editor that we assume you already know) and locate this line of code.

    [sourcecode language=’php’][/sourcecode]
    Paste this code below after the code above.

    [sourcecode language=’php’]
    [/sourcecode]

    • Step 2:

    Then look again for this line of code.

    [sourcecode language=’php’][/sourcecode]
    And paste this code below before the code above.

    [sourcecode language=’php’][/sourcecode]

    • Step 3:

    Next look for this line of code.

    [sourcecode language=’php’][/sourcecode]
    And paste this code below before the code above.

    [sourcecode language=’php’]

    Trackbacks




    [/sourcecode]

    • Next:

    It is already set. Save it and you will notice that trackbacks will appear underneath the comments. Simply with CSS you may change the order or make it appear side by side. It depends on you. Enjoy!

    WPTidBitshttps://wptidbits.com/
    Owner of WPTidBits. Totally in love with WordPress!

    LEAVE A REPLY

    Please enter your comment!
    Please enter your name here

    You May Also Like