Advertisement
niammuddin

Category slug wordpress

Jul 27th, 2017
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.16 KB | None | 0 0
  1. <?php
  2. foreach (get_the_category() as $category) {
  3.     $cate = $category->slug;
  4. }
  5.  
  6.  
  7. more: http://www.sutanaryan.com/2012/02/how-to-get-category-slug-in-wordpress/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement