Shortcode doesn't work from another shortcode
-
Hi,
I’m developing my own shortcode with a basic tags selector for filter with your plugin and show images that I desire.
If I use your shortcode from Admin Editor Page there is no problem and works fine. But I want to do it dynamically based in a selected tags so I need to call do_shortcode for that generating tags_ids string.
The following from my own PHP is not working :
echo do_shortcode(‘[ngg_images source=”tags” tag_ids=”‘.$varTags.'” display_type=”photocrati-nextgen_basic_thumbnails”]’);
Where variable $varTags is the String that I said, comma formatted as : “blue,sky,cloud”
When do_shortcode calls ngg_images I get the following error :
Warning: addslashes() expects parameter 1 to be string, array given in <MY_SITE>/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/datamapper/package.module.datamapper.php on line 1337
no images were found
Hope you can help me with this problem… Thanks and great job!!
The topic ‘Shortcode doesn't work from another shortcode’ is closed to new replies.