Single.php/page.php not working!
-
Hi,
I am working on a website for a music band and I doing my test phase with Mamp, hosting the wordpress website in my computer.
I am creating a new wordpress theme from 0 and the index.php works fine.
I have been watching several tutorials and follow their instructions to program the content of the single.php and page.php.But always when I try to load a single post anything appears. I checked my website with firebug (using firefox) and at the <body> part doesn’t load anything.
That is what single.php contents:
<?php get_header(); ?> <!– Carga el archivo header.php –>
<div id=”body_container”>
<div id=”contents”>
<div id=”post_content”>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<p><?php the_time(‘l, F jS, Y’); ?></p><?php the_content(); ?>
<hr>
<?php endwhile; else: ?>
<p><?php _e(‘Sorry, this page does not exist.’); ?></p>
<?php endif; ?>
</div> <!– End post_content –>
</div> <!– End contents –>
<div id=”sidebar”>
<?php get_sidebar( ‘barra-lateral-derecha’ ); ?>
</div> <!– End sidebar –>
<div class=”line_jumper”></div>
</div> <!– End body_container –><?php get_footer(); ?> <!– Carga el archivo del pie footer.php–>
I tried to put anything else like <h1> tags but doesn’t load anything.
Please help!
The topic ‘Single.php/page.php not working!’ is closed to new replies.