In WordPress. Got this shortcode in my functions.php
function amaranthe_buy_tickets( $atts, $content = null ) {
extract(shortcode_atts(array(
‘link’ => ‘#’,
‘target’ => ”,
‘variation’ => ”,
‘size’ => ”,
‘align’ => ”,
), $atts));
$style = ($variation) ? ‘ ‘.$variation. ‘_gradient’ : ”;
$align = ($align) ? ‘ align’.$align : ”;
$size = ($size == ‘large’) ? ‘ large_button’ : ”;
$target = ($target == ‘blank’) ? ‘ target=”_blank”‘ : ”;
$out = ‘‘ .$content. ‘‘;
return $out;
}
add_shortcode(‘buy-tickets’, ‘amaranthe_buy_tickets’);
in my template file where I want the shortcode to display, I have this
and in the post, I have this
[buy-tickets]Tickets[/buy-tickets]
in the output, all I get is this
for some reason, the content is missing.