Title: Major Include issue&#8230;.
Last modified: August 19, 2016

---

# Major Include issue….

 *  [jen2swt](https://wordpress.org/support/users/jen2swt/)
 * (@jen2swt)
 * [18 years ago](https://wordpress.org/support/topic/major-include-issue/)
 * Hi all
    I have included the following code into my site’s index page;
 * <?php
    /* Short and sweet */ define(‘WP_USE_THEMES’, true); require(‘./wp/wp-
   blog-header.php’); ?>
 * While it does include the posts….it’s not displaying them properly.
 * Example post entry:
    Hi there. How are you? I am fine.
 * In reality I had entered the post with a space between each line;
    Hi there.
 * How are you?
 * I am fine.
 * It’s like it’s not picking up any html coding for some reason. Anyone have any
   ideas? I have a site to launch like yesterday and can not until I figure out 
   this problem.
 * Thanks for all the help

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [18 years ago](https://wordpress.org/support/topic/major-include-issue/#post-787774)
 * WordPress removes empty paragraph tags between paragraphs (correct code behavior).
   If you want more space between your paragraphs, adjust it with css in your theme’s
   style.css.
 *  [Justin Tadlock](https://wordpress.org/support/users/greenshady/)
 * (@greenshady)
 * [18 years ago](https://wordpress.org/support/topic/major-include-issue/#post-787787)
 * Are you using `the_excerpt()` to pull the content?
 *  Thread Starter [jen2swt](https://wordpress.org/support/users/jen2swt/)
 * (@jen2swt)
 * [17 years, 12 months ago](https://wordpress.org/support/topic/major-include-issue/#post-787875)
 * Im just using the code above. It’s like it’s not reading the CSS for some reason.
   When I view the post from the wp directory it’s fine and perfect.
 *  Thread Starter [jen2swt](https://wordpress.org/support/users/jen2swt/)
 * (@jen2swt)
 * [17 years, 12 months ago](https://wordpress.org/support/topic/major-include-issue/#post-787889)
 * Here is my complete code: I just added the Start and End code
 *     ```
       <?php
       /* Short and sweet */
       define('WP_USE_THEMES', false);
       require('./wp/wp-blog-header.php');
       ?>
       <?
       include('header.php');
       ?>
   
       <div id="content">
   
       <!-- Start the Loop. -->
        <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
   
        <!-- The following tests if the current post is in category 3. -->
        <!-- If it is, the div box is given the CSS class "post-cat-three". -->
        <!-- Otherwise, the div box will be given the CSS class "post". -->
        <?php if ( in_category('3') ) { ?>
                  <div class="post-cat-three">
        <?php } else { ?>
                  <div class="post">
        <?php } ?>
   
        <!-- Display the Title as a link to the Post's permalink. -->
        <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
   
        <!-- Display the Post's Content in a div box. -->
        <div class="entry">
          <?php the_content(); ?>
        </div>
   
        </div> <!-- closes the first div box -->
   
        <!-- Stop The Loop (but note the "else:" - see next line). -->
        <?php endwhile; else: ?>
   
        <!-- The very first "if" tested to see if there were any Posts to -->
        <!-- display.  This "else" part tells what do if there weren't any. -->
        <p>Sorry, no posts matched your criteria.</p>
   
        <!-- REALLY stop The Loop. -->
        <?php endif; ?>
   
       </div>
   
       <?
   
       include('footer.php');
       ?>
       ```
   
 * If I set the define(‘WP_USE_THEMES’, false); to true it doesn’t do anything except
   make a duplicate entry on my index page….for the life of me I just can’t get 
   it to call on the wp’s theme css…
 *  [Justin Tadlock](https://wordpress.org/support/users/greenshady/)
 * (@greenshady)
 * [17 years, 12 months ago](https://wordpress.org/support/topic/major-include-issue/#post-787970)
 * What’s the URL to your site?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Major Include issue….’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [Justin Tadlock](https://wordpress.org/support/users/greenshady/)
 * Last activity: [17 years, 12 months ago](https://wordpress.org/support/topic/major-include-issue/#post-787970)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
