Displays the contents of the current post. This template tag must be used within The_Loop.

learn more… | top users | synonyms

1
vote
2answers
378 views

the_content is always surrounded by paragraphs (how to disable or remove them)?

the_content is always surrounded by paragraphs, it doesn't matter if I'm in HTML view and there's nothing there. Does WordPress have a function to remove them? IS there any way?
2
votes
1answer
698 views

Add span to the first letter of post

Example post <p>Lorem ipsum dolor sit amet</p> <p>Morbi elementum odio vel tortor adipiscing vel tempor risus ullamcorper.</p> What I have done : function ...
18
votes
9answers
13k views

Stop Wordpress Wrapping Images In A “P” Tag

I have searched high and low for a simple solution to this, but to no avail. Wordpress keeps on wrapping my images in p tags and because of the eccentric nature of the layout for a site I am working ...
0
votes
2answers
459 views

How to add multiple the_content or something like that?

ok... let me explain: i have an example post in wp admin and i want to add : some text (already added via the posts editor) some custom stuff (some taxonomy that i have already added) some videos ...
0
votes
1answer
2k views

How do I show current post content in the header?

I'm trying to add the post content in the header but for some reason it doesn't show anything. However it does retrieve the post content. I wrote this: <div <?php post_class() ?> ...
0
votes
2answers
217 views

append_content help

i have a function in my plugin append_the_content($content) this is used to display my function inside the post, but it is coming before the post, i want to make it after the post, for this i tried ...
1
vote
2answers
815 views

How to apply content filter permanently?

I have the following temporary filter to fix a content error. We have data in our posts that have 4 digit zip codes, because the leading zero was cut when the original file was created. (For instance, ...