Support

Account

Home Forums Add-ons Flexible Content Field Pagination Reply To: Pagination

  • <?php
    $args = array(‘post_type’ => ‘fhb_news’, ‘posts_per_page’ => 3);
    $loop = new WP_Query($args);
    while ($loop->have_posts()) : $loop->the_post();
    ?>
    <div class=”modal-content modal-content-styling”>
    <div class=”datum”>
    <?php the_date(‘scheduled_date’); ?>
    </div><h3><?php the_title(); ?></h3>
    <div class=”Anreissertext”><?php the_content(); ?></div>
    <div class=”weitereinfos-startseite”>
    <div id=”myModal-<?php the_id(); ?>” class=”modal fade out” role=”dialog” style=”display: none;” aria-hidden=”true”>
    <div class=”modal-dialog modal-dialog-styling”>
    <!– Modal content–>
    <div class=”modal-content modal-content-styling”>
    <div class=”modal-header modal-header-styling”>
    <div class=”col-12″>
    <div class=”lightbox-caption”>
    News-Details
    <button type=”button” class=”close lightbox-close” data-dismiss=”modal” aria-label=”Close”>
    <span aria-hidden=”true”>×</span>
    </button>
    </div>
    </div>
    </div>
    <div class=”modal-body modal-body-styling”>
    <div class=”row”>
    <div class=”col-12 col-md-7″>
    <div style=”margin-left:2%;” class=”h2-in-lightbox”>
    <?php the_field(‘news_detail_title’); ?>
    </div>

    <div style=”margin-left:2%;” class=”text-in-lightbox”>
    <?php the_field(‘news_detail_beschreibung’); ?>
    </div>
    </div>
    <!–Side box Title–>
    <div class=”col-12 col-md-5″>
    <div class=”col-12″>
    <?php if (get_field(‘sideboxtitle’) && get_field(‘news_download’)) { ?>
    <div class=”Ort-Kasten-unten”>
    <div class=”h1-Kasten”><?php the_field(‘sideboxtitle’); ?></div>

    <?php $file = get_field(‘news_download’); ?>
    “>Marktbericht (PDF)
    “>
    </div>
    <?php } ?>
    <!–_____Side img__________–>
    <?php
    $image_url = get_field(‘sideimg’);
    ?>
    <?php if (isset($image_url)) { ?>
    <div class=”container”>
    <div class=”row”>
    “>
    </div>
    </div>
    <?php } ?>

    Ihave this code would like to pagination i have tried all my efferot can any one help me