If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

How to optimize WP 2.1 for WP 2.0.x

get_links_list() function has been changed to wp_list_bookmarks()

wp_list_bookmarks() is used for the links output from the bookmarks menu ( displays bookmarks found in the Bookmarks Management screen) and it’s not supported by the previous WP versions. Currently this function works only with Netscape and Mozilla but WP developers promise to make it cross-platform in the very near future.

If you want to convert the 2.1 version to the 2.0.x, you need to follow the instructions below:

1. If you’re not planning to use widgets in this theme you should:

 1.1 open sidebar.php file in your folder with the theme

      a) change the  wp_list_bookmarks() for the get_links_list();

      b) replace <?php wp_list_categories(‘show_count=1&title_li=0’); ?> with <?php wp_list_cats(‘sort_column=name&optioncount=1&hierarchical=0’); ?>

  1.2 open header.php in your folder with the theme and delete <?php language_attributes(); ?>

  1.3 open searchform.php in your folder with the theme and delete <?php the_search_query(); ?>


2. If you’re planning to use widgets in your theme you should:

  2.1 open header.php in your folder with the theme and delete <?php language_attributes(); ?>

  2.2 open searchform.php in your folder with the theme and delete <?php the_search_query(); ?>

  2.3 open functions.php file and change the wp_list_bookmarks() for get_links_list();