Apply filters for phplist might not be compatible with cleanprint (1 post)

  1. caalip
    Posted 6 years ago #

    I use this code for my phplist form plug in.

    <?php $content = apply_filters('the_content', '<!--phplist form-->');
    $content = str_replace("<p>","",$content);
    $content = str_replace("</p>","",$content);
    echo $content?>

    However, somehow, it spits out the code for my phplist form, but it also splits out this..

    <span class="fdPrintIncludeParentsPreviousSiblings"></span><span class="fdPrintIncludeParentsChildren"></span><span class="fdPrintExcludeNextSiblings"></span>
    <img src="http://sallystrovetoday.com/WPress/wp-content/plugins/cleanprint-lt/BlogPrintButton.png">

    This is a button for my cleanprint plugin.

    How does apply filters work? What could be a problem?


Topic Closed

This topic has been closed to new replies.

About this Topic