WordPress is no more a blogging platform. People always tried to use it as CMS by applying their own techniques and ways. Wordpress kept on adding new feature in this direction in their releases. One of the most important addition to wordpress in this direction is Custom Post Types. One of the major requirement when using wordpress as a CMS. For example, say you are creating a Travel website listing restaurants & hotels. You would need 2 post types. Restaurant Hotel Ofcourse people used to do this by using categories and all. But that was not a good solution when developing for a client. Now you could add custom post type by adding this small piece of code to your functions.php file within your theme folder: //Add restaurant function post_type_restaurant() { register_post_type( 'restaurant', array( 'label' => __('Restaurant'), 'public' => true, 'show_ui' => true ) ); ...
Tips on everything you would ever need while hacking wordpress themes and plugins.