Wordpress - Categories


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php $categories = get_categories( $args ); ?>
  2.  
  3.  
  4. <?php $args = array(
  5. 'type' => 'post',
  6. 'child_of' => 0,
  7. 'orderby' => 'name',
  8. 'order' => 'ASC',
  9. 'hide_empty' => true,
  10. 'include_last_update_time' => false,
  11. 'hierarchical' => 1,
  12. 'exclude' => ,
  13. 'include' => ,
  14. 'number' => ,
  15. 'pad_counts' => false );?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.