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

learn more… | top users | synonyms

0
votes
2answers
2k views

Get the Page Content,without generating HTML

I want to get the page content (so i can parse the tags/short-codes in it), but i don't want to output the result itself to the browser (i.e. echo=0). I tried get_the_content(); but its the same ...
2
votes
1answer
856 views

the_excerpt(), get_the_excerpt() and the_content() all killing “the Loop”

Before I call the_excerpt(), the_permalink() displays the correct thing. Afterwards, it does not... <?php global $query_string; //strip out the ...
0
votes
1answer
807 views

How do I pull excerpts from pages?

So I enabled custom excerpts on my pages with this function. add_action('init', 'page_excerpts'); function page_excerpts() { add_post_type_support( 'page', 'excerpt' ); } However, When I enter ...
1
vote
2answers
2k views

Content/Excerpt length control for a specific loop?

Is it possible to control the length of the content or excerpt for a specific query/loop? I have come across the following code, but this changes the length for all excerpts, I want it focused on a ...
0
votes
2answers
1k views

Best way to strip the_content of html on the front end?

What is the best way to strip *the_content* of html tags and needless spaces on the front end? I'm building a special use theme that needs to allow users who can edit_post to make changes on the front ...
0
votes
2answers
425 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 ...
1
vote
2answers
362 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
605 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 ...
0
votes
2answers
211 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
809 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, ...