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.

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
add comment

1 Answer

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.

query_posts(
    array(
        'post_status' => array(
            'published',
            'private'
        )
    )
);

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
show 1 more comment

Your Answer

 
discard

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.