Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Cannot get comments to appear on (front end) home page

Hi there,

I am setting up Dr. Wattz's Invention Blog and I have just finished the 'managing comments' chapter, so according to Zac, I should know everything there is to know about comments on Wordpress! Except, I do not know how to get them to feature directly on the front page! When I navigate to the site (currently at http://www.young1.org/) and find the post 'the Dream Phone', I see a link to the 7 replies, but they do not actually feature in full below the post in question.

Is there a setting I need to change somewhere to allow this to happen? Or do I need to do what another forum is saying and dive into the php config files in the wordpress directory?

Regards,

Robert

Unfortunately, I'm not sitting at home so I can't reference my WordPress site that is on my local machine for complete testing, but this link looks like it will do the trick:

[http://codex.wordpress.org/Comments_in_WordPress][Comments in WordPress]

Hope that helps!

Ok that didn't work out well:

Comments in WordPress

2 Answers

Fair dos. I have followed the advice under the 'Discussion settings: Comment display'. But I still have to click on '7 Replies' link to get to see the comments. (But maybe this is normal...?) I guess WordPress is not like Facebook where the comments are immediately shown underneath each posted item!

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Hi!

By default WordPress shows comments on single post and single page pages. If you want to display comments in other places, you can do so by editing the respective template files.

In this case you would edit your front-page.php and add this function to the loops where you want to display comments: http://codex.wordpress.org/Function_Reference/wp_list_comments

Thanks Zac (& all),

Got a question about a client enquiry here - ( I can't seem to access the front of the blog tonight for some reason - it seems relevant anyhow).

A friend would like me to build a website for her,

She has a number of articles that she has written, on fashion, wedding, jewellery, primary schools – some are political/neutral viewpoint – others are not.

She wants all her articles to be displayed a website, a portfolio site, and she also wants to be able to upload new articles herself.

Wants the site completed as soon as possible, so she can send it to businesses etc.

She would like the newest article on front page, and older articles below this in another section of the site.

She has a twitter account, and she would like this to be linked to/included in her portfolio, as well as a link to her facebook page. Maybe I should know this, but I wondered what tools I should be using to complete the job. I am thinking Wordpress here - but not sure if I need a normal blog or an custom theme? Also, how would I complete the handover so that she could access the site - would I build the site in an account in her name?

(I have been studying Wordpress on Treehouse but I haven't quite finished all of the second project).

Thanks,

Regards,

Robert