Twenty Thirteen: Page Template (page.php)
-
I was messing around with the page template trying to remove the remove the feature image from the post page it’s self so it won’t show up twice on the post page. Whiles doing that i removed this <?php while ( have_posts() ) : the_post(); ?> by accident and it has completely crash the page and i don’t know were exactly i took it out need help please here is how my page.php looks
<?php
/**
* The template for displaying all pages
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages and that other
* ‘pages’ on your WordPress site will use a different template.
*
* @package WordPress
* @subpackage Twenty_Thirteen
* @since Twenty Thirteen 1.0
*/get_header(); ?>
<div id=”primary” class=”content-area”>
<div id=”content” class=”site-content” role=”main”><?php /* The loop */ ?>
<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
<header class=”entry-header”><div class=”entry-thumbnail”>
<?php the_post_thumbnail(); ?>
</div>
<?php endif; ?></header><!– .entry-header –>
<div class=”entry-content”>
<?php the_content(); ?>
<?php wp_link_pages( array( ‘before’ => ‘<div class=”page-links”><span class=”page-links-title”>’ . __( ‘Pages:’, ‘twentythirteen’ ) . ‘</span>’, ‘after’ => ‘</div>’, ‘link_before’ => ‘<span>’, ‘link_after’ => ‘</span>’ ) ); ?>
</div><!– .entry-content –><footer class=”entry-meta”>
<?php edit_post_link( __( ‘Edit’, ‘twentythirteen’ ), ‘<span class=”edit-link”>’, ‘</span>’ ); ?>
</footer><!– .entry-meta –>
</article><!– #post –><?php comments_template(); ?>
<?php endwhile; ?></div><!– #content –>
</div><!– #primary –><?php get_sidebar(); ?>
<?php get_footer(); ?>i removed it somewhere at the top don’t know were exactly who can help me please
The topic ‘Twenty Thirteen: Page Template (page.php)’ is closed to new replies.