Tag Archive for ‘wordpress’

18 Dec 2010

WordPress: Better previous and next post links

To be used on single post, the snippet below will not output unnecessary markup if there’s: only 1 published post. no post that is adjacent (previous or next) to current post. <?php php if ( get_adjacent_post( false, ”, false ) || get_adjacent_post( false, ”, true ) ) : ?> <div class=”navigation”> <?php previous_post_link( ‘<div class=”nav-previous”>%link</div>’, [...]

11 May 2010

Force WordPress network to use sub-directories

In WordPress 3.0, we have the ability to create a network of sites. But if your install is over 1 month old, the sites in your WordPress network must use sub-domains because of permalink problems with “/blog/” from the main site. This is how you can force the sites in your WordPress network to use [...]