• so yet another post about permalinks.

    ive set my htaccess permission to 666, permalinks look like theyre working but when i go to click em i get this error

    Parse error: parse error in /home/httpd/vhosts/tayo.co.nz/httpdocs/news/wp-content/themes/boredom/single.php on line 15

    using theme boredom. heres the entire code for the single.php page from the theme. i cant see anything wrong.

    any help is very much appreciated.

    site = http://www.tayo.co.nz

    <?php get_header(); ?>

    <div id="content">

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

    <div class="navigation">
    <div class="alignleft"><?php previous_post('&laquo; %','','yes') ?></div>
    <div class="alignright"><?php next_post(' % &raquo;','','yes') ?></div>
    </div>

    <div class="post">
    <h2 id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <br /><img src="<?php bloginfo('stylesheet_directory'); ?>/images/h1.gif" class="lefth2img" alt="h1" />
    <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>

    <div class="entrytext">
    <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>

    <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>

    <small> <?php edit_post_link('Edit this entry.','',''); ?> </small>

    </div>
    </div>

    <?php comments_template(); ?>

    <?php endwhile; else: ?>

    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>

    <?php endif; ?>

    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • There are a few semi-colons ( ; ) missing:

    <?php echo get_permalink() -add one here and

    the_time('F jS, Y') -add one here and

    <?php the_author() -add one here too

    And anywhere it’s missing, those are the ones I could see.

    Cheers,
    Michael.

    Thread Starter killjoyee

    (@killjoyee)

    thanks heaps for that man.
    so permalinks for articles are now working but page permalinks come up with error not found. try clicking on colophon in the sidebar as thats a page.

    any ideas?

    Nothing obvious that I can see, but I really don’t know how WP 1.5.1.2 handles permalinks, I think things are much simpler with 2.0.

    Maybe try updating your permalinks and see if that makes it happy again. Perhaps you should update to the latest version?

    Maybe someone who knows about all things 1.5ish will come along and figure it out. Sorry!

    Cheers,
    Michael.

    Thread Starter killjoyee

    (@killjoyee)

    okey dokey. thanks for the help though. very much appreciated.

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

The topic ‘tricky permalinks.’ is closed to new replies.