Posted by : Tom Doyle in (Web Design, Web Development) 7th Feb, 2008

Page navigation on Blix WordPress Theme

A lot of new users of WordPress will end up downloading ready made themes for WordPress to make it look a little bit different from the rest. One theme in particular has been going around for some time and is quite popular for a lot of WordPress users. The theme is called Blix

Since the release of WordPress 2.1, unfortunately the top navigation stopped working with WordPress. This meant that when you created a page from within the WordPress control panel, it wouldn’t appear on the top navigation. This in some cases rendered the skin useless.

So for all of you that would like their latest WordPress install to work with the Blix theme, here’s what you need to do:

1. Go to /wp-content/themes/blix

2. Open BX_functions.php

3. Look for:

function BX_get_pages($with_content = '')"
{
   global $wpdb;
   $query = "SELECT ID, post_title, post_name FROM " . $wpdb->posts . " WHERE post_status='static' ORDER BY menu_order ASC";
   if ($with_content == "with_content") {
      $query = "SELECT ID, post_title,post_name, post_content FROM " . $wpdb->posts . " WHERE post_status='static' ORDER BY menu_order ASC";
   }
   return $wpdb->get_results($query);
}

4. Change WHERE post_status=’static’ to WHERE post_type=’page’ - There are two instances of this, so make sure you change it in both places.

And voila… Your lovely Blix themed blog now works with your navigation too!

Share and Enjoy:
  • Digg
  • StumbleUpon
  • del.icio.us
  • Sphinn
  • Spurl
  • Technorati
  • Furl
  • Facebook
  • Mixx
  • Google
  • description
  • Fleck
  • LinkedIn
  • Slashdot
  • TailRank
  • TwitThis
  • NewsVine


Make a comment