Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Where did you get this theme? The simplest way to get your comments back is just to restore the original copies of those files.
The theme is photoria. That’s the issue, I had the comments working perfectly. I had edited the code in page.php / comments.php so every page would display the number of comments (comment count) i.e. adding the comment count function to page.php . I did this because the way my site works every page with the exception of one would display comments.
I then stupidly reset the whole theme and now I have this problem!
Don’t worry guys, have managed to fix it!
page.php wasn’t calling comments_template(); where as single.php (posts) was. Just copied the code over and it is fine!
Friends,
I wanted to delete the headers of pages saying You are browsing now…
I consulted the forum and I tried to fix it but it didn’t work
I understand I accidentaly deleted a part in archive.php
Now it is written on the top of the pages the following :
Parse error: syntax error, unexpected $end in /home/asanatco/public_html/yesiltepe.com/wordpress/wp-content/themes/custom-community/archive.php on line 121
I will be happy if you can help me, Thank you
Necip
@anecipyesiltepe – Download a new copy of the theme to your local computer – and then replace that file using FTP or other file manager your host uses. Also, you should not modify theme files – but instead use a Child Theme for these kinds of modifications –
http://codex.ww.wp.xz.cn/Child_Themes
If you need additional help, you need to start your own thread – this one is resolved and not the same issue. For help with your theme, please post here:
http://ww.wp.xz.cn/support/theme/custom-community
(@paulocot)
12 years, 11 months ago
Guys I’ve had an absolute nightmare, for one reason or another I have reset my comments.php and page.php code to the original that came with the theme and can’t figure out for the life of me what has changed. The problem is the comments aren’t displaying on ‘pages’ anymore. The page should entail the page title and then the list of comments for that page (that’s how my site works) but at the moment it is only showing the title.
I have included in page.php because before I reset the files I had edited something in there to make comments display on all pages – maybe that’s the route of the problem? Unfortunately I cannot see where an error is on page.php
Another reason it might not be working is I removed snippets of code from the comments.php such as the original wordpress comment system forms. Once again though I’m not a coding level to be able to identify the problem.
Below is my code for page.php and comments.php – would be very appreciative if anyone can pick up on why this code would cause the comments not to show. For your information I’m using the jetpack wordpress comment system; even when I revert back the original wordpress comment system the same problem happens.
page.php :
comments.php :
Any help would be much appreciated, can’t believe I’ve done it…
Cheers, Paul