Guest User

Untitled

a guest
Jan 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. <?php
  2.  
  3. /*** Featured (1 post + sidebar) ***/
  4.  
  5. function blog_loop_feat( $atts ) {
  6. extract( shortcode_atts( array(), $atts ) );
  7.  
  8. echo '<div class="clear"></div>';// Outter Container open
  9. $args = array();
  10.  
  11. $splendid_query = new WP_Query( $args );
  12.  
  13. $output = '<div class="row">';// Row Open
  14.  
  15. while ( $splendid_query->have_posts() ) : $splendid_query->the_post();
  16. '<div class="col-md-8 grid-entry-wrapper"> <!-- grid-entry-wrapper open -->
  17. <!-- BLOG LOOP -->
  18. </div><!-- grid-entry-wrapper close -->';
  19. endwhile;
  20. wp_reset_query();
  21.  
  22. $output .= '<div class="col-md-4">';
  23.  
  24. if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Name of Widgetized Area") ) :
  25. endif;
  26.  
  27. $output .= '</div></div>'; // Row Close
  28.  
  29. return $output;
  30. }
  31. add_shortcode('blog_loop_feat', 'blog_loop_feat');
Add Comment
Please, Sign In to add comment