0

I need to create a simple posts loop to be shown on the homepage (Meaning - I am in "page" and not "blog" or "archive" This is what I need:

  1. Display maximum of 5 posts
  2. there will be arrows on both sides for pagination http://prntscr.com/luicmv
  3. Filter above filters posts formats (articles,photos, quotes)

This is the layout Im aiming for 5 posts

<div class="row cards">
<div class="col-md-8">
    <div class="row pb--2">
        <div class="col-md-4">
            <div class="card">
                    <a class="wrap-text title" href="#">
                        <!-- // post 1 here -->
                    </a>
            </div>
        </div>
        <div class="col-md-8">
            <div class="card">
                    <a class="wrap-text title" href="#">
                        <!-- // post 2 here -->
                    </a>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-8">
            <div class="card">
                    <a class="wrap-text title" href="#">
                        <!-- // post 3 here -->
                    </a>
            </div>
        </div>
        <div class="col-md-4">
            <div class="card">
                    <a class="wrap-text title" href="#">
                        <!-- // post 4 here -->
                    </a>
            </div>
        </div>
    </div>
</div>


<div class="col-md-4">
    <div class="card last">
            <a class="wrap-text" href="#">
                <!-- // post 5 here -->
            </a>
    </div>
</div>

You can check it temoprary live here scroll down to where it says "TRAVEL BLOG"

Any suggestions how can I reach this layout using one WP_Query loop and keep pagination wirking while inside the homepage?

Thanks in advanced

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.