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

Thank you in advanced. I know there are plugins that can do this, but I am looking for a simple solution for my function file. I would like to display the excerpt for all posts with the more tag for public visitors, even for private posts.

share|improve this question
up vote 0 down vote accepted

I've not tested this, but you should be able to complete this task by placing the following code in your template above the loop.

        'post_status' => array(

This should allow for published and private posts to be displayed in that template.

share|improve this answer
Yes, it worked thank you. – JimmyJack Jul 11 '11 at 4:14
Glad it worked! It's customary to mark an answer as accepted if it fixed the problem! Hope to see you around here some more. – tollmanz Jul 11 '11 at 4:21
Leads me to two more problems. Redirects to error if clicked on the <more>, and my loop with <endwhile: else> and <endif> had to be removed. Thank You again. – JimmyJack Jul 11 '11 at 4:21
Write these as new questions and you might want to expand on the explanations. – tollmanz Jul 11 '11 at 4:22
Sorry, I don't see where to mark answer as accepted. – JimmyJack Jul 11 '11 at 4:32

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.