Title: No shortcode is generated
Last modified: October 21, 2025

---

# No shortcode is generated

 *  [hbee](https://wordpress.org/support/users/heatherbodlak/)
 * (@heatherbodlak)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/no-shortcode-is-generated/)
 * Hello
 * I installed the plugin, and added a PHP script, selecting “short code (Manual)”
   from the dropdown for Placement Method. but when I save the snipped, it reverts
   to “Automatic”, and no shortcode is generated (when i go to the snipped listing,
   the column “Snippet Placement” has nothing.
 * this is the code I have pasted:
 *     ```wp-block-code
       <?phprequire_once("conexion.php");require("paginacion.php");?><?php$sql= "SELECT * FROM decesos";$res=mysql_query($sql,$con);$total = mysql_num_rows($res);$pg = $_GET['page'];$cantidad = 8;$paginacion = new paginacion($cantidad, $pg);$desde = $paginacion->getFrom();$sql1= "SELECT * FROM decesos LIMIT $desde,8";$res1=mysql_query($sql1,$con);$url = "despedidas.php?";$classCss = "numPages";	$back = "&laquo;Atras";$next = "Siguiente&raquo;";$paginacion->generaPaginacion($total, $back, $next, $url, $classCss);	while($row = mysql_fetch_array($res1))	{	?>    <tr height="80">    <td><p align="center" style="margin-bottom: -8px;"><img src="http://www.tanatoriossanantonio.com/wp-content/uploads/2014/06/cruz.jpg"; height="100"; width="75" /></p>    <h3 align="center" style="color:#900"><?php echo $row["nombre"];?></h3>	<h5 align="center">	<?php	echo $row["fallecimiento"];    echo '<br />';	echo $row["confortado"];	echo "<br />";	echo $row["entierro"];	echo "<br />";	echo $row["tanatorio"];	echo ", sala nª:";	echo $row["sala"];	?>    <div id="veresquela" align="right">    <a href="http://www.tanatoriossanantonio.com/esq?id=<?php echo $row["id"];?>" style="text-decoration:none; color:#999">    Ver esquela    </a>    </div> <div id="enviopesame" align="left">    <a href="http://www.tanatoriossanantonio.com/envie-su-pesame/" style="text-decoration:none; color:#999">    Envíe su pésame    </a><img style="margin-top:-10px; margin-bottom: 10px;" src="http://www.tanatoriossanantonio.com/wp-content/uploads/2014/06/sep-falecidos.jpg" />    <p />    </div>    <?php	}	?>    </h5>    </td>    </tr>    </table>    <?php$url = "despedidas.php?";$classCss = "numPages";	$back = "&laquo;Atras";$next = "Siguiente&raquo;";$paginacion->generaPaginacion($total, $back, $next, $url, $classCss);?>
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fno-shortcode-is-generated%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [anjalixyzscripts](https://wordpress.org/support/users/anjali94/)
 * (@anjali94)
 * [7 months ago](https://wordpress.org/support/topic/no-shortcode-is-generated/#post-18694095)
 * Hello [@heatherbodlak](https://wordpress.org/support/users/heatherbodlak/) ,
 * Sorry for the late response.
 * Sometimes the “Placement Method” may not persist due to a minor database or cache
   issue. A simple **deactivate and reactivate** of the plugin can often resolve
   this and allow the shortcode to be generated correctly.
 * Also, we noticed that your snippet uses deprecated `mysql_*` functions (`mysql_query`,`
   mysql_num_rows`, etc.), which can trigger warnings or prevent execution on PHP
   7+ sites. Updating these to `mysqli_*` or `PDO` functions is recommended to ensure
   compatibility with modern PHP versions.
 * Once these points are addressed, your snippet should save with **“Shortcode (
   Manual)”** and generate a shortcode that you can use in your pages/posts.
 *  Thread Starter [hbee](https://wordpress.org/support/users/heatherbodlak/)
 * (@heatherbodlak)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/no-shortcode-is-generated/#post-18710632)
 * Thank you for your reply. I need to see if i am able to edit that PHP code (i’m
   not a programmer!)

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

The topic ‘No shortcode is generated’ is closed to new replies.

 * ![](https://ps.w.org/insert-php-code-snippet/assets/icon-128x128.png?rev=1800967)
 * [Insert PHP Code Snippet](https://wordpress.org/plugins/insert-php-code-snippet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php-code-snippet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php-code-snippet/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [hbee](https://wordpress.org/support/users/heatherbodlak/)
 * Last activity: [6 months, 3 weeks ago](https://wordpress.org/support/topic/no-shortcode-is-generated/#post-18710632)
 * Status: not resolved