Title: Plugin conflict: PHP code for posts and Advanced custom fields
Last modified: August 20, 2016

---

# Plugin conflict: PHP code for posts and Advanced custom fields

 *  [echofoxtrot](https://wordpress.org/support/users/echofoxtrot/)
 * (@echofoxtrot)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-conflict-php-code-for-posts-and-advanced-custom-fields/)
 * When making custom loops to put into a page, I use the plugin PHP Code For Posts
   so that the PHP executes. However, I noticed that if I did so with the Advanced
   Custom Fields plugin active, the loop was rewritten as in this example:
    ` <!--?
   php $thisQuery = new WP_Query('cat=34&posts_per_page=3');<br ?--> while ($thisQuery-
   >have_posts() ) : $thisQuery->the_post(); the_title(); the_content(); get_the_post_thumbnail();
   endwhile; ?>
 *  
 * Of course, the page then just displays the PHP code, or what looks like it, but
   it does not run.
 * I’d be interested in hearing of any workarounds or explanations. (This is not
   an actual problem for me as yet; I was able to deactivate the ACF plugin and 
   just not use it.)
 * Thanks! Hope this helps someone with a similar problem.

The topic ‘Plugin conflict: PHP code for posts and Advanced custom fields’ is closed
to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [echofoxtrot](https://wordpress.org/support/users/echofoxtrot/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-conflict-php-code-for-posts-and-advanced-custom-fields/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
