I would like to use the do_shortcode in a file template wordpress theme to generate the slider
direct function layerslider ($ id) gives fatal error function not found
thanks a lot
stefano
Hey riga1975!
Can you please elaborate on the changes you would like to make? In which file are you using do_shortcode? Can you please post the code you are using?
Best regards,
Yigit
we put this code
<? php echo do_shortcode (‘[layerslider id = “3”]’); ?>
thanks a lot
Hey!
Which file are you editing and to which line are you adding this code?
Cheers!
Yigit
loop_page.php
Hi riga1975!
Can you please show us, what code you use?
Cheers!
Basilis
Hi!
Use the following code
<? php echo do_shortcode ('[layerslider id="3"]'); ?>
Best regards,
Basilis
done but as you can see even yourself
http://servizi.samadent.net/dentista-consigliato/ablazione-tartaro/
It does not work
Hey!
Can you please provide us your backend access as private reply?
Regards,
Basilis
Hi!
Try to use the theme’s default layer slider shortcode:
echo do_shortcode("[av_layerslider id='3']")
Adjust the id if necessary.
Cheers!
Ismael
Hello, sorry for the delay, I put your code but does not change anything, same result as the code that I put, I
Other ideas?
thanks a lot
stefano
Hey!
This used to work before but now the default layer slider shortcodes isn’t working even on our installation. I think what you need to is to purchase a the layer slider plugin to enable the shortcode back. You need to disable the default layer slider plugin: http://kriesi.at/documentation/enfold/deactivate-the-layerslider-plugin/
Or add the layer slider using the advance layout builder on each page.
Cheers!
Ismael