[Resolved] php and apply_filters
I’ve been planning on upgrading from the older WordPress 1.5.X series to 2.X series one of these days. However, I’m attached to something I can easily do in the old version that’s hard for me to figure out in the new version. Here’s a piece of code that echoes in the administration panel of the older version just fine.
<?php $content = apply_filters('the_content', $post->post_content); echo $content; ?>
The problem is that the newer version of WordPress echoes the post content without paragraph or break marks! As near as I can tell from searching and reading this is because the filter being applied is priority 10 instead of priority 11. Whatever that means!
Is there any ‘simple’ way that I can alter the above code to have $content echo with html paragraph marks and line breaks?
- The topic ‘[Resolved] php and apply_filters’ is closed to new replies.