Neither the_excerpt() nor the_content() works properly?

Your requirements slant towards using the_excerpt() with adding read more link by custom code:

  • print 55 words – already this by default and adjustable via excerpt_length filter

  • but react to <!--more--> – this already happens, auto-generated excerpt cannot be longer than teaser (part from start of post to <!--more--> tag)

  • and if manual excerpt is specified, use this instead – already works like this

  • produce optional “Read more…” link this is one thing excerpt doesn’t do natively. Can be added via:

    • excerpt_more filter, note it is only used if post was cut
    • get_the_excerpt or the_excerpt to append to any excerpt
    • in template, separately for excerpt template tag call

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)