Advertisement
Guest User

topproducts-page.php

a guest
May 17th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.06 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Template Name: Top Products
  4.  *
  5.  * A custom page template without sidebar.
  6.  *
  7.  * The "Template Name:" bit above allows this to be selectable
  8.  * from a dropdown menu on the edit page screen.
  9.  *
  10.  * @package Sliding_Door
  11.  * @since Sliding Door 1.0
  12.  */
  13.  
  14. get_header(); ?>
  15.  
  16.         <div id="container" class="one-column">
  17.             <div id="content" role="main">
  18.  
  19. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  20.  
  21.                 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  22.                     <h1 class="entry-title"><?php the_title(); ?></h1>
  23.                     <div class="entry-content">
  24.                         <?php the_content(); ?>
  25.                         <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'slidingdoor' ), 'after' => '</div>' ) ); ?>
  26.                         <?php edit_post_link( __( 'Edit', 'slidingdoor' ), '<span class="edit-link">', '</span>' ); ?>
  27.                     </div><!-- .entry-content -->
  28.                 </div><!-- #post-## -->
  29.  
  30.                 <?php comments_template( '', true ); ?>
  31.  
  32. <?php endwhile; ?>
  33.  
  34.             </div><!-- #content -->
  35.         </div><!-- #container -->
  36.  
  37. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement