WordPress.org

Forums

JSJ Gallery Slideshow
[resolved] Automated gallery from all media? (3 posts)

  1. Blutarsky
    Member
    Posted 1 year ago #

    Is it possible to create a page with a shortcode that will fire your plugin browsing all available images?

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

  2. Jorge Silva-Jetter
    Member
    Plugin Author

    Posted 1 year ago #

    How about just creating a gallery with all images? That should work.

    If you know some php, you can do something like:

    1. Query all attachments in the database.
    `
    $args = array(
    'post_type' => 'attachment',
    );

    $all_ids = query_posts($args);
    `
    2. Use do shortcode to output all images:

    `
    do_shortcode('[gallery ids="'. join(",",$all_ids) . '"]');
    `

    http://codex.wordpress.org/Function_Reference/do_shortcode

  3. Blutarsky
    Member
    Posted 1 year ago #

    Perfect! Thanks :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • JSJ Gallery Slideshow
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.