Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
my-custom-theme/singular.php /
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
42 lines (33 sloc)
958 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * The template for displaying single posts and pages. | |
| * | |
| * @copyright Copyright (c) 2020, Danny Cooper | |
| * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License | |
| */ | |
| get_header(); ?> | |
| <div class="site-content"> | |
| <?php | |
| while ( have_posts() ) : | |
| the_post(); | |
| ?> | |
| <article <?php post_class(); ?>> | |
| <?php the_post_thumbnail( 'my-custom-image-size' ); ?> | |
| <header class="entry-header"> | |
| <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> | |
| </header><!-- .entry-header --> | |
| <div class="entry-content"> | |
| <?php the_content(); ?> | |
| </div><!-- .entry-content --> | |
| </article><!-- #post-## --> | |
| <?php | |
| // If comments are open or we have at least one comment, load up the comment template. | |
| if ( comments_open() || get_comments_number() ) : | |
| comments_template(); | |
| endif; | |
| endwhile; | |
| ?> | |
| </div><!-- .site-content --> | |
| <?php | |
| get_sidebar(); | |
| get_footer(); |