php do_shortcode
-
I am using this plugin nuvuglide is a third party woocommerce plugin. I want to hard code it on the home page this is the code that the plugin author says to use
‘<?php do_shortcode(‘[nuvuglide type=”post” order=”ASC” order_by=’name’ show_excerpt=”true” show_date=”true” show_title=”true” show_gallery=”true” num_images=”4″ ]’); ?>’
i get this error Parse error: syntax error, unexpected T_STRING in /home/bessobar/public_html/veeandjade.com/wp-content/themes/mystile-child/index.php on line 36
I’ve tried
‘<?php echo do_shortcode(‘[nuvuglide type=”post” order=”ASC” order_by=’name’ show_excerpt=”true” show_date=”true” show_title=”true” show_gallery=”true” num_images=”4″ ]’); ?>’
I tried double quotes instead of single and it doesn’t seem to make a difference.
I’ve also tried
‘echo apply_filters( ‘the_content’,’ [nuvuglide] ‘);’
none of which works.
Any ideas where I could be going wrong please
- The topic ‘php do_shortcode’ is closed to new replies.