Unfortunately a growing trend- this blog has been neglected (I will try and get back on top of things eventually!). But here’s the most recent reason why…

I am now the proud owner of a new photo blog http://www.photobotos.com

The site was previously run by two brothers Charlie and Tom. Each day bringing a new photo (for everyone) along with a description for those of us curious as to how the picture was captured.

The blog used WordPress, the same as this one https://tickett.wordpress.com, but unlike this one it is not hosted at WordPress.com which gives a much greater ability to customise. Fortunately my background made it quite simple to dive in and start making some of the changes I hoped would enhance the site:

Random Photos

  • Create a category called random (don’t attach any photos as they won’t be browsable)
  • Modify your theme’s archive.php

Add this above if (have_posts()):

$special_random = false;
if(is_category('random')) {
$special_random = true;
query_posts( array( 'posts_per_page' => 5, 'orderby' => 'rand' ) );
}

Then modify the next_posts_link code (clicking it on the random page would fail… you just need to refresh the page to see more random posts):

<?php 
if(!$special_random) {
next_posts_link( __( '« Older Entries', 'andrea' ) ); 
}
?>
  • Install and activate the plugin page links to
  • Create a page and select “page links to” at the bottom and point to your category page (something like http://yourblogurl/random)- this will add the random photos link to your navigation menu

Thumbnails on Search / Category / Tag pages

  • Modify your theme’s search.php
<div id="post-<?php the_ID(); ?>" <?php post_class( 'entry-content' ); ?>>
<a href="<?php the_permalink(); ?>" rel="bookmark">
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail( 'photo_thumbnail', 'class=photo_thumb' );
} else {
// the current post lacks a thumbnail
}
?>
</a>
<?php the_excerpt( __( 'Read the rest of this entry &raquo;', 'andrea' ) ); ?>
</div>

Here’s a few of the latest images:

Church of the Good Shepard

The Walkers

I suggest you check it out :)

L