We are getting to our final stage to build our first WordPress theme with Ext JS. There are two steps left: build the page.php
and single.php
files. In this topic we will build single.php
as follows:
<?php get_header(); ?> <?php /* If there are no posts to display, such as an empty archive page */ ?> <?php if ( ! have_posts() ) : ?> <h1>Not Found</h1> <p>Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post</p> <?php endif; ?> <div id="contentCont" style="display:none;"> <?php while ( have_posts() ) : the_post(); ?> <div id='post' class="post"> <div id="title" style="display:none;"><?php the_title(); ?></div> <div class="post-details"> <div class="post-details-left"> Posted on <strong><?php the_date(); ?></strong> by <span class="author"><?php the_author()...