single.php only displays the_content() function
-
So I have a single.php with the post loop etc and all that, Though when I run the page only displays
<?php the_content(); ?>
and nothing else. Below is the single.php code. Anyone have an Idea why this isn’t working?<?php get_header(); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div id="colorlib-main"> <div class="colorlib-blog"> <div class="container-wrap"> <div class="row"> <div class="col-md-9"> <div class="content-wrap"> <article class="animate-box"> <!-- <div class="blog-img" style="background-image: url(images/blog-1.jpg);"></div> --> <?php the_post_thumbnail('full'), array('class' => 'blog-img'); ?> <?php // NOTE: , array('class' => '') ?> <div class="desc"> <div class="meta"> <p> <span><?php ?></span> <span><?php the_time('F j, Y'); ?></span> <span><?php the_author_posts_link(); ?> </span> <!-- <span><a href="#">3 Comments</a></span> --> </p> </div> <h2><a href="./"><?php the_title(); ?></a></h2> <?php the_content(); ?> </div> </article> <div class="row row-bottom-padded-md"> <div class="col-md-12 animate-box"> <?php comments_template(); ?> </div> <?php endwhile; endif; ?> <?php get_sidebar(); ?> <?php get_footer(); ?>
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘single.php only displays the_content() function’ is closed to new replies.