Wordpress PHP help

Status
Not open for further replies.

Drover

New member
Nov 28, 2006
369
1
0
Houston, TX
My php skill are minimal. Any help is much appreciated. Here's my problem - whenever I change the permalink structure in Wordpress to the SEO-friendly /%category%/%postname%/ I get the following error.

Parse error: syntax error, unexpected $end in /home/xxxxxx/public_html/articles/wp-content/themes/silverjacket/single.php on line 27
The code on single.php looks like:

<?php get_header(); ?>

<div id="container">

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

<div class="post">

<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>


<div class="entry">

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

<?php get_sidebar(); ?>

<?php get_footer(); ?>

</div></body>
</html>

Thanks for any help.
 


Yeah, I can't find line #27

It seems is a theme problem, why you don't change the theme and modify the permalink to ses if you receive the same error ??
 
try replacing that with this

Code:
<?php get_header(); ?>

<div id="container">

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

<div class="post">

<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>


<div class="entry">

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


[COLOR=Yellow]     <?php endwhile; else: ?>


<?php endif; ?>[/COLOR]  

    </div></div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
= what I Added
 
My php skill are minimal. Any help is much appreciated. Here's my problem - whenever I change the permalink structure in Wordpress to the SEO-friendly /%category%/%postname%/ I get the following error.

The code on single.php looks like:



Thanks for any help.
Code:
<?php get_header(); ?>

<div id="container">

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

<div class="post">

<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>

<div class="entry">

<?php the_content(); ?>
</div> <!-- closes entry -->
</div> <!-- closes post -->
<?php endwhile; //closes while have posts ?>
<?php endif; //closes if have posts ?>
<?php link_pages('<p><strong>Pages:</strong>','</p>','number'); ?>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

</div></b
 
Status
Not open for further replies.