wpstyles
Member
Posted 1 year ago #
This is probably a question for the plugin author but as Galleria WP does not seem to have an active support I'll just try here.
Simply put, I want to add the shortcode [galleria] to display a slideshow, but rather than showing it in the_content, I want to be able to add it using custom fields, thus straight into the code inside the loop.
I have tried using <?php do_shortcode("[galleria]"); ?> without success. Read somewhere that the shortcode needs to be registered.
Any help is appreciated.
alegzandra22
Member
Posted 10 months ago #
try adding this :
<?php add_shortcode('galleria','gallery_function'); ?>
trixienolix
Member
Posted 7 months ago #
I'd also like to know this. your suggested code doens't work - sure;y there's something needed in functions.php?
wpstyles
Member
Posted 7 months ago #
`<?php echo do_shortcode('[galleria thumbnail="bottom-scroll"]'); ?>
I needed to add an echo for it to show :)
agolds481
Member
Posted 2 months ago #
Neither of these shortcodes seemed to work for me. I seem to just get the basic WP gallery. Anything that I might be missing here?
The call is inside the loop, and I tried all the different options presented above. Could it be my WP install? 3.3.1?