Guest User

Untitled

a guest
Sep 6th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. $categories = get_the_category($this->post->ID);
  2. foreach ($categories as $c){
  3. $cat_url = $c->cat_ID;
  4. }
  5.  
  6.  
  7.  
  8. get_category_link( $cat_url )
Advertisement
Add Comment
Please, Sign In to add comment