title: Create my own shortcode with php
body: <p><strong>I want create my own shortcode</strong></p>
  
  <p><strong>In the text i can put the shortcode for example :</strong></p>
  
  <blockquote>
    <p>The people are very nice , [gal~route~100~100] , the people are very
    nice , [ga2l~route2~150~150]</p>
  </blockquote>
  
  <p>In this expression you can see the shortcodes into [ ] tags , i want show the text without this shortcodes and replace it for gallery ( with php include and read the path gallery from shortcode)</p>
  
  <p>I think use this method , as you can see down , but none of them works for me , however people here can tell me something or give me any idea which can help me</p>
  
  <pre><code> &lt;?php
   $art_sh_exp=explode("][",html_entity_decode($articulos[descripcion],ENT_QUOTES));
  
   for ($i=0;$i&lt;count($art_sh_exp);$i++) {
  
   $a=array("[","]"); $b=array("","");
  
   $exp=explode("~",str_replace ($a,$b,$art_sh_exp[$i]));
  
  
   for ($x=0;$x&lt;count($exp);$x++) { print
   "".$exp[1]."-".$exp[2]."-".$exp[3]."-&lt;br&gt;"; }
  
   } ?&gt;
  </code></pre>
  
  <p>Thanks </p>