Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*** Featured (1 post + sidebar) ***/
- function blog_loop_feat( $atts ) {
- extract( shortcode_atts( array(), $atts ) );
- echo '<div class="clear"></div>';// Outter Container open
- $args = array();
- $splendid_query = new WP_Query( $args );
- $output = '<div class="row">';// Row Open
- while ( $splendid_query->have_posts() ) : $splendid_query->the_post();
- '<div class="col-md-8 grid-entry-wrapper"> <!-- grid-entry-wrapper open -->
- <!-- BLOG LOOP -->
- </div><!-- grid-entry-wrapper close -->';
- endwhile;
- wp_reset_query();
- $output .= '<div class="col-md-4">';
- if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Name of Widgetized Area") ) :
- endif;
- $output .= '</div></div>'; // Row Close
- return $output;
- }
- add_shortcode('blog_loop_feat', 'blog_loop_feat');
Add Comment
Please, Sign In to add comment