Display list of wordpress pages in two columns
November 28, 2009
Usually in WordPress, the following code is used to call the pages list (you can find it in one of the sidebar files): <?php wp_list_pages(); ?> Normally when the list of pages is displayed in the sidebar or on any part of the theme, it displays in a single column. Through the following hack, you can split your pages list evenly into two or more columns which can save space and not make your pages longer. Now, we will try and split the pages into two columns. Simply paste the following code where you’d like your... [Read the full story]
Display list of wordpress categories in two columns
May 21, 2009
Usually in WordPress, the following code is used to call the categories list (you can find it in one of the sidebar files): <?php wp_list_categories(); ?> Normally when the list of categories is displayed in the sidebar or on any part of the theme, it displays in a single column. Through the following hack, you can split your categories list evenly into two or more columns which can save space and not make your pages longer. Now, we will try and split the categories into two columns. Simply paste the following code... [Read the full story]
Use the WordPress 2.7 way to list your pages
November 21, 2008
Wordpress 2.7 will contain a bunch of new functions, as for exemple the wp_page_menu() function. Here’s how to use this new function to create stunning page menus. Prior to WordPress 2.7, we had to use the wp_list_pages() function to get an unordered list of our pages. The main problem was probably that this function can’t handle a link back to your homepage. We had to ad this link manually. This is done without any manual editing with the new wp_page_menu() function: Just add the show_home=Home parameter. Also, another... [Read the full story]
List all wordpress posts on a page
November 20, 2008
How we can create a table of content for his WordPress blog? Here’s a simple code which can also be used to create an archive page. To achieve this recipe, you first need to create a page template. First, on this page template, paste the following code; Then, login to your WordPress dashboard, write a new page and select this page as a template. <?php /* Template Name: All posts */ ?> <?php $debut = 0; //The first article to be displayed ?> <?php while(have_posts()) : the_post(); ?> <h2><?php... [Read the full story]



















