Exemplo n.º 1
0
				<div id="content" class="<?php 
echo themeblvd_get_column_class('content');
?>
 clearfix" role="main">
					<div class="inner">
						<?php 
themeblvd_content_top();
?>

						<div class="primary-post-list element-post_list_paginated post_list<?php 
echo themeblvd_get_classes('element_post_list_paginated', true);
?>
">
							<?php 
// Query the post list
$post_list = new WP_Query(themeblvd_get_second_query());
// Start the loop
if ($post_list->have_posts()) {
    while ($post_list->have_posts()) {
        $post_list->the_post();
        global $more;
        $more = 0;
        // Get template part, framework default is content-list.php
        get_template_part('content', themeblvd_get_part('list_paginated'));
    }
} else {
    // No posts to display
    printf('<p>%s</p>', themeblvd_get_local('archive_no_posts'));
}
themeblvd_pagination($post_list->max_num_pages);
wp_reset_postdata();
Exemplo n.º 2
0
echo themeblvd_get_column_class('content');
?>
 clearfix" role="main">
					<div class="inner">
						<?php 
themeblvd_content_top();
?>

						<div class="primary-post-grid element-post_grid_paginated post_grid<?php 
echo themeblvd_get_classes('element_post_grid_paginated', true);
?>
">
							<div class="grid-protection">
								<?php 
// Query the post grid
$post_grid = new WP_Query(themeblvd_get_second_query());
$counter = themeblvd_set_att('counter', 1);
$columns = themeblvd_get_att('columns');
// Start the loop
if ($post_grid->have_posts()) {
    while ($post_grid->have_posts()) {
        $post_grid->the_post();
        global $more;
        $more = 0;
        // If this is the very first post, open the first row
        if ($counter == 1) {
            themeblvd_open_row();
        }
        // Get template part, framework default is content-grid.php
        get_template_part('content', themeblvd_get_part('grid_paginated'));
        // If last post in a row, close the row