• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 467
  • Last Modified:

How do I get wordpress page content with no class or tags returned?

I want to bring back the content of a page into my home page. I have already styled the content the way I want it to look but when I load the URL I get the text inside <p> </p>

I already have:
<p class="text1">
PHP CODE HERE
</p>

The extra Paragraph tag is breaking my Paragraph Tag.
How can I fix this?
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> 
					<!-- Main content -->
 					
							<?php the_content(); ?>
						

				
<?php endwhile; ?>

Open in new window

0
jbrashear72
Asked:
jbrashear72
  • 4
1 Solution
 
jbrashear72Author Commented:
Here is the page:
http://eyelasik.austinfx.com/
0
 
jbrashear72Author Commented:
0
 
jbrashear72Author Commented:
The comment I added was the fix.
0
 
Jason C. LevineNo oneCommented:
Nice work, jbrashear72.  Thanks for sharing the plugin with the community.
0
 
jbrashear72Author Commented:
Thanks man!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now