Advertisement
sross16

Wordpress help needed with PHP

May 14th, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. I have created a wordpress site and my posts show up on the on the home page, but when I click on a post, the context of the post does not show up. Everything else shows up, header, sidebar etc.
  2.  
  3. The site url is http://www.post34baseball.org
  4.  
  5. Below is the page.php code. I feel like something is missing. Any help would be huge! Thanks.
  6.  
  7. <?php
  8. /**
  9. * The Template for displaying all single posts.
  10. *
  11. * @package WordPress
  12. * @subpackage Twenty_Ten
  13. * @since Twenty Ten 1.0
  14. */
  15.  
  16. get_header(); ?>
  17.  
  18. <div id="container">
  19. <div id="content" role="main">
  20. <?php while ( have_posts() ) : the_post(); ?>
  21. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  22. <div class="entry-title-wrap"><h1 class="entry-title" ><?php the_title(); ?></h1></div>
  23. <div class="entry-content">
  24. <?php the_content(); ?>
  25. </div><!-- .entry-content -->
  26. <?php endwhile; ?>
  27. </div><!-- #post -->
  28. </div><!-- #post -->
  29. </div><!-- #content -->
  30. <?php get_sidebar(); ?>
  31.  
  32. </div><!-- #container -->
  33. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement