Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*Simplepie Snippet to manually add Blog Names by URL, where alternative methods don't work, in Display WordPress Posts on another WordPress Blog
- -https://www.worldoweb.co.uk/2012/display-wordpress-posts-on-another-wp-blog
- */
- $my_blog_url = $item->get_base();
- if($my_blog_url == "http://mywebsite.com/"){
- $title = "My Website";
- }
- if ($my_blog_url == "http://mysecondwebsite.com/"){
- $title = 'My Second Website';
- }
- ?>
- //echo results
- <span><?php echo $title; ?></span>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement