runPHP adding a space (2 posts)

  1. kappaluppa
    Posted 9 years ago #

    I am trying to use this code in a post:
    <?php query_posts('cat=6'); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php previous_post(); ?> <?php next_post(); ?>
    <b><a>" rel="bookmark"><?php the_title(); ?></a></b>
    <?php endwhile; else: ?>
    <?php endif; ?>

    runPHP adds a space between < & ?

    But runPHP works with other php such as include
    What do I need to do?

  2. kappaluppa
    Posted 9 years ago #

    Well, incase anyone stumbles across this post and is having the same problem, here is the solution to the added space:
    disable "WordPress should correct invalidly nested XHTML automatically" in Options/Writing.

    I still can't get the categories to show in the page, but at least I'm not having the php problem anymore.

Topic Closed

This topic has been closed to new replies.

About this Topic