WordPress.org

Ready to get started?Download WordPress

Forums

Anarcho Notepad
Trouble with inserting excerpts to posts (2 posts)

  1. louisthomas93
    Member
    Posted 5 months ago #

    Hi there,

    Just having a spot of bother with adding excerpts to posts, to enable me to have the small summary and "read more" kinds of things.

    I've tried some of the general techniques, but to no avail. My posts are still being displayed in full. (www.livelovelouis.com is my site, if you would like to see what I mean)

    Is this function enabled on this theme? And if so, is there a specific way for it to be done?

    Kind regards,

    Louis

  2. Arthur Gareginyan
    Member
    Theme Author

    Posted 5 months ago #

    Hi, Louis!

    "Anarcho Notepad" uses the_content(), but not used the_excerpt().

    From Codex WordPress:

    Sometimes, it is more meaningful to use only the the_content() function which will decide what to display according to whether the <!--more--> quicktag was used. The <!--more--> quicktag splits a post into two parts; only the content before the tag should be displayed in listing.

    But you can manually change the file home.php or another for to use the_excerpt().
    To do this, you need to replace this:

    <?php the_content( __( 'Continue reading', 'anarcho-notepad' ) ); ?>

    to this:

    <?php the_excerpt(); ?>

    I advise you to make backup of files!

Reply

You must log in to post.

About this Theme

About this Topic