Advertisement
niammuddin

categori wordpress

Aug 28th, 2015
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. <?php
  2. $cat = get_query_var('cat');
  3.  
  4. foreach(get_categories('parent=0&hide_empty=0') as $category) {
  5.  
  6. echo '' . $category->name.'';
  7. }
  8. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement