Title: danielwaddon's Replies | WordPress.org

---

# danielwaddon

  [  ](https://wordpress.org/support/users/danielwaddon/)

 *   [Profile](https://wordpress.org/support/users/danielwaddon/)
 *   [Topics Started](https://wordpress.org/support/users/danielwaddon/topics/)
 *   [Replies Created](https://wordpress.org/support/users/danielwaddon/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/danielwaddon/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/danielwaddon/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/danielwaddon/engagements/)
 *   [Favorites](https://wordpress.org/support/users/danielwaddon/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Syntax error index.php help](https://wordpress.org/support/topic/syntax-error-indexphp-help/)
 *  Thread Starter [danielwaddon](https://wordpress.org/support/users/danielwaddon/)
 * (@danielwaddon)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-indexphp-help/#post-6247275)
 * Sorry mayraharpermr. I am not sure what you are trying to say or ask for that
   matter.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Syntax error index.php help](https://wordpress.org/support/topic/syntax-error-indexphp-help/)
 *  Thread Starter [danielwaddon](https://wordpress.org/support/users/danielwaddon/)
 * (@danielwaddon)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-indexphp-help/#post-6247273)
 * if I am getting your question correctly then I am calling it via the index.php
   page
 *     ```
       <?php get_header(); ?>
       <?php if (have_posts()) : ?>
       <?php while (have_posts()) : the_post(); ?>
       <article <?php post_class() ?> id='post-<?php the_ID(); ?>">
       	<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
           posted on: <?php echo get_the_date(); ?> at <?php echo get_the_time(); ?>
           Posted in: <?php the_category(','); ?>
   
       <?php the_content('Read More..'); ?>
       posted by: <?php the_author(); ?> | <?php comments_popup_link('No Comments','1 Comments','% Comments'); ?>
       </article>
   
       <?php endwhile; ?>
       <?php next_post_link('&laquo; Previous Entries') ?>
       <?php previous_post_link('Next Entries &raquo;') ?>
       <?php else : ?>
       <p>Not Found</p>
       <p>Sorry, but you are looking for something that isn't here.</p>
       <?php endif; ?>
       </section>
       <?php get_sidebar(); ?>
       <?php get_footer(); ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Syntax error index.php help](https://wordpress.org/support/topic/syntax-error-indexphp-help/)
 *  Thread Starter [danielwaddon](https://wordpress.org/support/users/danielwaddon/)
 * (@danielwaddon)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-indexphp-help/#post-6247196)
 * Thanks stephencottontail
 * I am now getting another local testing error
 * Fatal error: Call to undefined function get_header() in C:\xampp\htdocs\wordpress\
   wp-content\themes\danielwaddon\index.php on line 1
 * The new code
 *     ```
       <?php get_header(); ?>
       <?php if (have_posts()) : ?>
       <?php while (have_posts()) : the_post(); ?>
       <article <?php post_class() ?> id='post-<?php the_ID(); ?>">
       	<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
           posted on: <?php echo get_the_date(); ?> at <?php echo get_the_time(); ?>
           Posted in: <?php the_category(','); ?>
   
       <?php the_content('Read More..'); ?>
       posted by: <?php the_author(); ?> | <?php comments_popup_link('No Comments','1 Comments','% Comments'); ?>
       </article>
   
       <?php endwhile; ?>
       <?php next_post_link('&laquo; Previous Entries') ?>
       <?php previous_post_link('Next Entries &raquo;') ?>
       <?php else : ?>
       <p>Not Found</p>
       <p>Sorry, but you are looking for something that isn't here.</p>
       <?php endif; ?>
       </section>
       <?php get_sidebar(); ?>
       <?php get_footer(); ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [sidebar.php syntax error help](https://wordpress.org/support/topic/sidebarphp-syntax-error-help/)
 *  Thread Starter [danielwaddon](https://wordpress.org/support/users/danielwaddon/)
 * (@danielwaddon)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/sidebarphp-syntax-error-help/#post-6240614)
 * Thanks again for the help
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [sidebar.php syntax error help](https://wordpress.org/support/topic/sidebarphp-syntax-error-help/)
 *  Thread Starter [danielwaddon](https://wordpress.org/support/users/danielwaddon/)
 * (@danielwaddon)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/sidebarphp-syntax-error-help/#post-6240603)
 * Thanks Schult
 * That’s fixed it 🙂 Well spotted

Viewing 5 replies - 1 through 5 (of 5 total)