Advertisement
Guest User

Untitled

a guest
Dec 6th, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <?php
  2. $z = count($wpzoom_exclude_cats_menu);
  3. if ($z > 0)
  4. {
  5. $x = 0;
  6. $que = "";
  7. while ($x < $z)
  8. {
  9. $que .= $wpzoom_exclude_cats_menu[$x];
  10. $x++;
  11. if ($x < $z) {$que .= ",";}
  12. }
  13. }
  14. else
  15. {
  16. $que = "";
  17. }
  18. $menu = preg_replace('@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a>@i', '<li$1><a$2>$3</a>', wp_list_categories("echo=0&exclude=$que&title_li="));
  19. echo"$menu";?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement