Advertisement
ETFovac

Untitled

Feb 15th, 2014
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.61 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * @category   WordPress
  5. * @package    Addon functions
  6. * @author     Sibin Grasic <[email protected]>
  7. * @version    GIT: da2346hf
  8. * @see        CR::Addons
  9. * @since      Artemis framework 1.0
  10. * @deprecated Not aplicable
  11. *@return comma delimited listu kategorija koje ima post.
  12. **Hvata kategorije posta i pravi comma delimited listu. Posto uvek hvatamo kategorije u loopu, koristimo get_post_categories
  13. */
  14. function get_post_categories()
  15. {
  16.     $categories = get_the_category();
  17.     $cats =array(); $counter=0;
  18.     foreach ($categories as $cat)
  19.         $cats[] = $cat->cat_name;
  20.  
  21.     return implode(',',$cats);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement