We’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: double index.php, posts_nav_link
We’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: posts_nav_link, the loop
Our First WordPress Theme
Our first WordPress theme, which we’re calling the Simply Smart, is coming along nicely. It’s a dark red, two-column theme with a fixed width of 1024 pixels designed for an automotive weblogs and is sponsored by custom-car.us. It uses a solid background, with an automotive image in the header (of a Smart Car Roadster, hence the “Smart” bit in the name), and a simple (hence the “Simple” bit in the name) two-column layout with a widget-ready side column on the right. It also supports an Author’s Archive page, which is ideal for blogs with multiple authors, like this blog (I guess we’ll be implementing it here too then).
Continue reading “Simply Smart” »
Tags: automotive themes, dark themes