Solved

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

Posted on 2011-02-15
5
457 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Like there are many different versions of Wordpress, there are also a handful of related side projects WordPress users should be familiar with.   All of these projects are open source and GPL licensed, which means there are few restrictions to us…
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…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

707 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

12 Experts available now in Live!

Get 1:1 Help Now