Thank you for your response, I was unable to find how to take the content and input it into a string, do you know how to do this?
The example puts the value in a string variable called $content. You could do whatever you want with it inside the shortcode’s Function, caption_shortcode in this example.
If you want access to a string variable outside that function, add
global $aumx_shortcodetext;
$aumx_shortcodetext = $content;
into the shortcode’s Function. And add the same global statement to whatever code you want to use with the value.
Took me a minute but I got it, thanks for your help!
One more quick question, what is $atts?
function content_set1( $atts, $caption = null ) {
}
$atts would be an empty string in your case. Otherwise, they are used to store the parameters in a shortcode call, such as [mytable cols=”3″] where cols would be the parameter.
ok, thank you for your help!