PHP help

Out of context: Reply #11

  • Started
  • Last post
  • 13 Responses
  • MrDaro0

    this is my entire code

    <?php get_header(); ?>
    <?php

    $cat_array = explode (',',$usercategories);
    if (in_category(array($cat_array)) ) {
    include(TEMPLATEPATH."/portfolio_single.php");
    } else {
    ?>

    <div id="main"><!-- Begin Main -->
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="pagetitle"><h1><?php the_title(); ?></h1></div>
    <div class="entry">
    <div class="entry_content">
    <?php echo $usercategories;?>

    <?php the_content(); ?>
    <div class="entry commententry">
    <?php comments_template(); ?>
    </div>
    <?php endwhile; else: ?>
    <p>Sorry, no posts matched your criteria.</p>

    <?php endif; ?>
    </div><!-- END Entry Content -->
    </div><!-- END Entry -->

    </div><!-- End Main -->
    <div class="clear">&nbsp;</div>
    <?php get_footer(); }?>

View thread