Пример #1
0
            if ($i == $page) {
                $output .= '<span class="current">&#8201;' . number_format_i18n($i) . '&#8201;</span>';
            } else {
                $output .= '<a href="' . download_page_link($i) . '" title="' . number_format_i18n($i) . '">&#8201;' . number_format_i18n($i) . '&#8201;</a>';
            }
        }
        if (empty($page) || $page + 1 <= $max_page) {
            $output .= '<a href="' . download_page_link($page + 1) . '" title="' . __('&raquo;', 'nqd-store') . '">&#8201;' . __('&raquo;', 'nqd-store') . '&#8201;</a>';
        }
        if ($end_page < $max_page) {
            $output .= '<span class="extend">...</span>';
            $output .= '<a href="' . download_page_link($max_page) . '" title="' . __('Last &raquo;', 'nqd-store') . '">&#8201;' . __('Last &raquo;', 'nqd-store') . '&#8201;</a>';
        }
        $output .= '</div>';
    }
    $post_ID = getPostIDFilterStar($offset, $perpage);
    ?>
						<?php 
    foreach ($post_ID as $post_item) {
        global $post;
        $post = get_post($post_item->post_id);
        setup_postdata($post);
        ?>
						<?php 
        get_template_part('content', get_post_format());
        ?>
						<?php 
    }
    echo $output;
    wp_reset_postdata();
    ?>
Пример #2
0
function mostStarTab()
{
    ?>
<div class="mostStar">
	<?php 
    $post_ID = getPostIDFilterStar();
    ?>
						<?php 
    foreach ($post_ID as $post_item) {
        global $post;
        $post = get_post($post_item->post_id);
        setup_postdata($post);
        ?>
					<?php 
        get_template_part('content', get_post_format());
        ?>
						<?php 
    }
    wp_reset_postdata();
    ?>
	</div>
<?php 
    die;
}