• ‘<?php

    /**

    Template Name: Blog-post

    */

    get_header(); ?>

    <!– Flexslider End–>
    </div>

    <div class=”container”>
    <div class=”page-title”>
    <div class=”sixteen columns”> <?php
    if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
    the_post_thumbnail();
    }?>
    <h2>Blog</h2>
    <p align=”center”>Our team of experts is proven in serving the needs of clients in over 20 industries. Meet our management team and your personal consultants to learn
    more. During an engagement with us, you have virtually unlimited access to our expertise. </p>
    </div>
    </div>
    <?php query_posts(‘posts_per_page=4’); ?>
    <div class=”eleven columns”>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <!– Post –>
    <div class=”post”>

    <div class=”three columns alpha”>
    <div><?php
    if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
    the_post_thumbnail();
    }
    ?></div>
    </div>
    <div class=”eight columns omega”>
    <div class=”post-title”><h2>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h2></div>
    <div class=”author”><p>created by <span><?php the_author() ?></span></p></div>

    <div class=”post-content”>
    <div class=”post-meta”>
    <span><i class=”icon-user”></i> by John Smith</span>
    <span><i class=”icon-calendar”></i> <?php the_time(get_option(‘date_format’)) ?></span>
    <span>“><i class=”icon-comment”></i> <?php comments_number( ‘No Comments’, ‘one Comments’, ‘% Comments’ ); ?></span>

    </div>
    <div class=”post-desc”>
    <?php the_excerpt(); ?>
    ” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>Continue Reading
    </div>

    </div>

    </div>

    <div class=”clearfix”></div>

    </div>

    <?php endwhile; ?>
    <?php endif; ?>

    <!– Post –>

    </div>

    <div class=”five columns”>
    <div class=”blog-sidebar”>
    <h1 class=”headline”>Top Stories</h1>

    <!– Categories –>
    <div class=”widget”>

    <ul class=”stories”>
    <li class=”li-1st”>PHP Courses <span>by Brad Birdsall</span>
    <li class=”li-2nd”>PHP Courses <span>by Brad Birdsall</span>
    <li class=”li-3rd”>PHP Courses <span>by Brad Birdsall</span>
    <li class=”li-4th”>PHP Courses <span>by Brad Birdsall</span>
    <li class=”li-5th”>PHP Courses <span>by Brad Birdsall</span>

    </div>

    <div class=”widget”>
    <h2 class=”headline”>Bookmarks</h2>
    <ul class=”stories1″>

    • PHP Courses <span>by Brad Birdsall</span>
    • PHP Courses <span>by Brad Birdsall</span>
    • PHP Courses <span>by Brad Birdsall</span>
    • PHP Courses <span>by Brad Birdsall</span>
    • PHP Courses <span>by Brad Birdsall</span>
    • </div>

      </div>
      </div>
      <div class=”clearfix”></div>
      <div class=”pagination”>


      <div class=”pages”>

    </div>
    </div>

    </div>

    <!– End Slider –>

    </div>

    <!– 960 Container Start –>

    <div class=”our-process”>

    <div class=”container”>

    <!– Tabs Navigation –>

    <div class=”sixteen columns align-center” style=”margin-bottom:20px;”> <img src=”<?php bloginfo(‘template_url’); ?>/images/send.png” alt=”how it works”>

    <?php echo do_shortcode(‘[contact-form-7 id=”21″ title=”Contact Us”]’); ?>

    </div>

    </div>

    <!– 960 Container End –>

    <?php

    //get_sidebar();

    get_footer();’

    How to implement the pagination using custom code

The topic ‘Custom code pagination’ is closed to new replies.