February 19, 2007

Wordpress as CMS in five steps

Using Wordpress as CMS is much more simple as of version 2.1. It only takes five simple steps to do it, without the need to hack into complicated code.

  1. Create a page named home as startpage and give it page order 0.
  2. On the top of index.php add (between php tags) /* Template Name: weblog */ .
  3. Create an empty page named weblog, give it page order 99 and assign the weblog template to it.
  4. In the admin section under options > reading, select home as front page and weblog as posts page.
  5. Create a menu with wp_list_pages(’sort_column=menu_order&title_li=’). (Already taken care of in the CMS theme).

Use pages for your CMS content and make sure the page order is between 0 and 99. This way the first page in the menu is home and the last page is the weblog. Of course you can vary if you want.

Download the original CMS theme or the new CMS theme and optionally use a plugin to make the pages searchable.

20 trackbacks

  1. [...] 的 Wordpress as CMS in five steps 个人觉的他把 WordPress as CMS [...]

  2. [...] Wordpress 打造成 CMS,这是一篇译文,依靠wp [...]

  3. [...] Wordpress as CMS in five steps (tags: wordpress CMS) [...]

  4. [...] 的 Wordpress as CMS in five steps 个人觉的他把 WordPress as CMS [...]

  5. [...] of your blog posts. Now the front page of your site can display any custom content you want. Bos89.nl covers this process as well. A potential downside of this is that the layout of your Home page and [...]

  6. [...] 的 Wordpress as CMS in five steps 个人觉的他把 WordPress as CMS [...]

  7. [...] 英文原文:Bos89.nl > Wordpress as CMS in five steps 中文译文:我爱水煮鱼 > 5个简单的步骤把 Wordpress 打造成 CMS 把 WordPress 作为 CMS 来使用在2.1版本变得更加容易,只需5个简单的步骤并且不需去修改复杂的代码就能实现。 [...]

  8. [...] Wordpress as CMS in five steps [...]

  9. [...] http://www.bos89.nl/1194 – Quick and easy conversion of WordPress into a CMS in 5 easy steps. Also has links to CMS themes. http://codex.wordpress.org/Pages – A WordPress article on what a Page is and what it is not. It describes what a Page can do, and to gives a few examples. [...]

  10. [...] Bos89.nl » Wordpress as CMS in five stepsA WordPress CMS theme. Five easy steps to get up and running with WordPress as a CMS [...]

  11. [...] Bos89.nl » Wordpress as CMS in five steps (tags: wordpress cms)   [...]

  12. [...] 本文翻译自:Bos89.nl 的 Wordpress as CMS in five steps 个人觉的他把 WordPress as CMS 说的比较清晰明了,大家可以根据他的提供的简单步骤进行扩展。 Filed in Wordpress教程 « 通过插件重新设计 WordPress 的登陆界面 [...]

  13. [...] 的 Wordpress as CMS in five steps 个人觉的他把 WordPress as CMS [...]

  14. [...] are reasons not to use WP as a CMS, but there are also reasons to use WP and many tutorials on how to doso. The fact is, you can use a Caching plugin to speed up the rendering of pages on [...]

  15. [...] This page was helpful in making a page called “Blog” that has all the posts on it. It’s a little sparse on the explanation, but you’re a smart kid. [...]

  16. [...] is now based on wordpress used as CMS. I have followed five simple rules described here, made couple simple adjustments to wordpress template and Voilà! New site is [...]

  17. [...] up from there, with 99 being the blog, or a form of it. More instructions for doing this can be found here.Categories – Make it easier for people to be able to focus on categories by using “custom [...]

  18. [...] Joomla şi Mambo sunt două din CMS-urile ce le-am folosit de-a lungul timpului. Sunt destul de bune, dacă vrei să începi cu ceva şi nu ai idee, poţi începe cu asta. Sau, te poţi rezuma la Wordpress. În linkul următor ai o metodă foarte uşoară de a transforma blogul într-un CMS. [...]

  19. [...] After using Wordpress for a while I started doing more than just writing an occasional blog entry. I started reading through the Codex documentation. I started searching the web for examples of sites that were using Wordpress as a CMS. I quickly found notes on the quick and easy steps to turn Wordpress into a CMS.  Thanks to Martijn Stegink, who shared in a February 2007, blog entry about doing this in five easy steps. You can hit that page by visiting: http://www.bos89.nl/wordpress-as-cms-in-five-steps/. [...]

