Community Forums › Forums › Archived Forums › Design Tips and Tricks › Comments Not Showing On Posts
Tagged: no comments
- This topic has 8 replies, 2 voices, and was last updated 10 years, 9 months ago by
blogelina.
-
AuthorPosts
-
June 2, 2015 at 6:32 pm #154620June 2, 2015 at 7:26 pm #154627
Erik D. Slater
MemberCurious one. The following line appears as a comment in your HTML:
<!--?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?-->This is a backend function that appears in one of your PHP theme files ... and it has been commented out.
This is the reason why you are not seeing any comments 🙂
The
!--and--- at the beginning and at the end respectively - need to be removed, i.e. it should look like the following:<?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
Erik D. Slater: Digital Platform Consultant • LinkedInJune 3, 2015 at 9:01 am #154711blogelina
MemberDo you have any idea which php template to look in? I think I've looked in all of them and can't find it.
Thanks SO much!
June 3, 2015 at 10:47 am #154716Erik D. Slater
MemberIf you can't find it in your theme files, it could have been added to a plugin ... or worse than that ... a core WP file may have been modified.
The quickest method to finding something in your WP install is to download the whole thing using FTP software to a local folder on your device, then running a search through it.
Otherwise, we're kinda just guessing 🙂
Erik D. Slater: Digital Platform Consultant • LinkedInJune 3, 2015 at 11:12 pm #154798blogelina
MemberI updated the WordPress install - would that correct an issues in the core files? Also, I deactivated the plugins - if it was a coding issue in the plugins, would the comments appear again with the plugins deactivated? It happens with all the themes so doesn't seem to be a theme specific issue?
Thank you SO much for your help!
Any thoughts?
June 4, 2015 at 12:00 am #154800Erik D. Slater
MemberI updated the WordPress install – would that correct an issues in the core files?
Yep. I just double-checked the codex concerning the update process ... since I couldn't remember off the top of my head 🙂
... would the comments appear again with the plugins deactivated?
If the problem still persists after all plugins have been deactivated - including any Must Use plugins - then the source of the problem would definitely not be with a plugin.
It happens with all the themes so doesn’t seem to be a theme specific issue?
... which confirms that you couldn't find the source of the problem when you looked at the theme files.
When I go to your page now, I no longer see the offending code. I also don't see any comments section either ...
Erik D. Slater: Digital Platform Consultant • LinkedInJune 4, 2015 at 8:10 am #154854blogelina
MemberAny other ideas for places to check?
June 4, 2015 at 9:03 am #154858Erik D. Slater
MemberWell ... the problem code has gone ... and given that comments appear on other posts on your site - but not the ability to leave a comment - I'm thinking you may not have comments enabled. That could be something in your custom theme, or they are not selected in the usual admin dashboard places.
Erik D. Slater: Digital Platform Consultant • LinkedInJune 4, 2015 at 9:08 am #154859blogelina
MemberThanks so much for your help!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.