Blutarsky
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Batch processing all the postsI need to read each post (in a “batch” fashion), modify some post content and title, and store.
Forum: Fixing WordPress
In reply to: Mass delete unused tags & relationshipsAnyone has the same problem as me?
Forum: Fixing WordPress
In reply to: Altered post formattingME STUPID!!!!!!!!
I’ve changed the code and using get_the_content in place of the_content!!!!ME STUPID TWICE!!!!!!!!
Forum: Fixing WordPress
In reply to: Altered post formattingNow I have tried to add a new filter to the_content but regardless the priority I give to it, it is not applied.
Something is screwed up in filters, what should i do?
This is what appears when debbugging filters:
>>>>> the_content -10000 feedwordpress_preserve_syndicated_content 0 qtrans_useCurrentLanguageIfNotFoundShowAvailable 9 wpcf7_the_content_filter 10 wptexturize convert_smilies convert_chars wpautop prepend_attachment HackadelicTOCcollectTOC5 my_content 11 do_shortcode 50 seo_friendly_images 99 wp_related_posts_auto 10000 feedwordpress_restore_syndicated_content
Forum: Fixing WordPress
In reply to: Are filters sticky???
Forum: Fixing WordPress
In reply to: Altered post formattingNo filters left around, all plugins disabled…. in the post editor, extra <p> breaks are inserted as always…..looks like the default WP formatting beheaviour is disabled…. wonder if some theme behavior (filters, hooks?) traces are left into the database somewhere….
Forum: Fixing WordPress
In reply to: Altered post formattingI have tried to change theme and formatting is ok…. so it’s atheme relate problem.
When disabling all plugins, the option_value field in wp_options is correctly set to: a:0:{}….
I should investigate further on seeking for unwanted filters somewhere…
Forum: Fixing WordPress
In reply to: Altered post formattingI have added a function into functions.php to list active hooks & filters, to debug who is filtering the_content().
What is strange is that although disabling ALL the plugins, they still appear into the list of filters attached to the_content().
Wondering if this is by design or not.
However also with plugins disbled the formatting problem is still there. All the text seems squeezed with no line breaks.
Forum: Fixing WordPress
In reply to: Adding & removing filters – Rookie questionThis means that the add_filter doesn’t record any value in the WP database permanently, it just “lives” during the “transaction” of all the php documents involved during browser page load. Once the page has been loaded completely in the browser, there are no filters hang somewhere. You load another page, and it all starts from scratch. Correct?
Forum: Fixing WordPress
In reply to: Adding & removing filters – Rookie questionWhat happens if you place the add_filter call in functions.php?
It will be executed every time functions.php is loaded?
Will this scramble WP, because of multiple add_filter calls, or WP will simply ignore subsequent calls?
Forum: Fixing WordPress
In reply to: How to exclude [caption] from rss feed?I have tested the code either in a plugin or in functions.php… seems there’s no call to “the_content_rss” neither “the_content” (tried both).
What I’m doing wrong?Forum: Fixing WordPress
In reply to: How to exclude [caption] from rss feed?Guys I’m trying to modify the content of my feed.
Would like to truncate, format & trim the body of each post appearing in the feeds.I have done the following, in functions.php in my theme folder:
function RSS_headlines($content) { $content = my_trim_function($content); return $content; } add_filter('the_content_rss','RSS_headlines');
But nothing changes, why is that?
Forum: Fixing WordPress
In reply to: How to change RSS outputWalnut thanks!
Forum: Fixing WordPress
In reply to: How to change RSS outputHelp anyone?
Forum: Fixing WordPress
In reply to: How to change RSS outputPizza tonight? ??