Thread Starter
Sheila
(@sheilahoff)
This is my first post here so I don’t know what the “norm” is. But I’m a bit disappointed to have no responses at all. Hopefully this will bump my question back to where someone might see it and respond. THANKS!
Thread Starter
Sheila
(@sheilahoff)
Thanks to someone on another forum I’ve found my solution. I thought I’d post it here in case someone comes along later and wonders the same thing… See full article here: http://www.flisterz.com/2008/06/02/wordpress-display-comments-on-main-page/
Consider we are using the Default WP theme, open your index.php file, and add this line of code
<?php $withcomments = 1 ?>
right after <?php get_header(); ?>
Then add the comment template tag <?php comments_template(); ?> inside the Loop before <?php endwhile; ?>
Shiela,
Thanks for posting that. It did help me out. I just thought you’d like to know.
For future reference, this isn’t the forum to turn to to get a question answered. Look here to see if a solution is already posted. If not, post it elsewhere. You’ll get much better results.
Mike
unpaidentertainer.com
thesportsdick.com
hi there, i am using the Atahualpa theme
how do I extend my comments automatically for this theme on the home page? can anyone help?
Lee
(@diondeville)
Thank you Sheila, this has helped me edit the Lightword theme.
Jumanok, here’s what you need to do:
- Go to your Dashboard, Find where it says Appearance in the sidebar on the left-hand-side then select Editor,
- On the right-hand-side of the newly opened page, you will see a new list of files; select the one that says Main Index Template or index.php,
- In the editor window you will see text that starts with <?php followed by more text. Look for a line that says <?php get_header(); ?> and add <?php $withcomments = 1 ?> onto a new line below it,
- Now check through this page for any line of text that might say <?php comments_template(); ?> (my template already had it in it). If it isn’t present then find <?php endwhile; else: ?> and above it, on a line of its own, add <?php comments_template(); ?>.
So the top might then look like
<?php get_header(); ?>
<?php $withcomments = 1 ?>
And somewhere toward the bottom it will then look like
<?php comments_template(); ?>
<?php endwhile; else: ?>
You will find it easy to search index.php were you to copy it into a text editor, press ctrl+f then type your search terms.
Hope that wasn’t over explained.
http://journalxtra.com