The MU forums have moved to WordPress.org

question about a very simple plugin (2 posts)

  1. Ovidiu
    Member
    Posted 15 years ago #

    Hi there,

    I am trying to use the less plugin but it does not work. As its source code is very short, can someone have a look at it? please


    add_filter('the_content', 'tguy_less_remove_anchor');
    function tguy_less_remove_anchor($content) {
    /*
    Remove the anchor portion from links like
    <a href="http://www.com/blog/the-post/#more-23">
    (Will remove the #more-23 part)
    */
    global $id;
    return str_replace('#more-'.$id.'">', '">', $content);
    }
    ?>
    </a>

    do you see any obvious reasons why this works with wp 2.0.5 but not with wpmu 1.0?

  2. Ovidiu
    Member
    Posted 15 years ago #

    anyone?

    this is a real cool thing, I hate it when I click a read more link and it jumps to the middle of an article, but I am unable to find out why this does not work with wpmu.

About this Topic