Solved

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

Posted on 2011-02-15
5
458 Views
Last Modified: 2012-05-11
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
Comment
Question by:jbrashear72
  • 4
5 Comments
 
LVL 3

Author Comment

by:jbrashear72
ID: 34902593
Here is the page:
http://eyelasik.austinfx.com/
0
 
LVL 3

Accepted Solution

by:
jbrashear72 earned 0 total points
ID: 34902631
0
 
LVL 3

Author Closing Comment

by:jbrashear72
ID: 34902634
The comment I added was the fix.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 34903229
Nice work, jbrashear72.  Thanks for sharing the plugin with the community.
0
 
LVL 3

Author Comment

by:jbrashear72
ID: 34903243
Thanks man!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

WordPress has made it easy to create scalable sites based on their powerful CMS, but as great as WordPress is, there are some SEO issues that haven’t been addressed out of the box.  Fortunately these problems can be solved with a few plugins.  The f…
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now