Page 1 of 1

Post Excerpts

PostPosted: November 17th, 2010, 11:31 pm
by keithb
Is there a way to display the whole post when clicking on a category to display when logged in as a member instead of it only showing an excerpt? Am I missing something? I have it set to protect by category. I will be adding each download to my site as a post a few times a week, so I would rather not have it where a member has to click the title to view everything for each download.

Thanks,
Keith

Re: Post Excerpts

PostPosted: November 17th, 2010, 11:45 pm
by crushthenet
Okay, screwed up my first attempt at posting so let's try this again.

Your archive.php file in your themes folder should control this.

The code looks like this..
Code: Select all
<?php the_content(__('Read the rest of this entry &raquo;', 'smpl')); ?>


Info on how it works is in the codex, here......
http://codex.wordpress.org/Function_Reference/the_content

In the codex it says you need this in that file to display all........probably at the top of the file.
Code: Select all
<?php
global $more;    // Declare global $more (before the loop).
$more = 1;       // Set (inside the loop) to display all content, including text below more.
the_content();
?>


Not sure exactly what your code looks like so I can't give you a precise fix, but this should get you going in the right direction hopefully.

Re: Post Excerpts

PostPosted: November 18th, 2010, 1:12 am
by keithb
Thanks Cal. I'm using a version of the default Twenty Ten theme and found a post in the Wordpress forum at http://wordpress.org/support/topic/show-full-post-in-category-and-archive-with-twenty-ten and edited the loop.php file using:

Code: Select all
Try looking in loop.php. It's in the third (lowest) of the three Loops in that file.

<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>

Try changing it to:

<?php if ( is_search() ) : // Only display excerpts for search. ?>


and that seems to have done the trick.

Thanks!
Keith

Re: Post Excerpts

PostPosted: November 18th, 2010, 9:44 am
by crushthenet
Glad you figured it out, and thanks for posting it here!