Title: Trying to echo
Last modified: August 22, 2016

---

# Trying to echo

 *  [leandro_S](https://wordpress.org/support/users/leandro_s/)
 * (@leandro_s)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/trying-to-echo/)
 * Hello, I’m trying to echo a <!–nextpage–> tag from a piece of PHP inserted via
   your plugin but as soon as I insert the tag, the plugin stop rendering the PHP
   and outputs the code.
    I have tried other plugins as well, but it also seems 
   that the PHP in this plugins is throwed straight to the browser instead being
   prepocessed by WordPress, so the tags doesn’t seem to be recognized. I have tried:`
   echo "<!--nextpage-->"` And also:
 *     ```
       if(($x+1) % 5 == 0)
       {
       [insert_php]
       <!--nextpage-->
       [/insert_php]
       }
       ```
   
 * [https://wordpress.org/plugins/insert-php/](https://wordpress.org/plugins/insert-php/)

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

 *  Thread Starter [leandro_S](https://wordpress.org/support/users/leandro_s/)
 * (@leandro_s)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/trying-to-echo/#post-5881558)
 * If I divide the tag like this:
    echo “<“.”!”.”–nextpage–“.”>”; It outputs the
   html correctly, but WordPress doesn’t insert the pagination. What really drives
   me crazy is that, even though I thought that the dynamically added content was
   not processed by WordPress, it is, because WordPress is inserting the awfull 
   <p> tags inside the text. I have to add: `<?php remove_filter ('the_content','
   wpautop'); ?>` At the top of the template to prevent the <p> injection. Is there
   a way that I can force the <!–nextpage–> recognition??
 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/trying-to-echo/#post-5881730)
 * leandro_S, I apologize my delay in replying.
 * The code between the [insert_php] and [/insert_php] tags must be valid PHP code.
 * Insert PHP works by putting the code between those two tags through the PHP eval()
   function, then replacing the code between the tags with any output from eval().
 * Tags for WordPress to process or tags for other plugins to process are unlikely
   to work.
 * More here:
 * [http://www.willmaster.com/software/WPplugins/insert-php-wordpress-plugin-instructions.php#inandofitself](http://www.willmaster.com/software/WPplugins/insert-php-wordpress-plugin-instructions.php#inandofitself)
 * The “Code Elements That Won’t Work” section on that page may also be of interest.
 * Will

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

The topic ‘Trying to echo’ is closed to new replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3523853)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/trying-to-echo/#post-5881730)
 * Status: not resolved