SHARE
TWEET

Untitled

a guest Jan 12th, 2017 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $args = array('parent' => 17);
  2. $categories = get_categories($args);
  3. foreach($categories as $category) {
  4.     echo '<p>Category: <a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a></p>';
  5.     echo '<p>Description:'. $category->description . '</p>';
  6.     echo '<p>Post Count: '. $category->count . '</p>';
  7. }
RAW Paste Data
Top