Title: Problem inserting PHP with exec php and another plugin
Last modified: August 19, 2016

---

# Problem inserting PHP with exec php and another plugin

 *  [emergentinc](https://wordpress.org/support/users/emergentinc/)
 * (@emergentinc)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/problem-inserting-php-with-exec-php-and-another-plugin/)
 * I use the datafeedr plugin for a site of mine and also use exec php so I can 
   insert PHP into pages and posts. Everything works fine until I try to insert 
   PHP into an HTML module within Datafeedr.
 * I have disabled the visual editor, but when I try to post this code:
 *     ```
       <?php
       $keyword = the_title("", "", false);
       $text .= '[phpbay]' . $keyword . ', "20", "", ""[/phpbay]';
       echo phpBayPro($text);
       ?>
       ```
   
 * It ends up looking like this after I save it.
 *     ```
       <p><?php<br />
       $keyword = the_title("", "", false);<br />
       $text .= '[phpbay]' . $keyword . ', "20", "", ""[/phpbay]';<br />
       echo phpBayPro($text);<br />
       ?></p>
       ```
   
 * At first I figured it was because it is with a WYSIWYG, but I have made sure 
   that I was in CODE mode rather than VISUAL and have now just disabled the visual
   editor altogether.
 * Any ideas of what I should try?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [cpreston](https://wordpress.org/support/users/cpreston/)
 * (@cpreston)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/problem-inserting-php-with-exec-php-and-another-plugin/#post-988298)
 * I’m having the same exact issue. Will let you know if I find anything
 *  [Konstantin Kovshenin](https://wordpress.org/support/users/kovshenin/)
 * (@kovshenin)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/problem-inserting-php-with-exec-php-and-another-plugin/#post-988299)
 * Write it in one line. If it gets too complicated use require() or include(). 
   There were also hacks for turning off the auto-linebreak feature in WordPress,
   but that’s definitely not a good idea.
 *  [wgstjf](https://wordpress.org/support/users/wgstjf/)
 * (@wgstjf)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/problem-inserting-php-with-exec-php-and-another-plugin/#post-988355)
 * Did anyone get the exec-php plugin working in the pages section of datafeedr?
   I have made sure that I do not have any other formatting in the content. It seems
   that the exec-php plugin just doesn’t execute on the datafeedr content…
 * Any help greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problem inserting PHP with exec php and another plugin’ is closed to 
new replies.

## Tags

 * [datafeedr](https://wordpress.org/support/topic-tag/datafeedr/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 3 replies
 * 4 participants
 * Last reply from: [wgstjf](https://wordpress.org/support/users/wgstjf/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/problem-inserting-php-with-exec-php-and-another-plugin/#post-988355)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
