Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
$15
Advanced Excerpt Plugin not stripping tags
http://wordpress.org/extend/plugins/advanced-excerpt/
Very simple and straight forward implementation.
In the FAQ section it explains that you can remove all tags, and even specified tags. In my admin settings I've set it up so does not include any tags. See this screenshot.
Then on my theme files inside my loops, this is what I added in...
<?php the_advanced_excerpt('length=10&use_words=1&no_custom=1&ellipsis=%26hellip;&read_more=view page&add_link=1'); ?>
The above code was not excluding tags, so I tried this below by adding 'exclude tags'...
<?php the_advanced_excerpt('length=10&use_words=1&no_custom=1&ellipsis=%26hellip;&read_more=view page&add_link=1&exclude_tags=img,p,strong,br'); ?>
and it's still continues to add tags! <p> and <br /> are still appearing in my excerpt.
I thought at first this maybe because I was using wordpress 3.1 - but I've updated the latest update of wordpress of 3.3.1 and it still pulls in tags into my except.
Talk about baking my noodle! Has anyone used this plugin before or had any issues with it?
Can't find an answer anywhere :(
Thanks
This question has been answered.
Josh Cranwell | 01/09/12 at 7:15am
Edit
Previous versions of this question:
01/09/12 at 7:19am
(4) Possible Answers Submitted...
See a chronological view of answers?
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
-

Last edited:
01/09/12
7:21amJulio Potier says:Hello test this :
<?php the_advanced_excerpt('length=10&use_words=1&no_custom=1&ellipsis=%26hellip;&read_more=view page&add_link=1&exclude_tags[]=img&exclude_tags[]=p&exclude_tags[]=strong&exclude_tags[]=br'); ?>
See you soon- 01/09/12 7:27am
Josh Cranwell says:Hi Julio,
Tested you method, the except outputted ok still but still didnt remove any tags. The remove filter ideas below worked ok.
Thanks
- 01/09/12 7:27am
-

Last edited:
01/09/12
7:21amArnav Joy says:try adding this in your functions.php
remove_filter( 'the_excerpt', 'wpautop' );
- 01/09/12 7:30am
Josh Cranwell says:Bingo, this worked thanks
- 01/09/12 7:31am
Arnav Joy says:I am happy!!!
- 01/09/12 7:30am
-

Last edited:
01/09/12
7:22amManoj Raj says:This is the problem with the latest version 4.1.1 of advanced excerpt plugin and a small hack is provided by the plugin author(i think so).. It worked for me at least..
Add this to your functions.php
<?php
remove_all_filters('the_excerpt');- 01/09/12 7:29am
Josh Cranwell says:This worked, thanks again Manoj!
- 01/09/12 7:29am
-

Last edited:
01/09/12
7:26amFrancisco Javier Carazo Gil says:Hi Josh,
You are using a white space into function call. Have you tried change it by "&20".- 01/09/12 7:31am
Josh Cranwell says:It was a good thought but still outputted tags. The above filters worked. Thanks
- 01/09/12 7:31am
Josh Cranwell says:It was a good thought but still outputted tags. The above filters worked. Thanks
- 01/09/12 7:31am
This question has expired.
Julio Potier, Sébastien | French WordpressDesigner, Manoj Raj, Gabriel Reguly had additional discourse to offer.
Gabriel Reguly, Josh Cranwell, Julio Potier, Luis Abarca, Manoj Raj voted on this question.
Current status of this question: Completed
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
