Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter danielwaddon

    (@danielwaddon)

    Sorry mayraharpermr. I am not sure what you are trying to say or ask for that matter.

    Thread Starter danielwaddon

    (@danielwaddon)

    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(); ?>
    Thread Starter danielwaddon

    (@danielwaddon)

    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(); ?>
    Thread Starter danielwaddon

    (@danielwaddon)

    Thanks again for the help

    Thread Starter danielwaddon

    (@danielwaddon)

    Thanks Schult

    That’s fixed it ?? Well spotted

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