Twenty Ten and Featured Content Gallery

How to integrate the Featured Content Gallery plugin with the Twenty Ten theme from Word Press.

Activate the Twenty Ten theme in your blog.

Download, install, and activate the featured content gallery plugin. Add 2 featured items by following the plugin instructions.

Open the file header.php located inside the TwentyTen theme.

Look around line 77 to remove the default header image code for TwentyTen.

<img src="&lt;?php header_image(); ?&gt;" alt="" width="&lt;?php echo HEADER_IMAGE_WIDTH; ?&gt;" height="&lt;?php echo HEADER_IMAGE_HEIGHT; ?&gt;" />

Then go down a few lines and look for:

Then place the featured content gallery code right below that:

<!--?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?-->

It really works nice, with the navigation just below the featured content gallery.

Remember: The featured content gallery needs at least 2 featured items to work. So if you are seeing a blank spot, add 2 featured items.

This works with both TwentyTen 1.0 and 1.1 theme versions.


  1. manish says

    What is ABSPATH ? can you please describe me? I am working on localhost and this plugin is not working can you help me sir?

    • says

      ABSPATH is nothing you need to change, paste the code in exactly as shown. This is the code for the Featured Content Gallery.

    • says

      google it! ; ] its’ nice to learn the difference between absolute and relative path.

      btw. i needed this one now, suit my needs better than $_SERVER{‘DOCUMENT_ROOT’} – thank you :)