Getting comments on other pages
-
what do you mean on one or more pages ?
You mean POSTS or PAGES ?
If you mean posts, you just have to open comments on the posts when you write one , or make it open by default in the settings(and make sure you have it enabled on your theme)If you are talking about having comments on PAGES , and only on some, you will need probably to create custome page templates.
on my website, http://www.krembo99.com , I have used a very non – orthodox method, of putting ALL of the site comments on ONE PAGE .
I created a page template with comments enabled, and all the posts have a link of “comments” directing to that page.Yeah, I wanted comments enabled on some pages but not all pages, creating custom page templates is going to be beyond my capabilities at this point in time, but the time will come!
Your site is just way cool! Your images create just a flood of different sensations,wow,and the way you set it up is…well very soothing and nice.
Your site has got to be very high on my list of sites that are just pleasant to visit
Very Good Job,
JerryWell, First of all thank you for the warm compliments on my website.
The truth is that I did not updated for at least 4 month now 🙂 I have lots of new things coming in the near future.
About your question.
It is far easier than you would imagine.
Just take your PAGE.PHP , duplicate it , and on the first line, paste :<?php /* Template Name: page-comments */ ?>then, where you want the comments to appear , paste :
<div class="TheCOmmentClasssForYOurTheme"> <?php comments_template(); ?> </div>Save the new created page as Page-Comments.php in your templarte folder and –
that’s all..
Next time you will write a page , or edit a new one, you will be able to choose (from custome page templates) if you want the page to be With Comments, or without ..Hi Krembo99,
I don’t have any experience with that, thought I would mess things up, just so I know, say I do mess things up. I could just go to a new theme and start over-no harm done?well..Yes.
But in order to NOT mess things up in the first place, do like that :
1. Download the PAGE.PHP from your server to your Desktop.
2. rename the PAGE.PHP that you just downloaded to Page-Comments.php (be sure you are renaming the local file)
3. open the Page-Comments.php file from your desktop, and paste
<?php /* Template Name: page-comments */ ?>
4.put the following code towards the end of the page.<div class="TheCOmmentClasssForYOurTheme"> <?php comments_template(); ?> </div>5. remember to change the div class to something from your css. (something that say “comments” or similar)
6. save the file.
7. Upload to the server.
Since it has a different name, you will not have the chance to ruin anything …
That’s it ..
If you want to be extra carfull, just copy the theme folder BEFORE you start to backup.
That way , in the worst case scenario – you just have to copy it back again to the server and no harm done.Thanks for the info Krembo99
Hi Krembo99,
I finally decided to get the comments set up on my other pages as you described above. And guess what!!!!It worked perfectly!Wheeew(picture my hand wiping my brow)
This CSS (I think that’s what I was changing anyway)is really pretty simple. I can see myself learning it and making my own themes (ok that’s a ways off…but I can see it!)
Thanks again,
Jerry
The topic ‘Getting comments on other pages’ is closed to new replies.
(@jerry-lindenburger)
17 years, 4 months ago
Hi,
I’m using ProSense theme and would like to get comments on one or more of the pages I’ve made. I tried the code suggested here http://wordpress.org/support/topic/196788?replies=6 but it didn’t work correctly. I’m new at this but I’m impressed by how simple it is to change things, and change them back again.
Thanks for your help in advance,
Jerry