Site icon Hip-Hop Website Design and Development

Customized publish sort archive pagination with HTML5Blank theme?

Cannot get the pagination to work. This is my archive-work.php:

<?php get_header(); ?>

    <major function="major">
        <!-- part -->
        <part>

            <h1><?php _e( 'Work', 'html5blank' ); ?></h1>

            <?php get_template_part('loop', 'work'); ?>

            <?php get_template_part('pagination'); ?>

        </part>
        <!-- /part -->
    </major>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

loop-work.php:

<?php

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

$work = array(
    'post_type' => 'work'
    ,'numberposts' => -1
    ,'posts_per_page' => 2
    ,'paged' => $paged
);

$loop = new WP_Query( $work );

if ($loop->have_posts()): whereas ($loop->have_posts()) : $loop->the_post(); ?>

    <!-- article -->
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

        <!-- publish thumbnail -->
        <?php if ( has_post_thumbnail()) : // Examine if thumbnail exists ?>
            <div class="thumbnail">
                <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
                    <?php the_post_thumbnail(array(300,225)); // Declare pixel measurement you want contained in the array ?>
                </a>
            </div>
        <?php endif; ?>
        <!-- /publish thumbnail -->

        <header>
            <!-- publish title -->
            <h2 class="title">
                <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
            </h2>
            <!-- /publish title -->
            <span class="date"><?php the_time('F Y'); ?></span>
        </header>

        <br/><br/>

        <!-- publish particulars -->
        <!--span class="creator"><?php _e( 'Revealed by', 'html5blank' ); ?> <?php the_author_posts_link(); ?></span-->
        <!--span class="feedback"><?php if (comments_open( get_the_ID() ) ) comments_popup_link( __( 'Depart your ideas', 'html5blank' ), __( '1 Remark', 'html5blank' ), __( '% Feedback', 'html5blank' )); ?></span-->
        <!-- /publish particulars -->

        <?php html5wp_excerpt('html5wp_index'); // Construct your customized callback size in features.php ?>

        <?php edit_post_link(); ?>

    </article>
    <!-- /article -->

<?php endwhile; ?>

<?php else: ?>

    <!-- article -->
    <article>
        <h2><?php _e( 'Sorry, nothing to show.', 'html5blank' ); ?></h2>
    </article>
    <!-- /article -->

<?php endif; ?>

If I set the default web page to 2, it does present the third and 4th entries… so why will not the hyperlinks present? That is the way it’s arrange within the theme’s default archive/loop.

To your reference: https://github.com/toddmotto/html5blank

Thanks.