I’m going blind tring to find the error…help please
-
I keep getting
Parse error: syntax error, unexpected ‘<‘ in wpcaluwild/wp-content/themes/CalUWildTheme/sidebar3.php on line 20, that reads <?php query_posts(‘showposts=1’); ?>
.
Here’s all the code:
<div id="sidebar3"> <div id="nav"> <ul> <?php wp_list_pages("title_li=&exclude=12,16,23,339");?> </ul> </div> <?php if (is_single()) { echo "<h2>Past Newsletters</h2>"; wp_get_archives('type=postbypost'); } elseif (is_page('home')) { echo "<h2>Latest Newsletter</h2>"; <?php query_posts('showposts=1'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <h2><a>"><?php the_title(); ?></a></h2> <p><?php the_time('F jS, Y') ?> </p> <?php the_excerpt(); ?> </div> <?php endwhile; ?> } elseif (is_page('membership')) { echo "<h2>Membership Form</h2>"; echo "<a href='https://www.mywebsite.com/wpcaluwild/?page_id=16'>Please take a minute to join us by filling out our membership form.</a>"; } }?> </div>
All curly braces and brackets are matched as far as I can see, which according to PHP help is the primary reason for this error message.
Thanks in advance for the answer!
Michael
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘I’m going blind tring to find the error…help please’ is closed to new replies.