Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Custom Archive Template for myCRED Ranks
- * Based on the TwentyTwelve archive.php and content.php files.
- *
- * See http://mycred.me/support/tutorials/creating-rank-…for-your-theme/
- * for details on the present_users_of_rank() function.
- *
- * @version 1.0
- */
- get_header(); ?>
- <section id="primary" class="site-content">
- <div id="content" role="main">
- <?php if ( have_posts() ) : ?>
- <header class="archive-header rank-archive-header">
- <h1 class="archive-title rank-archive-title">Ranks</h1>
- </header><!-- .archive-header -->
- <?php
- /* Start the Loop */
- while ( have_posts() ) : the_post(); ?>
- <article id="rank-<?php the_ID(); ?>" <?php post_class(); ?>>
- <header class="entry-header rank-header">
- <?php the_post_thumbnail(); ?>
- <h1 class="entry-title rank-title"><?php the_title(); ?></h1>
- </header><!-- .entry-header -->
- <div class="entry-content rank-members">
- <?php present_users_of_rank( get_the_ID() ); ?>
- </div><!-- .entry-content -->
- </article><!-- #rank -->
- <?php endwhile;
- twentytwelve_content_nav( 'nav-below' ); ?>
- <?php else : ?>
- <?php get_template_part( 'content', 'none' ); ?>
- <?php endif; ?>
- </div><!-- #content -->
- </section><!-- #primary -->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement