Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>Short answer:</strong> Advanced Excerpt allows you to use their <code>the_advanced_excerpt()</code> function with certain parameters, including the ability to strip any html tags (img included), so try this instead of <code>the_excerpt()</code> :</p> <pre><code>the_advanced_excerpt('exclude_tags=img'); </code></pre> <p><strong>Long answer:</strong> A lot of missing info in your question: are you entering text into the manual excerpt field in the post edit, or are you depending on Advanced Excerpt to automatically take the first 55 characters (the wordpress default) of the post as the excerpt? If no manual excerpt is specificed the_excerpt() will automatically grab the first 55 characters and strip any html tags or graphics</p> <p>source: <a href="http://codex.wordpress.org/Template_Tags/the_excerpt" rel="noreferrer">http://codex.wordpress.org/Template_Tags/the_excerpt</a></p> <p>In either case, are you placing an image in the first 55 characters of your posts? </p> <p>"Can I manually call the filter in my WP templates, for example? The plugin automatically hooks on <code>the_excerpt()</code> function and uses the parameters specified in the options panel.</p> <p>If you want to call the filter with different options, you can use <code>the_advanced_excerpt()</code> template tag provided by this plugin. This tag accepts query-string-style parameters (theme developers will be familiar with this notation).</p> <p>The following parameters can be set:</p> <p><code>length</code>, an integer that determines the length of the excerpt</p> <p><code>use_words</code>, if set to 1, the excerpt length will be in words; if set to 0, characters will be used for the count</p> <p><code>no_custom</code>, if set to 1, an excerpt will be generated even if the post has a custom excerpt; if set to 0, the custom excerpt will be used</p> <p><code>no_shortcode</code>, if set to 1, shortcodes are removed from the excerpt; if set to 0, shortcodes will be parsed</p> <p><code>ellipsis</code>, the string that will substitute the omitted part of the post; if you want to use HTML entities in the string, use %26 instead of the &amp; prefix to avoid breaking the query</p> <p><code>read_more</code>, the text used in the read-more link</p> <p><code>add_link</code>, if set to 1, the read-more link will be appended; if 0, no link will be added</p> <p><code>allowed_tags</code>, a comma-separated list of HTML tags that are allowed in the excerpt. Entering <code>_all</code> will preserve all tags.</p> <p><code>exclude_tags</code>, a comma-separated list of HTML tags that must be removed from the excerpt. Using this setting in combination with allowed_tags makes no sense"</p> <p>source: <a href="http://wordpress.org/extend/plugins/advanced-excerpt/faq/" rel="noreferrer">http://wordpress.org/extend/plugins/advanced-excerpt/faq/</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload