Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm currently creating a new theme for my blog and I intend to make it in a magazine style manner.

So, to clarify the question in the title: what I want to do is to create a text assigned to the post, but not displayed in the post itself. Lets say that the user Tom writes a review of the movie Black Swan - what I want to be able to do is summarize that review in a sentence or two - and use that text as an "excerpt" on the front page.

Any ideas? It's probably a lot harder than I think it is.

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

It's not. I believe when you go to make a post, there's a box just below it that says "Excerpt" Whatever you put in that box will only show up as the excerpt.

I tested it out and it works. You can view it on the website i'm currently developing here: http://www.kirschfamilycomputerservices.com/sam/wheresthefairness/

The first post. Note how the excerpt is different from the post itself!

Also, if you want to run it in a loop instead of making a post I think there's a way to do that, too. check here: http://codex.wordpress.org/Excerpt

Good luck and hope this helped.

share|improve this answer
    
Thank you!!!!!! –  Mats Jan 19 '11 at 17:57
add comment

there is a field named Excerpt on the post edit page where you can enter your summary and to display make sure you use different template tags.

on the front page use

   <?php the_excerpt(); ?>

and on the post page use

<?php the_content() ;?>

this way you display two different things.

share|improve this answer
    
Thank you!!!!!! –  Mats Jan 19 '11 at 17:57
add comment

Your Answer

 
discard

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