SHARE
TWEET

Untitled

a guest Jan 12th, 2017 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $args = array('child_of' => 12);
  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
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top