Actually, I didn’t check it before, but the “read more” link is sending to the homepage and not to the page in question.
In case you need to see the page : http://www.jparnaud.fr, bottom left box.
Thanks
One more 🙂
Is it possible to keep the original text format (paragraphs, bold etc.)?
Thanks
You can modify the excerpt length and the “more” text by hooking into the appropriate WordPress filters in your theme.
For excerpt length:
https://codex.ww.wp.xz.cn/Plugin_API/Filter_Reference/excerpt_length
For excerpt more:
https://codex.ww.wp.xz.cn/Plugin_API/Filter_Reference/excerpt_more
By default WordPress strips formatting from excerpts. Here’s some discussion on alternatives:
http://wordpress.stackexchange.com/questions/141125/allow-html-in-excerpt
Thanks Paul!
However I would like to use the <!–more–> markup you can add in your page content as the excerpt length, not a fixed word number.
Is that possible?
I’m not good with writing functions, I was hoping for an option to change “read more” inside the shortcode… Same for the formatting.
Are you thinking of adding those options to your plugin?
🙂
Cheers
As far as I know, If you use <!–more–>, you should be able to bypass whatever excerpt length is set, and it will use the post content up until the <!–more–>.
https://codex.ww.wp.xz.cn/Customizing_the_Read_More
I probably won’t add features to modify the excerpt within this plugin. It’s possible that WordPress core will add that as a configurable option at some point under Settings > General.