• Hello my friends.

    I’m working on my website (using WordPress as a CMS) and it’s working perfectly. I’ve done and ‘migrated’ all bootstrap to WP and it’s very pretty. Already done some custom post types and custom fields for my projects portfolio.

    I’m having only one problem here and that is with the pagination inside of specific div where is the portfolio and custom post type ‘projects’. Take a look at printscreen not of my project but I have something similar.

    https://imageshack.com/a/img538/2665/OxEfZu.png

    I really need a pagination after 8 elements (projects) appears. Tried some codes I’ve found at internet (wordpress forum, stackoverflow). None of these worked. Also tried a pagination which I have of another WordPress work and isn’t working too.

    I’d really appreciate if someone could help. Thanks until now!

Viewing 1 replies (of 1 total)
  • Thread Starter RSchneider94

    (@rschneider94)

    CODE:

    <!-- Portfolio Grid Section -->
    <section id="portfolio">
        <div class="container">
            <div class="row">
                <div class="col-lg-12 text-center">
                    <h2>Portfolio</h2>
                    <hr class="star-primary">
                </div>
            </div>
            <div class="row">
    
            <?php $loop = new WP_Query( array( 'post_type' => 'Projeto', 'posts_per_page' => 6 ) ); ?>
                <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
    
                <div class="col-sm-4 portfolio-item">
                    <a href="#portfolioModal<?php the_ID(); ?>" class="portfolio-link" data-toggle="modal">
                        <div class="caption">
                            <div class="caption-content">
                                <i class="fa fa-mouse-pointer fa-3x"></i>
                            </div>
                        </div>
                        <?php the_post_thumbnail('thumbnail-projetos', array('class' => 'img-responsive')); ?>
                    </a>
                </div>
    
                <?php endwhile; wp_reset_query(); ?>
    
            </div>
        </div>
    </section>
Viewing 1 replies (of 1 total)
  • The topic ‘Pagination inside of specific div like a slider’ is closed to new replies.