Changeset 2335
- Timestamp:
- 01/20/2016 12:25:57 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/sidebar.php
r1024 r2335 1 1 <div class="secondary-content"> 2 2 <ul> 3 <li>4 <h3><a href="http://blog.wordpress.tv"><?php esc_html_e( 'From the Blog', 'wptv' ); ?></a></h3>5 <ul>6 <?php7 // Make it easier to contribute to this theme by not assuming multisite context.8 if ( function_exists( 'switch_to_blog' ) ) {9 switch_to_blog( 5310177 ); // blog.wordpress.tv10 }11 12 query_posts( 'posts_per_page=5' );13 14 while ( have_posts() ) :15 the_post();16 ?>17 <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>18 <?php19 endwhile;20 21 if ( function_exists( 'restore_current_blog' ) ) {22 restore_current_blog();23 }24 ?>25 </ul>26 </li>27 3 <li> 28 4 <h3><?php esc_html_e( 'Resources', 'wptv' ); ?></h3>
Note: See TracChangeset
for help on using the changeset viewer.