Support » Plugin: Advanced Excerpt » Version 4.2.2 not removing tags

  • Resolved mezzofanti

    (@mezzofanti)


    Here’s my site homepage:

    The Mezzofanti Guild – Language Learning Made Simple

    Look down the bottom where there are 4 previous post preview squares with thumbnails.

    You can see that the formatting hasn’t been removed by the_excerpt() call which I’ve never had a problem with in previous versions.

    Also since every post I have has a large image at the beginning of the post, the only way I could stop the img tag from being called was to upload a featured image and place a caption around each image.

    This is the code I’ve always used for this plugin:

    <?php the_excerpt('More', TRUE, '', 33) ; ?>

    <img src=”http://www.mezzoguild.com/wp-content/uploads/2014/06/excerpt.png”>

    How can I fix this?

    https://wordpress.org/plugins/advanced-excerpt/

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’ve temporarily fixed this problem by replacing

    <?php the_excerpt('More', TRUE, '', 33) ; ?>

    with

    <?php the_advanced_excerpt('length=20&length_type=words&no_custom=1&ellipsis=%26hellip;&exclude_tags=img,p,strong,br'); ?>

    Not quite sure how this relates to the settings of the plugin however. Does it override the settings page?

    Confirmed, had to roll back to an earlier version to stop our homepage turning to mess! Tags are being included despite enabling “remove all tag except…”

    Hey Guys,

    This has been resolved in the latest update, please update to 4.2.3 and let me know if you’re still experiencing problems.

    Also, the code you were using was incorrect.

    <?php the_excerpt('More', TRUE, '', 33) ; ?>

    The WordPress function the_excerpt() does not accept any arguments, please see: http://codex.wordpress.org/Function_Reference/the_excerpt

    Cheers,

    Chris

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Version 4.2.2 not removing tags’ is closed to new replies.