Title: RunPHP and RSS(2)
Last modified: August 18, 2016

---

# RunPHP and RSS(2)

 *  [hnldesign](https://wordpress.org/support/users/hnldesign/)
 * (@hnldesign)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/runphp-and-rss2/)
 * I’ve been looking all over for a solution to a problem I had with James Van Lommel’s
   RunPHP plugin.
 * The trouble was that whenever RunPHP was activated, the feed crashed on the first
   post that used the plugin, stopping output directly after the CDATA section.
 * After an elaborate search, I found that I was apparantly the only one on the 
   internet suffering from this problem (or perhaps my searching skills aren’t as
   good as I thought).
 * Anyway, I solved the problem, so for anyone experiencing similar problems, here’s
   a solution:
 * Edit the RunPHP.php plugin-file and find the “// Functionality” section. Then,
   add // in front of every line containing ‘rss’ :
 * // Functionality
    add_filter(‘wp_head’, array(‘runPHP’, ‘DetermineAllEvaldPosts’));//
   add_action(‘rss_head’, array(‘runPHP’, ‘DetermineAllEvaldPosts’)); //add_action(‘
   rss2_head’, array(‘runPHP’, ‘DetermineAllEvaldPosts’)); //add_action(‘atom_head’,
   array(‘runPHP’, ‘DetermineAllEvaldPosts’)); add_action(‘rdf_header’, array(‘runPHP’,‘
   DetermineAllEvaldPosts’));
 * add_filter(‘the_content’, array(‘runPHP’, ‘EvalContent’), 1);
    //add_filter(‘
   the_content_rss’, array(‘runPHP’, ‘EvalContent’), 1); //add_filter(‘the_excerpt_rss’,
   array(‘runPHP’, ‘EvalContent’), 1);
 * This solved my problem, alas: there’s no php left in my feed, but that’s not 
   a problem for me. So if that DOES trouble you and if you can find another way
   of dealing with this, please let me (us) know!
 * I hope this was helpful!
 * Regards,
    hnldesign
 * NB: I forgot to untag the ‘this is a support question’ field. As it is, this 
   is no question, but a possible solution. Thanks 🙂

The topic ‘RunPHP and RSS(2)’ is closed to new replies.

## Tags

 * [cdata](https://wordpress.org/support/topic-tag/cdata/)
 * [RSS](https://wordpress.org/support/topic-tag/rss/)
 * [section](https://wordpress.org/support/topic-tag/section/)

 * 0 replies
 * 1 participant
 * Last reply from: [hnldesign](https://wordpress.org/support/users/hnldesign/)
 * Last activity: [19 years, 12 months ago](https://wordpress.org/support/topic/runphp-and-rss2/)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
