WordPress.org

Ready to get started?Download WordPress

Forums

List category posts
[resolved] Excerpts Losing Formatting (23 posts)

  1. soulofmiami
    Member
    Posted 1 year ago #

    Using theme Atahualpa. I have set the theme options to NOT strip certain HTML tags from excerpts, such as p a em strong. But, when I use [catlist excerpt=yes] it strips all formatting from the excerpt. In previous versions, it did not do this.

    By keeping the formatting, the Category lists created by this plugin look very nice and neat. By losing the formatting, the lists with excerpts just look bland and messy.

    Is there any way to fix this?

    Site is: http://www.soulofmiami.org. The Featured Events section on the stickied "Front Page" post should be neatly formatted like this:
    Date
    Location
    Address
    1 line description

    But, as you can see, it all runs together, making it difficult to read. I would love to see the formatting back, or an option to use the formmatting.

    Thanks for all your help!

    http://wordpress.org/extend/plugins/list-category-posts/

  2. picandocodigo
    Member
    Plugin Author

    Posted 1 year ago #

    I'll check a way not to overwrite the theme's filter for html tags in a future version.

  3. soulofmiami
    Member
    Posted 1 year ago #

    Thank you so much! It used to not do this, I'm not sure why it is now.

  4. jt70
    Member
    Posted 1 year ago #

    I have what I think is the same problem.

    Just updated to .28 (can't recall from which previous version), and my excerpts are functioning differently now.

    I had been using he excerpt=yes parameter with no excerpt size parameter, and it used to display the complete excerpt with all of its HTML formatting. Now it just displays the text with all the tags stripped out.

    To be clear, I use manual excerpts. The text in the lists comes from the manual excerpt box, not from the post itself. They excerpts still show up in RSS feeds as designed, though.

    Thanks, by the way, for a great plugin.

  5. jt70
    Member
    Posted 1 year ago #

    Just curious if this is a systemic problem or something that is unique to me. Is anyone else having the html stripped out of manual excerpts (the excerpt box on the post page)?

    Because 2 new releases have come out since soulofmiami brought this up, I am wondering if it is an isolated issue related to conflicts or my theme (I've got a mish-mash custom theme going now). I just don't want to spend the time diving into troubleshooting if the problem is inside the plugin.

    Any information would be much appreciated.

    Thanks!

  6. picandocodigo
    Member
    Plugin Author

    Posted 1 year ago #

    Just a quick heads up that I'll look into this, and in any case get a bugfix version out.

  7. jt70
    Member
    Posted 1 year ago #

    Thanks a lot. I appreciate the response.

  8. alixmaryo
    Member
    Posted 1 year ago #

    Hi there,

    Has there been any progress on this? I'm experiencing the same problem. The html is always stripped from the excerpt even if you set it to not strip markup.

    Thank you so much for the plugin.

    Mary

  9. phew72
    Member
    Posted 1 year ago #

    Bump

    I love this excellent plugin but I too would like a way to retain the formatting in the excerpt.

    Thanks and cheers, PH

  10. jt70
    Member
    Posted 1 year ago #

    Hi Picandocodigo,

    Is there any chance you can let us know what the status of this issue is? I hate bugging people who are kind enough to do great plugins for free, but if this is going to be a long time or it is not something you think you'll be able to fix, I'll have to find an alternative for my site. Just an indication of when/if you will be able to get to this would be extremely helpful.

    Thanks again.
    Jeff

    **********
    To Other users:
    Has anyone started shopping around for alternatives to be able to list the excerpts with formatting intact? If so, would you mind sharing them? I did a cursory look, and nothing jumped out at me. I suspect it will require coding, which should be fun with my limited skills.

  11. picandocodigo
    Member
    Plugin Author

    Posted 1 year ago #

    This has been fixed on version 0.30 of the plugin. By default, tags are not stripped. If you want to strip them, you must use the excerpt_strip parameter:

    [catlist name=blog excerpt=yes excerpt_strip=yes]

    Check it out and let me know how it works :)

  12. jt70
    Member
    Posted 1 year ago #

    Uh oh....

    I think something broke on my site. Not sure if it is with the plugin or with how I do my formatting, but the lists cascade off to the right.

    It works nice with the posts I don't have something loaded in the manual excerpts box. I suspect it has something to do with the tables/divs in my html.

    Thanks for trying.

  13. jt70
    Member
    Posted 1 year ago #

    By the way, do you have .29 loaded in the repository? I couldn't find it. I need to roll back the plugin.

  14. picandocodigo
    Member
    Plugin Author

    Posted 1 year ago #

    What code are you using? Maybe remove styles or try the excerpt_strip param and see how it looks?

  15. jt70
    Member
    Posted 1 year ago #

    Sorry, I already rolled it back to an earlier version so won;t be able to test right away.

    The catlist calls up a combination of manual and automatic excerpts. The formatting of the automatic is cleaner than in the past. The excerpt is on a new line and the title is on its own line.

    I use tables with a designated width to fit into the div on the template.I am wondering if the problem is that it is truncating the text and never closing out the tags in the excerpt. That would explain the formatting issues. I may have to go track down all my lists and then add in the excerpt_size = 1000 to fix the problem.

    I'll let you know if that fixes things.

  16. jt70
    Member
    Posted 1 year ago #

    OK, I was too curious not to test this out, so I reinstalled the .30 version.

    Yes, it looks like with a higher excerpt_size (set to 1000), it work for the formatting. Unfortunately, that also raises the excerpt size for the automatic excerpts.

    As is, this version will work great for a completely automatic list, or a completely manual list, but with a mixture of the two, it creates a problem. It will either truncate the manual excerpt and leave tags open, or it will create excessively long excerpts.

    It seems like the functionality it needs is to always pull the entire manual excerpt, but trim the automatic excerpts to either the default or the excerpt_size.

    Thanks for working on this.

  17. picandocodigo
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry I changed the code once again. I kept the HTML tags stripped since that used to be the default behaviour:

    excerpt - Display the post's excerpt. Default is 'no', use excerpt=yes to activate it. If you don't have an excerpt in your post, the plugin will fetch this text from the content, striping its images, shortcodes and HTML tags. The limit is set by the *excerpt_size* parameter (55 words by default). If you want the automatically generated excerpt to respect your theme's allowed HTML tags, you should use excerpt_strip=no. If the post has an excerpt, the HTML tags are automatically stripped. If you want to overwrite the post's excerpt with an automatically generated one (may be usefull to allow HTML tags), use excerpt_overwrite=yes. I added this last parameter to have consistency across excerpts.

  18. picandocodigo
    Member
    Plugin Author

    Posted 1 year ago #

    With this new parameter: excerpt_overwrite, you can get all automatically generated excerpts. Hope this helps!

  19. jt70
    Member
    Posted 1 year ago #

    Hi picandocodigo,

    Thanks for the changes. It makes the plugin good for my needs again.

    What I like about this is that it won't automatically use the HTML without permission. On the legacy catlist command, it will display the manual excepts as text without breaking the layout of the page.

    The challenges...
    1. It does make it a manual chore to go back and update all my lists. Again, though, the layout stays intact, so it is a surmountable problem.
    2. I probably still can't make a hybrid list, but on the bright side, I can leave the listings with both types of excerpts alone until I have 100% manual excerpts entered. And the failure mode would just be a long excerpt left in the listing, so nothing major.

    Thanks for getting this taken care of. Much appreciated.

  20. picandocodigo
    Member
    Plugin Author

    Posted 1 year ago #

    Yep, after releasing the 0.30 version I realized it was wrong to use the HTML so I inverted the functionality so that you ask it specifically to use the HTML.

    Glad it worked out in the end!

  21. phew72
    Member
    Posted 1 year ago #

    The update works perfectly. Many thanks once again Picandocodigo, I've just left a glowing review of your plugin.

  22. josuch
    Member
    Posted 1 year ago #

    Hi I am using the mantra theme and I just updated this plug-in. http://arewecrazyorwhat.net/ I had this plug-in set to display excerpts and it was working great but now (after the update) when the excerpt box is checked it displays the pictures from the various pages. I would really like it back the way it was. I do not have the thumbnail box checked. Are there any fixes for this?

  23. Sogwap
    Member
    Posted 1 year ago #

    Is there any way to get the plug-in to act like default WP.
    http://codex.wordpress.org/Excerpt

    How to add excerpts to posts

    To add an excerpt to a post, simply write one in the Excerpt field under the post edit box. An excerpt can be as short or as long as you wish. Usually, given its purpose, a couple of sentences is fine. If adding the excerpt manually, you may use (some) HTML formatting and the tags will not be stripped.

    Excerpt, automatic excerpt, and teaser

    The manual WordPress excerpt is often confused with the automatic excerpt or with the teaser (the part of a post that appears on the front page when you use the More tag). While both are related to the manual excerpt, they are different from it.

    The relationship between the three is this: When a post has no manual excerpt and the post template uses the the_excerpt() template tag, WordPress generates an excerpt automatically by selecting the first 55 words of the post. When the post template uses the the_content() template tag, WordPress will look for the More tag and create a teaser from the content that precedes the More tag.

    To summarize:
    If using content=yes, WordPress (and Catlist) default behavior displays everything in the content area, preserving HTML formatting. The only exception would be if <!--more--> tag is used.

    If using Excerpts, WordPress default behavior, is to first check if there is a custom excerpt if so, display it and preserve (some) HTML tags. If there is no excerpt it pulls from content stripping HTML tags. Unfortunately this is not what Catlist Version 0.30.3 does. :(

    It seems the plugin Version 0.30.3 either keeps the HTML tags or strips them. Where-as the default WordPress Excerpt behavior, keeps certain HTML tags in the Excepts and if there is no excerpt it takes the content but strips HTML tags.

    The problem with this is that if their is no excerpt and you ask to keep HTML tags it displays images etc.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic