PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Post Excerpts

s2Member Plugin. A Membership plugin for WordPress®.

Post Excerpts

Postby keithb » November 17th, 2010, 11:31 pm

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
User avatar
keithb
Registered User
Registered User
 
Posts: 2
Joined: November 15, 2010

Re: Post Excerpts

Postby crushthenet » November 17th, 2010, 11:45 pm

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.
User avatar
crushthenet
Registered User
Registered User
 
Posts: 63
Joined: November 1, 2010

Re: Post Excerpts

Postby keithb » November 18th, 2010, 1:12 am

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
User avatar
keithb
Registered User
Registered User
 
Posts: 2
Joined: November 15, 2010

Re: Post Excerpts

Postby crushthenet » November 18th, 2010, 9:44 am

Glad you figured it out, and thanks for posting it here!
User avatar
crushthenet
Registered User
Registered User
 
Posts: 63
Joined: November 1, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Yahoo [Bot] and 3 guests

cron