Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Instructors
- */
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title> <?php bloginfo('name') | wp_title(); ?> </title>
- <link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css"/>
- <style type="text/css">
- .container_11 .pull_65 {
- left:-65px;
- }
- </style>
- </head>
- <body ><!-- file:instructors.php -->
- <div class="header_container">
- <div id="header" >
- <div id="tag" ><?php bloginfo('description'); ?></div>
- <div id="title"><?php bloginfo('title'); ?></div>
- </div><!-- header-->
- </div><!-- header_container-->
- <div id="navbar">
- <div id="navcontainer">
- <div id="menusimple">
- <?php wp_nav_menu( array( 'theme_location'=>'primary-menu', 'container'=>'menusimple', 'container_class'=>'menu', )); ?>
- </div>
- </div>
- </div>
- <div class="wrapper">
- <div class="container container_11">
- <div class="grid_11" style="margin:8px 12px 12px 20px;" >
- <h1 class="section" span style="font-weight:bold"> Instructors</span></h1>
- <div id="instructors">
- <?php
- $paged = (get_query_var('paged')) ? get_query_var('paged') :
- ((get_query_var('page')) ? get_query_var('page') : 1);
- query_posts("posts_per_page=6&cat=3&orderby=title&order=ASC&paged=$paged");
- /* DEBUG
- print_r('<pre>REQUEST:');print_r($wp_query->request);print_r('</pre>');
- */
- print_r('<p>REQUEST:');print_r($wp_query);print_r('</p>');
- while (have_posts()) : the_post();
- ?>
- <h4 class="bio" style="font-weight:bold"> <?php the_title() ?> </h4>
- <?php echo get_the_post_thumbnail($page->ID, array(65,65) ); ?>
- <?php the_content(); ?>
- <p> </p>
- <hr>
- <?php endwhile; ?>
- <?php if ($wp_query->max_num_pages > 1 ) : ?>
- <div id="nav-below" class="navigation">
- <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Prev', 'custom3' ) ); ?></div>
- <div class="nav-next"><?php previous_posts_link( __( 'Next <span class="meta-nav">→</span>', 'custom3' ) ); ?></div>
- </div><!-- #nav-below -->
- <?php endif; ?>
- </div><!-- min container for instructor posts -->
- </div><!-- grid 11 -->
- <div class='clear'> </div>
- </div><!-- container -->
- </div><!-- wrapper -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement