Pagination 如何添加自定义wordpress同位素项目组合分页

Pagination 如何添加自定义wordpress同位素项目组合分页,pagination,wordpress-theming,jquery-isotope,wordpress,Pagination,Wordpress Theming,Jquery Isotope,Wordpress,如何将分页添加到我的同位素组合页面? 我希望每个过滤器的最大项为8,并使用分页来检查接下来的8项。 下面是我的自定义模板名称:公文包 <?php $t =& peTheme(); ?> <?php $title = get_the_title(); ?> <?php $pcontent = get_the_content(); ?> <?php $pcontent = apply_filters( 'the_content', $pconten

如何将分页添加到我的同位素组合页面? 我希望每个过滤器的最大项为8,并使用分页来检查接下来的8项。 下面是我的自定义模板名称:公文包

<?php $t =& peTheme(); ?>
<?php $title = get_the_title(); ?>
<?php $pcontent = get_the_content(); ?> 
<?php $pcontent = apply_filters( 'the_content', $pcontent ); ?>
<?php $project =& $t->project; ?>
<?php list($portfolio) = $t->template->data(); ?>

<?php $content =& $t->content; ?>

    <div class="container">

        <div class="row">
            <div class="span12">
                <h1><?php echo $title; ?></h1>
            </div>
        </div>
        <div class="row">
            <div class="span12">
                <nav class="portfolio-filter clearfix">
                    <ul>
                        <?php $project->filter('',"keyword"); ?>
                    </ul>
                </nav>
            </div>
            <hr class="main-hr-sm">
            <?php echo $pcontent; ?>
        </div>
        <div class="row portfolio-container">
        <?php while ($content->looping()):
              $meta =& $content->meta();  ?>
            <div class="span3 portfolio-item <?php $project->filterClasses(); ?>">
                <a href="<?php echo $t->image->resizedImgUrl($content->get_origImage(),1000,1000); ?>" class="fancybox" data-portfolio="<?php $content->slug(); ?>">
                    <img src="<?php echo $t->image->resizedImgUrl($content->get_origImage(),460,300); ?>" alt="<?php echo esc_html(get_the_content()); ?>">
                </a>
                <div class="caption">
                    <?php $content->content(); ?>
                </div>
            </div>
            <?php endwhile; ?>

        </div>
    </div>

分页不是内置的同位素,所以你必须从头开始构建它。关于如何使用Wordpress和同位素v1实现这一点。请记住,本教程使用的是同位素v1,因此,如果您想使用同位素v2,则必须对其进行更改,但本教程中的一般概念仍然非常有用