2009 June | Poiesis Web Development

Archive for June, 2009

WordPressWe’ve recently upgraded our WordPress installation to WordPress 2.8 and realized just why I hate upgrading WordPress! On the 2.7.1 version the NEXT POSTS / PREVIOUS POSTS link at the bottom of the page worked perfectly, but after the upgrade it pointed erroneously to http://www.poiesis.co.za/index.php/Index.php/page/2/. I’m sure you can see the problem there: the double index.php in the URL! The solution to the problem is simple: open the formatting.php in wp-includes and add the following line in the function clean_url after the if ('' == $url) return $url; statement:

$url = str_replace('index.php/Index.php','index.php',$url);

Continue reading “Double index.php problem” »

Tags: ,

WordPressWe’ve received a few queries about the next/previous link in our WordPress themes from people wanting to know how to implement it in their themes. Well, the answer is simply insert the posts_nav_link() template tag into the php files of your theme that has the if ( have_posts() ) : while ( have_posts() ) loop. These files include index.php and archive.php. When you use the posts_nav_link() tag the next/previous links are generated automatically when required. However, the tag only works for pages of posts.

Continue reading “Next-Previous link not showing?” »

Tags: ,