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.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.