0
votes
1answer
22 views

apply_filters('the_content') - make it ignore shortcodes?

I am using apply_filters('the_content) so I can see properly formatted content inside my wp editor in the backend. However, this also renders the shortcode that's in the content. I want it to ...
0
votes
1answer
26 views

add after content don't work

I am using this code to put some functions after content, but this one don't work. It appear before the content and not after. function add_wb_posts_pagination ($content) { $content .= ...
1
vote
1answer
101 views

Hide content editor for posts after approriate date

I am tuning my new site and i what to disable Content Editor for post created after date X, but for posts that created before that date Content Editor must be on its place.
0
votes
1answer
167 views

Empty string supplied as input when parsing content

I have this code: <?php function mb_find_my_image( $content ) { if( is_home() ) { /* if is home start */ $dom = new domDocument; $dom->loadHTML($content); ...
0
votes
1answer
635 views

Filter/Remove HTML Elements on all posts and pages

I'm working on a migration from Drupal to WP. The database conversion and import went smoothly, but there is a lot of 'crap' in each post content such as divs with inline styles. Basically, in each ...
0
votes
3answers
254 views

How can I return shortcode output to the top of the content?

I have a shortcode called update which is used as follows [update title='' date=''] this is some update, etc. etc. 2 paragraphs or more [/update] This outputs some html that wrap the title, date ...
0
votes
1answer
451 views

Trimming a custom field to a length

I have a custom field added through the Advanced Custom Fields Plugin. I am trying to trim the content of the field down to a set number of words. I have tried to use the excerpt filter and setting ...
0
votes
2answers
1k views

How can I define the RSS feed content length?

I’m trying to shorten the content of my RSS feed. Right now it displays way, way too much for each entry and I’ve tried to select the “Excerpt” in the Syndications setting in my option panel but it ...
0
votes
1answer
43 views

Add a filter to a different custom plugin

Someone has built a custom plugin that adds a textarea on the admin/edit page, and a div on the pub page. I no longer have access to the person who built the custom plugin. I have created a filter ...
0
votes
1answer
101 views

Filtered content appears in the excerpt

I am modifying the content using the "the_content" filter. But this filtering is seen in the excerpts also. Consider the following code, function modify_content($content = ''){ return 'HELLO ...
1
vote
1answer
293 views

remove inline scripts from the_content() produced by plugins?

hey guys, any idea how I could filter all inline javascripts from the content()? thank you