Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php /*
- * Template Name: Template Page Concurs
- *
- * @package Cryout Creations
- * @subpackage mantra
- * @since mantra 0.5
- */
- ?>
- <?php get_header(); ?>
- <section id="container">
- <div id="content" role="main">
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <h1 class="entry-title"><?php the_title(); ?></h1>
- <?php the_content(); ?>
- <div style="clear: both;"></div>
- <?php endwhile; else: endif; ?>
- <br /><br />
- <?php $slug = basename(get_permalink());
- // replace $slub with get_the_title() in the line below if you want to get posts based
- // on category name instead of slug ?>
- <?php
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- query_posts('category_name='.$slug.'&post_status=publish,future&orderby=date&order=desc&posts_per_page='.get_option('posts_per_page').'&paged=' . $paged);?>
- <?php /*
- <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <h1 class="entry-title"><?php the_title(); ?></h1>
- <div class="entry-meta">
- <?php mantra_posted_on(); ?>
- </div><!-- .entry-meta -->
- <div class="entry-content">
- <?php the_content(); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'mantra' ), 'after' => '</div>' ) ); ?>
- </div><!-- .entry-content -->
- <div class="entry-utility">
- <?php mantra_posted_in(); ?>
- <?php edit_post_link( __( 'Edit', 'mantra' ), '<span class="edit-link">', '</span>' ); ?>
- </div><!-- .entry-utility -->
- </div><!-- #post-## -->
- <?php comments_template( '', true ); ?>
- <?php endwhile; // end of the loop. ?>
- */ ?>
- <?php /* Start the Loop */ ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <?php get_template_part( 'content', get_post_format() ); ?>
- <?php endwhile; ?>
- <?php if($mantra_pagination=="Enable") mantra_pagination(); else mantra_content_nav( 'nav-below' ); ?>
- <ul>
- <?php wp_list_categories('orderby=id&show_count=1&use_desc_for_title=0&child_of=65'); ?>
- </ul>
- </div><!-- #content -->
- <?php get_sidebar(); ?>
- </section><!-- #container -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement