• Hi, I’m using UPW in one of my widget areas and despite not choosing to display an excerpt, the rest of my excerpts being displayed on the site are being trimmed? It seems to be due to the setting that is configured in the Widget, and I can only assume that there is some logic that isn’t working (testing to see if the option has been checked or not) and that you must be adding some filters to manipulate the results.

    It might be necessary to use the if(!is_main_query()) conditional in the excerpt filters you’re using, or, instead of using the filters (like excerpt_length()), you could try opting to use the more “Manual” approach of wp_trim_words() – https://codex.www.ads-software.com/Function_Reference/wp_trim_words – using the result of get_the_excerpt() in the function and then you can trim it to whatever has been configured. This way it shouldn’t mess with the rest of the excerpts on the site.

    They are just a few ideas but I’m by no means a plugin developer, so these may not be helpful at all.

    Good luck and thanks for your work thus far!

    https://www.ads-software.com/plugins/ultimate-posts-widget/

  • The topic ‘'Excerpt Length' messing with my content outside the Widget!’ is closed to new replies.