Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter amandahuff

    (@amandahuff)

    I removed everything after Edit and its single closing quote and it’s now working.
    I don’t know what the | was supposed to be for, as I got help with the single.php coding from a tutorial. Thank you for pointing that out for me, and thank you for all of your help! 🙂

    Thread Starter amandahuff

    (@amandahuff)

    I read through single.php and I found this line:

    <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>

    I changed the colons to semicolons and removed the spaces, but it still didn’t work.

    This is the relevant coding in single.php; maybe I’m missing something.

    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    
    <div id="container">
    <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
    <div class="post">
    <a href="<?php the_permalink(); ?>" title=”<?php the_title(); ?>”><?php the_title(); ?></a>
    
    <div class="entry">
    <?php the_content(); ?>
    <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
    <p class="postmetadata">
    Filed under: <?php the_category(); ?> by <?php the_author(); ?> <?php edit_post_link('Edit', ' | ', '); ?>
    				</p>
    </div>
    <div class=”comments-template”>
    <?php comments_template(); ?>
    </div>
    </div>
    
    <?php endwhile; ?>
    
    <div class="navigation">
    <?php previous_post_link('%link'); ?> <?php next_post_link('%link'); ?>
    </div>
    
    <?php else : ?>
    
    <div class="post" id="post-<?php the_ID(); ?>">
    <h2><?php ('Not Found'); ?></h2>
    </div>
    
    <?php endif; ?>
    </div>

    Thanks for all of your help so far. 🙂

    Thread Starter amandahuff

    (@amandahuff)

    The idea of having the post links is so that you can go from one single post to another single post.

    However, as I mentioned in my original post, when I add semicolons after each closing parenthesis and still get this error. And there are spaces between the semicolons and the question marks. I tried adding the semicolons again, and the error still shows up.

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