The the-content tag has no wiki summary.
0
votes
1answer
20 views
Retrieve page content and pass to PHP?
I'm new to WP but not PHP.
I've a custom page that I have a PHP call to do some processing on the page content.
the_content() even when enclosed in a function call
<?php ...
2
votes
1answer
31 views
What functions are included in apply_filter('the_content')
There is a function called apply_filter where you can use it like this:
echo apply_filter('the_content', $my_content);
It add formatting tags and clean up the content.
Trac or docs
I looked in ...
0
votes
1answer
37 views
the_content not working on one of two Multisite sites
I have a multisite with two subsites (sub-domain setup)
both sites have the same theme, same plugins but the first one is in Hebrew and the Second in English.
On certain templates (not all) in the ...
1
vote
2answers
67 views
Output 2 items within the Loop
I have a query that loops through <li>'s and displays the number of <li>'s I have. Is there a way I can make the loop pull 2 <li>'s at a time rather than one?
// 5 list items
...
0
votes
2answers
45 views
Strip <p> from <blockquote> or something better?
Looking for some help on something that has me really contemplating not using blockquotes for the moment!
I have this code:
<?php
$show_after_p = 1; $content = apply_filters( 'the_content', ...
0
votes
1answer
45 views
How to hide <pre> and <table> content from auto-generated excerpts?
Auto-generated excerpts just take the first x characters from the post content and cut that off at a certain point.
When there is a table or pre element in that part, the excerpt looks rather useless ...
1
vote
2answers
58 views
How can i remove all html tags from get_the_content()?
i want to remove all html tags from content like <p>, <br>, <img>, <a> i tried strip_tags()
also tried
$content = get_the_content();
$content = apply_filters('the_content', ...
0
votes
2answers
60 views
Static page homepage not showing the_content
I must be doing something wrong here.
I setup my site with a static front page using front-page.php. I created a page in the admin with a title and chose the front-page.php in the template dropdown.
...
2
votes
1answer
33 views
Display the Content of a Post with qTip2
How would/should I use qTip2 to display the the_content(); of a WordPress post?
I've been trying to accomplish this for a month now. I got it working once, but it wouldn't display the content that ...
0
votes
2answers
144 views
Removing any and all inline styles from the_content()
For one of my current projects, I had to transfer blogposts from an old Wordpress site to my project.
Things went smoothly until I've seen that all the posts were copy pasted from Word, leaving this ...
0
votes
0answers
33 views
custom siderbar with custom cat post widget does not include content
I am trying to make a template with a left sidebar. In that sidebar I want to insert custom cat post query using a text widget so I can format it correctly the way I want. However when I do The ...
2
votes
2answers
71 views
How to show video from specific category on sidebar?
I need to get video and content from recent posts in specific category called "Video" and show it on my sidebar.
The problem is when I need to have limited text content. so, when I use the_content(); ...
-2
votes
1answer
22 views
How to build or store lots of custom content
I'm setting up a new WordPress site and going forward we are going to be building a lot of custom interactions that will need to be stored within WordPress. When I say custom interactions I'm talking ...
-1
votes
1answer
72 views
Add read more to the_content
Hi I have a custom post type that i've truncated on the archives pages using this:
function limit_the_content($content){
$word_limit = 35;
$words = explode(' ', $content);
return implode(' ', ...
1
vote
0answers
97 views
Can I insert the feature image inside the content, after any paragraph?
I want to display the feature image inside a post text, perhaps after the third or fourth paragraph (or any) into the_content.
Searching the site I've found this code, by Amit:
...