• Hello I need some help modifying some code. I have this simple plug-in that allows me to have a list of catagories on a page using the <!–fcat–> in particular page I want the list to appear on. I would like to put some test before the list of catagories but the way it is structured now the text comes after the list. Can someone modify the code bellow so the test apears before list?

    Thank You

    function fcat_wp_head(){
    ?>

    <style type=”text/css”>
    ul.fcat{
    }
    ul.fcat li{
    }
    ul.fcat li a{
    }
    </style>
    <?php
    }

    function fcat_the_content($content){
    if(!preg_match(“|<!–fcat–>|”,$content))
    return $content;
    $fcat .= wp_list_cats(‘sort_column=name&optioncount=1&hierarchical=0&exclude=1,24’);
    $fcat .= “<ul class=’fcat’>”;
    $fcat .= “”;
    return preg_replace(“|<!–fcat–>|”, $fcat, $content);

  • The topic ‘[Plugin : fcat] Help modifying plugin code’ is closed to new replies.