Shortcode Not Working
-
Hello,
I’ve extended page template by adding two custom fields.
I’m trying to display one of these in one of the shortcode templates available with WP Bakery Plugin.
Here’s the code I’m using:$ID = ‘{{ post_data:ID }}’;
$output .= do_shortcode(‘[pods name=”page” id=”‘. $ID .'” template=”Data/e Spettacolo”]’);
echo $output;everything works fine if I don’t use the $ID variable, but If i use it I display nothing. If I try to print the content of the $ID variable it’s the correct ID of the page.
I’m really stuck at this, can you please help?Thank you in advance,
Patrizia
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Shortcode Not Working’ is closed to new replies.