WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

possibly a simple thing to do but I'm not sure how it's done - I want to remove the permalink from a post thumb, in the default twentyeleven theme. Looked through content.php and the other templates and I can't see where to do this - is this something which should be handled as a custom filter in functions.php?

share|improve this question
You're to have to be more specific about where you want to remove the permalink. In the showcase template? Archive page? Single post pages? Post thumbnails are used in several places on that theme. – chrisguitarguy Nov 16 '12 at 3:02

No idea, never used twenty eleven theme. I opened the theme files. Check out showcase.php around Line 104-118.

Should be on line 115 - just remove the anchor wrapping the post thumb,

<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_post_thumbnail( $thumbnail_size ); ?></a>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.