Forums

How do I add shortcode for Galleria WP plugin right in the code! (5 posts)

  1. 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.

  2. alegzandra22
    Member
    Posted 10 months ago #

    try adding this :
    <?php add_shortcode('galleria','gallery_function'); ?>

  3. 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?

  4. wpstyles
    Member
    Posted 7 months ago #

    `<?php echo do_shortcode('[galleria thumbnail="bottom-scroll"]'); ?>

    I needed to add an echo for it to show :)

  5. 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?

Topic Closed

This topic has been closed to new replies.

About this Topic