Combining Pages strips out p tags, which I want to be automaticly added
-
I’m trying to add two pages worth of content on one page like this:
$args = array( 'post_type' => 'page', 'post__in' => array( '9', // About Us Part 1 '13' // About Us Part 2 - Right Side ), 'order' => 'asc' ); $the_query = new WP_Query( $args ); while($the_query->have_posts()) : $the_query->the_post(); $part[] = get_the_content(); endwhile; echo $part[0]; echo $part[1];
This works for bringing in two pages of content, but the automatic addition of p tags doesn’t happen, and I’m wondering why. It seems like everyone wants to get rid of the p tags, but I need them! Using HTML view is not an option. If anyone can help, I’d appreciate it.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Combining Pages strips out p tags, which I want to be automaticly added’ is closed to new replies.