Home Download Buy Blog Forum Support

Odd indenting in PHP file

Odd indenting in PHP file

Postby ecurtis on Mon Sep 24, 2012 12:32 am

I love the re-indent command, however it is driving me crazy in my wordpress / php work. For instance this is what I get:

Code: Select all
   <?php if (have_posts()) : ?>
   <?php while (have_posts()) : the_post(); ?>
   <?php the_content("More..."); ?>
<?php endwhile; ?>
<?php else : ?>
   <p>Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>



This is what I think it should be:

Code: Select all
<?php if (have_posts()) : ?>
      <?php while (have_posts()) : the_post(); ?>
            <?php the_content("More..."); ?>
      <?php endwhile; ?>
<?php else : ?>
            <p>Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>


Any ideas?
ecurtis
 
Posts: 5
Joined: Mon Sep 24, 2012 12:26 am

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 14 guests