• Home
    • Privacy Policy
    • Contact
  • How to
  • Tips
  • Android
  • WordPress
  • Blogger Tips & Tricks
  • Google
  • Facebook
  • Genesis Tutorials

A New Tab

featured image not showing in categories : Twentyten wordpress theme



Featured image is one of the good looking feature introduced in wordpress3.0. In TwentyTen by default featured image will not display in category loops, where as they will display properly in the front page. This is because the archives are using ‘the_excerpt()’ to show a short part of the post; while the front page is using ‘the_content()’. If we want to have featured image in category loops we need to modify some part of the code.

1. Go to Dashboard
2. Go to Appearances
3. Click Editor
4. Open loop.php file
5. Search the following lines

<?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?>

6. Replace the above code with below code

<?php if ( is_search() ) : // Display excerpts for search. ?>

This will occur in two places, replace both of them and save !!



You might also like

  1. Featured image not showing up on twentyten wordpress theme ?
  2. How to change the size of Featured Image in Genesis Framework
  3. How to disable right click in wordpress without any plugin
  4. Add logo to twentyten wordpress theme
  5. How to add logo and banner in twentyten wordpress theme header
  6. How to change menu color in wordpress twentyten theme
  7. Why I love wordpress twentyten theme : Review
Filed Under: How to, Tips, Wordpress Tagged With: Twenty Ten Wordpress Theme

Comments

  1. maitha says:
    05/11/2011 at 10:36 am

    Thanks for the information, this really helped me to show images in categories in my photography blog.

    Reply

Speak Your Mind Cancel reply

*

*

Recent Articles

  • FaceBook introduced Graph Search Friends, Photos : What is it ?
  • How to terminate the account in WHM cPanel
  • How to create a new account in WHM cPanel
  • Unlock Pattern Lock Android tablet-Phone
  • Find Android Version and Update your Samsung Galaxy Tab Automatically
  • Find IMEI Number of your Samsung Galaxy Tab
  • Clean and Speed up chrome with one click

Return to top of page

Copyright © 2013 · Genesis Sample Theme on Genesis Framework · WordPress · Log in