Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter rivistaro

    (@rivistaro)

    Ok, I found “excerpt_length” parameter 😉

    But there is another problem unfortunatly… now I don’t have any text formatting of excerpt 🙁

    Practically erases all formatting as “<p>, …”
    how to get back the text formatting?

    Thank you!!

    Thread Starter rivistaro

    (@rivistaro)

    < p >, < em >, etc.

    Plugin Author Bill Erickson

    (@billerickson)

    Excerpts strip out all formatting by design. If you want to show formatting and the full content of your post, use [display-posts include_content=”true”]

    Thread Starter rivistaro

    (@rivistaro)

    Hi Bill, thank you very much or your support!

    Unfortunatly “include_content” show me full content of post; I need only excerpt.

    Before upgrade “include_excerpt” showed me the format of the summary; there is no way to restore the display of text formatting?

    Thank you!

    Plugin Author Bill Erickson

    (@billerickson)

    No versions of this plugin support HTML in the excerpt, since WordPress does not support HTML in excerpts.

    You must have installed a plugin that modified how WordPress handled excerpts. Now that Display Posts Shortcode lets users specify the excerpt length and more text, your code is no longer applying.

    If you want the excerpt with HTML formatting, I recommend you do it the WordPress way by adding a <!–more–> tag into the post content, then using [display-posts include_content=”true”]

    Alternatively you can use the output filter to modify what the shortcode outputs. Here’s an example: http://www.billerickson.net/code/add-read-more-to-display-posts-shortcode/

    Thread Starter rivistaro

    (@rivistaro)

    Hi Bill, thank you very much for your reply.
    I don’t have any plugin that modified how WP or your plugin handled excerpts.

    I assure you that before you upgrade the plugin everything worked perfectly.
    Anyway, I’ll try to modify what the shortcode outputs following your instructions.
    Otherwise it is possible to come back to old version of plugin?

    Thank you!

    Plugin Author Bill Erickson

    (@billerickson)

    You can download the old version here: https://downloads.wordpress.org/plugin/display-posts-shortcode.2.5.1.zip

    If you do decide to use the old version, I recommend you edit the display-posts-shortcode.php file and change the Version number at the top of the file to something high like 99 (link: https://github.com/billerickson/display-posts-shortcode/blob/master/display-posts-shortcode.php#L6 ). That way you won’t be prompted for updates.

    Plugin Author Bill Erickson

    (@billerickson)

    Could you do me a big favor? Since multiple people have reported this issue I’ve changed how this works. But before I push it out as an update, I want to make sure it works for those having issues.

    The themes I’ve been testing on haven’t had issues with this latest change so it’s difficult to know if this fix will work for you.

    Download this version of the plugin and let me know if your shortcodes work the way you expected: https://github.com/billerickson/display-posts-shortcode/archive/fix-excerpts.zip

    Once you’ve confirmed it works properly, try adding excerpt_length="5" excerpt_more=" Custom More Text" to the shortcode to make sure those parameters still work.

    Thread Starter rivistaro

    (@rivistaro)

    Hi Bill!
    I tried the new version and now it works perfectly! 🙂

    Unfortunatly parameters excerpt_length and excerpt_more doesn’t work.

    Let me know if I have to do other testing.

    Thank you!

    Plugin Author Bill Erickson

    (@billerickson)

    Can you email me a copy of your theme so that I can test with it? My email is bill.erickson@gmail.com. Also, can you take a screenshot of your plugins list so I can install all the same plugins you have?

    All the themes I’m testing with don’t have issues, so I’m wondering if it’s something unique to the way your theme handles excerpts, or if it’s a common issue that simply isn’t present in all the twenty* themes and Genesis (the themes I’m testing on).

    Plugin Author Bill Erickson

    (@billerickson)

    More information regarding this change can be found here: https://github.com/billerickson/display-posts-shortcode/issues/110

    Please read through that and let me know if you like how the new features are implemented. I want to make sure these new parameters are implemented the way most users expect them to work because once they start being used I won’t want to change their default behavior.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘With new update: don't work fine "include_excerpt"’ is closed to new replies.