Advertisement
Guest User

Untitled

a guest
Jan 12th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement