mundomariah
Member
Posted 2 years ago #
Hi, I changed my theme like a month ago, and I noticed that in these new one, comments are not being showed on pages (even though they exist). I didn't know too much of php so... should I need to add some code o something else? For example, this page has pingbacks and a comment, but there is no visible...
Thejas Kamath
Member
Posted 2 years ago #
Find the following code in page.php file
<?php the_content(); ?>
and replace it with following one.
<?php the_content(); ?>
<?php comments_template(); ?>
Thanks
mundomariah
Member
Posted 2 years ago #
T-H-A-N-K-S Thejas Kamath. You really saved me! :p
Thejas Kamath
Member
Posted 2 years ago #
@mundomariah
Your welcome! My job is just helping you. However, if you have found out your answer, please change the status of this thread as RESOLVED!
Thanks
rmmiles
Member
Posted 2 years ago #
Here's a really dumb question, where do you find the page.php file?
normally in the wp-content/themes/yourthemename folder; on the side of index.php, style.css, and other files;
however, not all themes have a page.php, as the same function could be done by index.php, according to template hierarchy:
http://codex.wordpress.org/Template_Hierarchy
http://codex.wordpress.org/Theme_Development