WordPress.org

Ready to get started?Download WordPress

Forums

JSJ Gallery Slideshow
[resolved] Separate slider from the_conten() (3 posts)

  1. nobreferreira
    Member
    Posted 2 months ago #

    Hi,

    Is there any possibility to split the slider container (.gallery-container) from the_content()?

    I want to put the content of the post and the slider in separate containers.

    Cheers!

    https://wordpress.org/plugins/jsj-gallery-slideshow/

  2. Jorge Silva-Jetter
    Member
    Plugin Author

    Posted 2 months ago #

    Hi,

    You can easily do that using the 'do_shortcode' function for WordPress.

    Anywhere in your template you can do something like this:

    `
    <?php echo do_shortcode( '[gallery ids="1,2,3,4"]'); ?>
    `

    In this case the ids are a list of attachment IDs. You can create this gallery using the WordPress Editor and the click on "View Text" to copy paste the shortcode into the do_shortcode function.

    Let me know if that works!

    J.

  3. Jorge Silva-Jetter
    Member
    Plugin Author

    Posted 1 month ago #

    Closing this issue.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.