Advertisement
roachdesign

Posts Child Site

Jan 14th, 2014
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.92 KB | None | 0 0
  1. <div id="homepost">
  2. <img src="http://www.spoutrun.org/wp-content/themes/CSpoutRun/images/SpoutRun_Logo_NEW.png" align="left" width="150" height="100">
  3. <?php global $switched; switch_to_blog('6'); ?>
  4. <?php $args = array( 'posts_per_page' => 1 ); $lastposts = get_posts( $args );
  5. foreach ( $lastposts as $post ) :
  6.   setup_postdata( $post ); ?>
  7.     <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  8.     <?php the_excerpt(); ?>
  9. <?php endforeach;
  10. wp_reset_postdata(); ?>
  11. </div>
  12.  
  13. <div id="homepost">
  14. <img src="http://tdpnetwork.com/wp-content/uploads/2014/01/whitescarver_pictures.png" align="right" width="200" height="104">
  15. <?php global $switched; switch_to_blog('8'); ?>
  16. <?php $args = array( 'posts_per_page' => 1 ); $lastposts = get_posts( $args );
  17. foreach ( $lastposts as $post ) :
  18.   setup_postdata( $post ); ?>
  19.     <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  20.     <?php the_excerpt(); ?>
  21. <?php endforeach;
  22. wp_reset_postdata(); ?>
  23. </div>
  24.  
  25. <div id="homepost">
  26. <img src="http://www.goosecreek.org/wp-content/themes/goosecreek/images/gca_logo.png" align="left" width="120" height="113">
  27. <?php global $switched; switch_to_blog('14'); ?>
  28. <?php $args = array( 'posts_per_page' => 1 ); $lastposts = get_posts( $args );
  29. foreach ( $lastposts as $post ) :
  30.   setup_postdata( $post ); ?>
  31.     <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  32.     <?php the_excerpt(); ?>
  33. <?php endforeach;
  34. wp_reset_postdata(); ?>
  35. </div>
  36.  
  37. <div id="homepost">
  38. <img src="http://www.elksrunwatershed.org/wp-content/themes/elksrun/images/logo.jpg" align="right" width="135" height="100">
  39. <?php global $switched; switch_to_blog('17'); ?>
  40. <?php $args = array( 'posts_per_page' => 1 ); $lastposts = get_posts( $args );
  41. foreach ( $lastposts as $post ) :
  42.   setup_postdata( $post ); ?>
  43.     <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  44.     <?php the_excerpt(); ?>
  45. <?php endforeach;
  46. wp_reset_postdata(); ?>
  47. </div>
  48.  
  49. <div id="homepost">
  50. <img src="http://tdpnetwork.com/wp-content/uploads/2014/01/ccea_logo2.png" align="left" width="150" height="129">
  51. <?php global $switched; switch_to_blog('18'); ?>
  52. <?php $args = array( 'posts_per_page' => 1 ); $lastposts = get_posts( $args );
  53. foreach ( $lastposts as $post ) :
  54.   setup_postdata( $post ); ?>
  55.     <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  56.     <?php the_excerpt(); ?>
  57. <?php endforeach;
  58. wp_reset_postdata(); ?>
  59. </div>
  60.  
  61. <div id="homepost">
  62. <img src="http://www.thedownstreamproject.org/wp-content/themes/TheDownstreamProject/images/logo.png" align="right" width="180" height"68">
  63. <?php global $switched; switch_to_blog('5'); ?>
  64. <?php $args = array( 'posts_per_page' => 1 ); $lastposts = get_posts( $args );
  65. foreach ( $lastposts as $post ) :
  66.   setup_postdata( $post ); ?>
  67.     <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  68.     <?php the_excerpt(); ?>
  69. <?php endforeach;
  70. wp_reset_postdata(); ?>
  71. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement