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.


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.

| improve this answer | |
  • 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
  • @JimmyJack - your fix for an issue like this should definitely not involve removing the loop. Open up a new question regarding the redirect issue and post your code for the template so folks can take a look and give you some help. – tollmanz Jul 11 '11 at 5:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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