Best way to check syntax for category template?
-
I’ve been working on designing a new theme for WP 2.3 and so far I’m really happy with the results. However, I have everything working so far except my category.php template returns a blank page no matter what I do to it. I don’t have an archive.php template to call on so I just created a new category.php.and I based it on the index.php page except I removed the call for the sidebar and changed the loop and the CSS to reflect the category (I think) but I’m still having problems. My guess is there is a syntax error. Can someone look and see if there is anything wrong with this section?….
<!–CATEGORY POST CONTENT—>
<div id=”singlecontent” class=”singlestorycontent”>
<p>Category: <?php single_cat_title(); ?></p>
<?php if ( have_posts( ) ) : while ( have_posts( ) ) : the_post( ); ?>
<h2 id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”<?php the_title(); ?>”><?php the_title(); ?></h2> <?php edit_post_link(); ?>
<div class=”meta”> by <?php the_author() ?> | at <?php the_time() ?> on <?php the_date(); ?>
</div><!–Closes meta div–>
<div class=”storycontent”>
<?php the_content( ); ?>
</div><!–Closes storycontent div–><!–COMMENTS–>
<div class=”feedback”>
<?php wp_link_pages(); ?>
<?php comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?>
</div><!–Closes feedback div–>
<?php comments_template(); ?>
<?php endforeach; else: ?>
<p><?php _e(‘Sorry, no posts matched your criteria.’); ?></p>
<?php endif; ?>Or can you recommend a better way to check the syntax for errors? I’ve been all over the WP Doc’s, Forum and Google trying to check this. Since the default and custom theme’s don’t have category templates I don’t have one to compare to. The text editor I use does have a syntax checking feature but it keeps coming up ok.
Thanks!
- The topic ‘Best way to check syntax for category template?’ is closed to new replies.