I have devved a small plugin based on a shortcode. Here's a stripped down version of the code for the shortcode itself:
function lishortcode($liatts) {
extract(shortcode_atts(array(
"li" => get_option('li'),
), $liatts));
foreach ($liatts as $key => $option) {
$li[$key] = $option;
}
$lib=$li[URL];
return $lib;
}
add_filter('widget_text', 'do_shortcode');
add_shortcode('LI', 'LIshortcode');
The URL parameter is one of 5 variables called in the shortcode. All the others work except for this one. Is there a reason for this? The following 2 shortcodes output the same URL:
[LI]
[LI URL="http://www.differenturl.com/somewhere"]