Skip to content


WordPress: Home alone

I was looking for a piece of code that would allow me to perform a certain action on a WordPress blog’s home page (and only the home page) and thanks to this site, I have it.


< ?php if ( (is_home())&&!(is_paged()) ){ ?>


blah blah blah


< ?php } ?>

For example, if I wanted my Flickr thumbnails to be displayed (via the FlickrRSS plugin) only on the home page, I’d use the following code in my theme’s home.php file:


< ?php if ( (is_home())&&!(is_paged()) ){ ?>


< ?php get_flickrRSS(); ?>


< ?php } ?>

You can see the above example in action here.

Posted in WordPress.