WordPress.org

Ready to get started?Download WordPress

Forums

How do I find the permalink for post excerpts? (2 posts)

  1. hughmacken
    Member
    Posted 2 years ago #

    How do I find the permalink for post excerpts? Is there a permalink? I'd like to post a link to excerpts of my blog posts on twitter rather than a link to the full post, which I want to restrict to registered users only.

  2. theApe
    Member
    Posted 2 years ago #

    This might help as an alternative option.

    <?php
    if ( is_user_logged_in() ) {
        the_content();
    } else {
        the_excerpt();
    }
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags