WordPress.org

Ready to get started?Download WordPress

Forums

Subscribe2
Short posts vs. excerpts (5 posts)

  1. yonat
    Member
    Posted 2 years ago #

    Is there a way to show a difference between a short post and an excerpt of a long post?
    So that the subscribers will not when they need to click the permalink in order to read the full post, and when this is unnecessary.

    http://wordpress.org/extend/plugins/subscribe2/

  2. mattyrob
    Member
    Plugin Contributor

    Posted 2 years ago #

    @yonat,

    If the plugin needs to make an excerpt of your post it adds '[...]' at the end of the text to indicate that it has been truncated.

  3. yonat
    Member
    Posted 2 years ago #

    Thanks, but the problem is that the "…" does not appear when there is a <!--more--> tag in the post. I would like to show "…" or something similar when there is more to read.

  4. mattyrob
    Member
    Plugin Contributor

    Posted 2 years ago #

    @yonat,

    You could only make this happen if you are using the HTML more tag by editing the code - are you comfortable making code changes? If so then look in the publish function for the area where the more tag is checked.

    You'll see these two lines:

    $excerpt = strip_tags($excerpt);
    $excerpt = trim($excerpt);

    Add this immediately after those two lines:
    $excerpt = $excerpt . "[...]";

    If you are not happy editing code you'll have to find another way to write your blog posts without using the more tag.

  5. yonat
    Member
    Posted 2 years ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags