Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $z = count($wpzoom_exclude_cats_menu);
- if ($z > 0)
- {
- $x = 0;
- $que = "";
- while ($x < $z)
- {
- $que .= $wpzoom_exclude_cats_menu[$x];
- $x++;
- if ($x < $z) {$que .= ",";}
- }
- }
- else
- {
- $que = "";
- }
- $menu = preg_replace('@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a>@i', '<li$1><a$2>$3</a>', wp_list_categories("echo=0&exclude=$que&title_li="));
- echo"$menu";?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement