Link to home
Start Free TrialLog in
Avatar of jbrashear72
jbrashear72

asked on

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

Avatar of jbrashear72
jbrashear72

ASKER

Here is the page:
http://eyelasik.austinfx.com/
ASKER CERTIFIED SOLUTION
Avatar of jbrashear72
jbrashear72

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The comment I added was the fix.
Avatar of Jason C. Levine
Nice work, jbrashear72.  Thanks for sharing the plugin with the community.
Thanks man!