Support » Theme: Anarcho Notepad » Trouble with inserting excerpts to posts

  • louisthomas93

    (@louisthomas93)


    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

Viewing 1 replies (of 1 total)
  • Theme Author Arthur Gareginyan

    (@arthur-gareginyan)

    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!

Viewing 1 replies (of 1 total)
  • The topic ‘Trouble with inserting excerpts to posts’ is closed to new replies.