• MindReality

    (@mindreality)


    Is there a wordpress plugin that can set my posts to display the first few sentences as an excerpt, and then display the full posts only when a user logs in?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Kafkaesqui

    (@kafkaesqui)

    No need for a plugin, as the coding is trivial. Replace the_content() template tag in your templates with this:

    <?php global $user_identity;
    if ($user_identity) {
    	the_content();
    } else {
    	the_excerpt();
    } ?>
    Thread Starter MindReality

    (@mindreality)

    Hi,

    This is bringing me closer to what I’m looking for.

    Where can I go to edit the excerpt length?

    Is it possible for me to select certain posts and pages to display full view to all users instead?

    Thanks for the help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is there such a plugin?’ is closed to new replies.