WordPress.org

Ready to get started?Download WordPress

Forums

Using the button to show/hide content for registered users (2 posts)

  1. Kenny
    Member
    Posted 2 years ago #

    On a single post (single.php), I'd like to show what's below the <--More--> tag to registered users only, and not to unregistered users. I've been searching for way too long and I can't find a solution.

    All of the codex entries say the_excerpt isn't available on single posts, but it seems like there's got to be a way around that. I have full access to customize the template's php as much as needed.

    Or a different approach with the_content?

    Is there a genius out there?

  2. Ervald
    Member
    Posted 2 years ago #

    Getting the excerpt:
    $post->post_excerpt

Topic Closed

This topic has been closed to new replies.

About this Topic