Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /****
- WordPress SimplePie. Display Categories from RSS Feed - http://www.worldoweb.co.uk/2012/display-wordpress-posts-on-another-wp-blog
- Please note that Tags may also be displayed as categories within the RSS feed
- ****/
- /*Add inside the main foreach loop*/
- foreach ($item->get_categories() as $category)
- {
- echo '<span>'.$category->get_label().'</span>';//Replace HTML elements with your own
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement