WordPress scratch build: get_footer() doesn't call default footer
-
So I’m using Ubuntu 14.04 and my browser is Mozilla. I use Chrome as well to check my work. I’m building a theme from scratch and get_header() get_footer() would cause the page to go completely blank. After reinstalling WordPress and the MySQL database and user, get_footer still doesn’t seem to want to work. Even when I created the footer.php file.
I striped down to just the index.php and style.csshere is the index.php
<?php get_header(); if (have_posts()): while (have_posts): the_post(); ?> <article class="post"> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <?php the_content(); ?> </article> <?php endwhile; else: echo '<p>No content found</p>'; endif; get_footer(); ?>
it’s my understanding that this will call a default footer from wp-includes/theme-compat/footer.php. Anyone no why it would be blank and what i can do to fix?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘WordPress scratch build: get_footer() doesn't call default footer’ is closed to new replies.