Title: [Plugin : fcat] Help modifying plugin code
Last modified: August 19, 2016

---

# [Plugin : fcat] Help modifying plugin code

 *  [central101](https://wordpress.org/support/users/central101/)
 * (@central101)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/help-modying-plugin-code/)
 * 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.

 * 0 replies
 * 1 participant
 * Last reply from: [central101](https://wordpress.org/support/users/central101/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/help-modying-plugin-code/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
