How should I best incorporate WordPress in my static website?

My site as of right now is a static website. I am planning on having a ‘recent blog posts’ section on it, with permalink to the main blog post/blog. example:

http://site.com/blog

I was wondering, because of having a recent blog posts section on the homepage, should I just have the entire website powered by WordPress and just add the homepage (and other pages, such as contact) as a word press ‘page’, and call recent blog posts on it?

If I do it that way, am I still able to have the blog in /blog?

I was also thinking of just adding the whole WordPress files to the /blog directory and call recent blog posts from the static file…

I am new to WordPress, so I am a bit confessed here.

What is the best option?

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

You can do either, it’s up to you depending on how invested in your static site you are and how much work you want to do transferring things over.

The Codex page on Integrating WordPress with your website outlines how you could have WordPress installed in the /blog directory, and show recent posts on your static site through the use of a bit of php.

Your other option is to have WordPress take over serving all of your site’s content. It’s pretty easy to set up a static home page, plus contact, etc., as well as a blog at whatever url you choose. See the Codex page on WordPress Settings > Reading. You just need to create two pages, then designate one your home page and the other to be the page that shows your posts.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x