Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter WPWanderer

    (@wpwanderer)

    On top of this I am wondering if there would be a way to add the standard “…” or something other that is used when using wordpress excerpts.

    Thanks

    Plugin Author Franky

    (@liedekef)

    See the doc:

    #_EXCERPT shows an excerpt of the event (this is the content of #_NOTES untill you place a <!––more––> marker)

    So add the <!––more––> where you want it, and add any number of dots after #_EXCERPT

    Thread Starter WPWanderer

    (@wpwanderer)

    Hi, thanks for your response.

    I actually mentioned the read more tag in my response. I was actually wondering if there was a way to automatically do it through your functions. I have made a format template. I may want to have different lengths of excerpts on different pages (in columns). I ask this because I have seen some devs do this by passing a character length value and I was wondering if I had missed it in your docs.

    Also, putting a “…” Behind the _excerpt has one problem as the excerpt is always wrapped in a p tag, so the dots always appear on a different line.

    Thanks again.

    Plugin Author Franky

    (@liedekef)

    Sorry, but no length-limit is possible here (would be troublesome as always: what to do with words etc …) but I’m always open for feature requests. Btw: wordpress doesn’t use character length for excerpts, but a word count (55 by default it seems). See https://codex.ww.wp.xz.cn/Function_Reference/the_excerpt

    Thread Starter WPWanderer

    (@wpwanderer)

    Thanks. Sorry, yeah a word count value would work and probably better.

    I also noticed that “the_excerpt” wraps it in p tags, where “get_the_excerpt” does not.

    Because I would like to append my excerpts with a “…” without the p tag breaking it I think something on the lines of “get_the excerpt” would be useful.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Character limit on _excerpt…’ is closed to new replies.