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

troy beckett
12,035 PointsAdding a blog to an existing website
So I currently have a website and its finished ready to go. But now I would really like to add a blog to it.
Now is this possible? and how? First of all I would really like to know if it's possible without redoing the the whole site in wordpress. Not because I'm lazy, but because I have no clue about wordpress currently and to remake the whole website would be so hard to take.
So what are my options if I want to put a blog on an existing html website?
I also think that would be a great video for treehouse, as everyone is using blogs at the moment and when you search in google finding a clear example is so far to find and it seems a lot of people are trying to find out.
2 Answers

Kevin Korte
28,149 PointsTwo easy options, you could install wordpress on your server at either a subdomain or a subdirectory. Would just depend if you wanted it at blog.example.com or example.com/blog, than you can just use WP to do your blogging. You could style your WP blog to match your website.
For instance, if you go to dollarshaveclub.com, look at how the site is styled, and than go to blog.dollarshaveclub.com, their blog is actually running WP, but their main site is not. However, because they are styled alike the average user doesn't even know this.
The more complicated option is to use a WP to JSON plugin, and from your website, make calls to your WP site, which would send back all the information in JSON format, that you than parse and display how you want on your site. It is basically just like using a 3rd party API. Make a request, get JSON back, do something with JSON.

Henrique Machuca
5,611 PointsI mean having the blog posts appear in my home page. Even though the main page isn't WordPress. Just the blog section as you suggested .
troy beckett
12,035 Pointstroy beckett
12,035 Pointsyeah I've read about this alot, thing is I can't find a good tutorial where I can get an understanding of how to do this. Any ideas, thanks fro your response
Kevin Korte
28,149 PointsKevin Korte
28,149 PointsWhich route do you think you want to go?
troy beckett
12,035 Pointstroy beckett
12,035 Pointsi would like to go the example.com/blog route with same styling
Kevin Korte
28,149 PointsKevin Korte
28,149 PointsAll it is a matter of is is just installing wordpress in the folder you want. So for instance, of your root folder, you'd want to have another folder there called "blog", and than install a new WP installation in there.
If you don't know much about wordpress, than watch some of the videos here.
I'd probably start here: http://teamtreehouse.com/library/how-to-make-a-website-with-wordpress
And than look at this: http://teamtreehouse.com/library/local-wordpress-development
From there you can look at the theme development courses and you will be well on your way. Once you learn how WP works, it'll be easy for you to see how to install it where you want.
troy beckett
12,035 Pointstroy beckett
12,035 Pointsok thanks for your help i'll take a look
Mark Cabangon
3,940 PointsMark Cabangon
3,940 PointsGreat example and answer, Kevin! I'm was in the process of implementing a blog to my site as well. Glad I found this.
Mark JC
Kevin Korte
28,149 PointsKevin Korte
28,149 PointsI'm glad Mark. Thank you
Henrique Machuca
5,611 PointsHenrique Machuca
5,611 PointsKevin, excellent response to this question!! I also had some doubts about the same thing.
Just another thing, is it possible to link my posts to my websiteยดs main page taking the first route as you talked above?
Thank you!
Kevin Korte
28,149 PointsKevin Korte
28,149 PointsThank you, just to clarify when you say "link", do you mean having anchor tags with custom URLs that link back to your main site, or do you mean having your blog posts show up on your main site even though it's not wordpress?