Welcome to the Treehouse Community
Looking to learn something new?
Jonathan Seligsohn23,116 Points
How to Build WordPress Theme, Stage 3: WP Theme Functions - SERVER ERROR
I've been following along these great tutorials about wordpress, but now I'm stuck. I'm running a test WP site on my local server (as directed by the tutorials). I just added the following code to the file front-page.php:
<?php get_header(); ?> <p>This is the front-page.php file.</p> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <h3><?php the_title(); ?></h3> <?php the_content(): ?> <hr> <?php endwhile; else: ?> <p>There are no posts.</p> <?php endif; ?> <?php get_footer(); ?>
When I go to Visit Site, I get an HTML 500 error - Server Error.
What's the problem?
Other info: Other than the basic theme info, my style.css is blank. But even when I use a different style.css, I still get an error.