I want create my own shortcode
In the text i can put the shortcode for example :
The people are very nice , [gal~route~100~100] , the people are very nice , [ga2l~route2~150~150]
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)
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
<?php
$art_sh_exp=explode("][",html_entity_decode($articulos[descripcion],ENT_QUOTES));
for ($i=0;$i<count($art_sh_exp);$i++) {
$a=array("[","]"); $b=array("","");
$exp=explode("~",str_replace ($a,$b,$art_sh_exp[$i]));
for ($x=0;$x<count($exp);$x++) { print
"".$exp[1]."-".$exp[2]."-".$exp[3]."-<br>"; }
} ?>
Thanks