Image Slider showing all of one image category

Tymnus's Avatar


20 Dec, 2017 07:09 PM

On my home page, I would like to embed an image gallery that pulls all images directly from a single image category (not a post category).

How is this done?

  1. Support Staff 1 Posted by Dmitry Semenov on 20 Dec, 2017 07:58 PM

    Dmitry Semenov's Avatar


    What do you mean by "single image category", do you use some plugin that adds categories to images?


  2. 2 Posted by Tymnus on 20 Dec, 2017 08:13 PM

    Tymnus's Avatar

    Indeed. I am using the Media Library Assistant v2.65 by By David Lingren.

    This adds additional category assignments that are specific to image. Excellent.

  3. Support Staff 3 Posted by Dmitry Semenov on 20 Dec, 2017 08:27 PM

    Dmitry Semenov's Avatar

    RoyalSlider can override default gallery shortcode , but it only supports default WordPress ids attribute. You'll need to dynamically retrieve image ids that you wish to display and then generate and output [gallery] shortcode.

     $attachment_ids = array( ... );
     echo do_shortcode('[gallery ids="' . implode(',', $attachment_ids) . '"]'); 
  4. 4 Posted by Tymnus on 20 Dec, 2017 09:27 PM

    Tymnus's Avatar

    Thank you for your quick response. This is a nice slideshow and would benefit from having this ability. Of course, I understand that it is likely a complex undertaking to code such a thing. However, it has been done in other plugins, where they are able to read unique taxonomies created by other plugins.

    Anyhow, thanks for your time and attention.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac