Wordpress theme code query

8 replies
  • WEB DESIGN
  • |
Hi All,

I can not seem to figure out code or find a plugin to automatically expand comments on a post.

The site I am doing in question Perth Leading Trampoline Manufacturer | Trampoline Repairs Perth if you go to the testimonials menu you will see i have made 1 post, and added a comment from myself to test.

All it shows at bottom right is 1 comment.

What I am hoping is that someone knows the code and or plugin to make this automaticallyshow up and not be hidden.

Fingers crossed that someone can help.

#code #query #theme #wordpress
  • Profile picture of the author Sleaklight
    I believe that is a limitation of the theme you are using.
    {{ DiscussionBoard.errors[2142059].message }}
    • Profile picture of the author Aussie Dazzler
      I am hoping that is not true...lol

      If other themes have "code" in them that does show, can it be a process of changing some code???

      I hope so.
      {{ DiscussionBoard.errors[2142109].message }}
      • Profile picture of the author andy black
        Hi there

        You need to add this code to your post or page file in your theme where you want the comments displayed

        <ol class="commentlist">
        <?php wp_list_comments(); ?>
        </ol>

        can be placed in div, ol or li tags

        If you have no idea how to this shoot me a PM and I will see if I can help you out.
        {{ DiscussionBoard.errors[2142303].message }}
        • Profile picture of the author Aussie Dazzler
          Originally Posted by andy black View Post

          Hi there

          You need to add this code to your post or page file in your theme where you want the comments displayed

          <ol class="commentlist">
          <?php wp_list_comments(); ?>
          </ol>

          can be placed in div, ol or li tags

          If you have no idea how to this shoot me a PM and I will see if I can help you out.
          Hi Andy,

          I was just trying this out on a test site I have, but unsure which page to edit.

          Should it be page.php, index.php, or the comments.php file

          On my test site in comments php i put the code but it did not work???

          Would love it if I can get this sorted
          {{ DiscussionBoard.errors[2142344].message }}
          • Profile picture of the author andy black
            Sorry I think I got it wrong (half a sleep)

            You may need to add this to post or page inside the loop

            <?php comments_template(); ?>

            if this is already present then the comments template needs editing

            copy and paste the comments template code into a PM and send that to me. I cant figure it out without seeing the code, sorry if I am not making any sense.

            If you send me a login (via PM) I should be able to sort it. I understand if you do not want to do this.

            Maybe someone else can better explain how to get it working.
            {{ DiscussionBoard.errors[2142366].message }}
            • Profile picture of the author Aussie Dazzler
              Hi Andy,

              I am slowly figuring it out.

              You were actually sort of right in the first place.

              I added those lines of code into the comments.php file and it didnt show....Not until i actually clicked on the "1 Comment" then it showed your bit of code and the comment which is generated by the comments.php file.

              So unless I am starting to do something wrong, i have created a php page called comment_page.php and am editing that file. Just trying to figure out where to place the code.

              If you use contact form on my sig i will then email you the 2 files concerned if i havent figured out by then.

              Cheers

              Correction its not working, wherever i seem to put the code.

              Shows fine when i actually click the link to show the comment. But how to make this be on the one page.

              Look forward to your email.
              {{ DiscussionBoard.errors[2142377].message }}
              • Profile picture of the author andy black
                Unresolved, can any one else help with this?
                {{ DiscussionBoard.errors[2142801].message }}
                • Profile picture of the author Aussie Dazzler
                  Well got it working....or should I say the result i wanted was achieved.

                  In the start of the problem i had the testimonials page as a posts page.
                  It only needs 1 paragraph there to say customers leave a comment on your purchase.

                  So i ended up reverting back to a page, and telling it to not be a posts page.

                  But als it was still then not showing comments.

                  For some reason it worked when i copied the default wordpress theme page.php and comments.php over the current themes files.

                  A little tweaking in the code all is good.

                  A thanks to Andy for looking and trying.
                  {{ DiscussionBoard.errors[2143155].message }}

Trending Topics