Support » Plugin: JSJ Gallery Slideshow » Automated gallery from all media?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jorge Silva-Jetter

    (@jorgesilva-1)

    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

    Blutarsky

    (@blutarsky)

    Perfect! Thanks 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Automated gallery from all media?’ is closed to new replies.