47 comments

  1. ferrie says:

    this is too simple it can’t be true :) thnx for explaining

  2. Rogerio says:

    Great – where is the link to download version 2.1? The themes page still links to version 1.1

    I really likely the previous theme used on your site – I think it was called “plaintext” – would you consider sharing that theme? Would love to use it on my site!

  3. I meant Wordpress v2.1, not my CMS theme. However I did update my CMS theme to be compatbile with Wordpress v2.1.1 now. Please find the updated link at the themes page.

  4. Stephan Cleaves says:

    I was just experimenting with this. It does work as you say, but I run into trouble if I try to change the template for the Home page. For some reason the blog page also uses that template. It would appear that if I want a separate template for Home I need to copy index.php into a template for Blog as well. What is particularly strange to me is that the About page seems to continue working. Can you shed any light on this?

  5. Stephan Cleaves says:

    Apparently this was due to the name home.php being used for the Home template. I changed it to root.php and the Template Name to Root and the Blog page resumed using index.php.

  6. You’re right. That was the issue. There’s a template hierarchy in WP, also for single post, category, author, page, date, search and 404. Check this out: http://codex.wordpress.org/Template_Hierarchy

    Also try my CMS theme on the themes page. It’s all been done there already.

  7. Piet says:

    Hoi Martijn,

    Zojuist heb ik je CMS template gedownload. Ik zag dat er verder geen help-file of zoiets bijzat, dus ik neem aan dat ik het gewoon in de wp_content folder plaats en dan in WP het theme verander?

    Wellicht als je tijd hebt kan je me even snel een antwoord mailen?

    Reuze bedankt alvast! Groetjes, Piet

  8. Ha Piet. Het CMS template is in feite gewoon een theme, dus in /wp-content/themes/ plaatsen en activeren via presentation in het Wordpress admin menu. Succes.

  9. Michael says:

    This is a great tip. I’ve been having trouble with this until I found your post. Only one thing lies between me and a WP CMS, and that is: Where do I put that code snippet you describe (Line 4) wplistpages(’sortcolumn=menuorder&title_li=’)

    Excuse noob question, but I can’t learn unless I’m already ignorant. :)

  10. Bernie Lenhoff says:

    Hi Martin, thanks for your work. I’m playing with your CMS theme and had an fatal error until I guessed that I needed to also install your is_frontpage plugin. You might add that prerequisite to your theme description.

  11. How to get this to work with Dark theme?!

    Thank you very much?

  12. Create a page named home

    Using which template?

  13. Stef Plantefeve says:

    Ik heb jou CMS theme eens uitgeprobeerd.

    Dit is het adres: http://in-049.in.nl/francistilborghs.be/impressions/

    Als ik op de pagina weblog klik krijg ik een blanco pagina, als ik terug naar home klik krijg ik de weblog pagina te zien. Ra, ra, ra ?

    Heeft dit met hiërachie te maken ?

    groeten,

    Stef,

  14. Naina says:

    Hey Martijn,

    I’m trying to use your CMS theme for a friend’s website – I’m not sure where to put the code snippet for the menu – would you kindly let me know please?

    [ I am also on LinkedIn - http://www.linkedin.com/in/naina - would be a pleasure to connect ]

    Kind Regards, Naina

  15. Naina says:

    Well, sorry to bother you again, but I have another issue and I’m not sure if it is related to the theme but I’ve never faced it earlier – when I click on the ‘blog’ page – page order 99 – it shows me only the text of the posts – it does not show me the images in those posts. When I click on the title of the individual post and go to its individual page, then it shows me the image. Would you know anything about this issue? I’ll be very grateful for any pointers.

  16. Phil says:

    I am getting IE6 problems with the drop down menu? Not sure if this is the hasLayout bug but I can fix it?

    Am I going mad?

  17. Joel says:

    I keep getting this error on all pages from the tab menu…

    Fatal error: Call to undefined function: isfrontpage() in /home/espired/publichtml/members/wp-content/themes/CMS/page.php on line 12

    I need it fixed…please

  18. Cave says:

    Hi Martijn, thanks for this post as a new user wanting to try WP as a CMS its great. I’ve installed your theme, but I’m getting this error when adding new pages and trying to navigate through them – can you shed any light?

    Fatal error: Call to undefined function: isfrontpage() in /home/sites/pixeljuice.net/publichtml/wp-content/themes/CMS/page.php on line 10

    Any advice is much appreciated Thanks

  19. Michael says:

    I just used your CMS theme. The pages are working well, but when I click on the weblog btn it shows nothing. page weblog has page order 99 and is chosen in options – reading – post page.

    Any help is appreciated!

    http://www.rohnerdesign.com/wp213CMS/

  20. Michael says:

    Sorry I have underscores in the address.

  21. Michael says:

    I removed the underscores from the URL

    http://www.rohnerdesign.com/wp213CMS/

    When I switch to the default theme from wordpress then the blag appears.

    Does anyone know what is going on?

  22. I tried but still see nothing.

  23. Michael says:

    Thanks for writing back!

    I moved the whole worddpress into a new folder and used 2.2 – started all over!

    http://www.rohnerdesign.com/wp/

    Again I have the same problem that when I use the CMS theme the blog page in the browser shows nothing – white screen in the browser, no error message and not even the header or so. But in the default theme the blog page comes up.

    If you have any idea what could be the problem, any hint or way of testing would be appreciated.

    In the meantime I decided to learn more and thought I just build my own CMS using your CMS theme as a guide. That way I would find out where the problem is.

    I am very commited to find this out, because wordpress seems the best choice.

    Thanks Michael

  24. It seems like you created a page with the name ‘blog-page-title’ for the weblog. Did you also set that as the ‘posts page’ in admin > options > reading?

  25. Michael says:

    I did. Just don’t know why it works when I switch the theme. I am thinking that I perhaps have to put a few files into the plugin folder.Which files need to go into the plugin folder?

  26. Martijn says:

    When you created a page with the name ‘blog-page-title’ for the weblog it should be assigned a template that is capable of displaying posts. You can set that in admin > manage > pages > edit the page you chose and set the template on the right side at ‘page template’. If you then set that page as the ‘posts page’ in admin > options > reading, it will display the posts correctly. To create such a template, just copy the index.php, open it and on the very top add (between php tags) /* Template Name: any-template-name-you-would-like */ .

    I included the page for your convenience and updated the CMS theme to include the template.

  27. Martian says:

    With Wordpress as CMS, will it be easy to insert a phpBB forum on one page? Will that be possible with your CMS theme (version 2.1)?

  28. I have no idea, never had a look at it. But when using Wordpress and in need of a forum I would always first look at bbPress, they will tell you how to integrate with Wordpress and building plugins and themes should be easy.

  29. Nicole says:

    Hi Martijn, you’ve got a great theme and I’m looking at using it for a friend’s site because the person that set up her original one tried setting it up as a CMS but didn’t do it very well. This is the site I’ve started http://www.hkcomputergoddess.com/assential-scrapbooking/ however what I would like is to have the link ‘online store’ actually link through to a folder on her site. Once I’ve finished customising the them, it’s going to be loaded up onto her site http://www.assentialscrapbooking.com and I want the link to go to here http://www.assentialscrapbooking.com/store/

    Are you able to help me?

    Many thanks, Nicole

  30. Nicole says:

    Hi Martijn, it’s Nicole again. I’ve just finished pulling together another site using your template but for some reason the blog posts are not working properly. The site is http://www.journalsforempowerment.com and if you click on the ‘Latest News’, then if you click on the first post, it doesn’t display that particular post with comments, it displays the first post instead.

    I deleted all the posts and put them in again, but it still happened.

    I copied the css file, then deleted the theme and reloaded the theme. It is still doing it. When I change themes, it works properly.

    Are you able to help me please?

    Many thanks, Nicole

  31. Nicole says:

    I’ve realised my previous comment was probably spammed… here it is again (without so many links)

    Hi Martijn,

    You’ve got a great theme and I’m looking at using it for a friend’s site because the person that set up her original one tried setting it up as a CMS but didn’t do it very well. This is the site I’ve started http://www.hkcomputergoddess.com/assential-scrapbooking/ however what I would like is to have the link ‘online store’ actually link through to her online store folder. I do not know how to do that and was wondering if you are able to help to do this?

    Many thanks, Nicole

  32. in turkey wordpress is not allowed..

  33. Nick Yeoman says:

    Why don’t you just use a CMS? It’s easy to import a wordpress database to a Joomla database. Maybe next you should write an article on how to eat soup with a fork or how to hammer a nail with a screwdriver.

    Just kidding, I’m just trying to make the point that if you need a CMS you should use a CMS.

  34. If you need CMS functionality for a relatively small site Wordpress is easier to use than Joomla. If you only want to eat soup a normal spoon should do.

  35. Nate says:

    Also, Joomla sucks balls and is a totally ridiculous concept. Had you suggested MODx, then you might have looked less foolish. This WordPress as CMS is a much better solution than Joomla for just about 90% of the clients out there… unless you like teaching and re-teaching Joomla every day of your life… and working around the most irritating “push-button” modules and styling way overly-complicated templates which still use far too many tables. Duh.

  36. Mads says:

    Really easy set up. Thanx alot!

  37. germaine says:

    Very neat explanation… Thank you! Now i’m trying it out, and i have to put the design that has been done for my client by changing the templates. Should be easy… right? ;)

  38. zedlafor says:

    Is it that easy?! Well – sure I’m going to try it. I thought there were more code implementing or so…cant wait t try this 5 simple steps. ;)

  39. Great tips – a demo would be nice. A video – perfect.

  40. Brian Bailey says:

    I’m starting to compile resources and lessons I’ve learned while building two CMS sites with Wordpress.

    My site is: WordpressIntoCMS.com

  41. Zarek says:

    Good done!Is there anybody Use it in version 2.7??

  42. Followed all the simple steps. It worked like a charm on 2.7.1!

  43. Ken says:

    Nice guide, very useful and easy to follow, thanks for sharing it.

  44. jude says:

    Hi Martijn, I think you were inviting comments on your footer??- it looks great. How were you able to achieve it? Many thanks for the cms tutorial.

Post a comment

Your e-mail is never shared, required fields marked with *

Subscribe to this posts comments RSS feed