WordPress.org

Forums

EasyRotator for WordPress - Slider Plugin
[resolved] Adding photos from a given category or tag (9 posts)

  1. mll
    Member
    Posted 2 years ago #

    Hello there,

    Thanks again for the great plugin. On my site, we have *lots* of pictures. I'd like to make a slideshow of old and recent stuff. They all belong to the same category, or have the same tag.

    Is it possible to instruct the "Add photos" dialog box to display only a given category or tag ?

    http://wordpress.org/extend/plugins/easyrotator-for-wordpress/

  2. DWUser
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    In the WordPress Dynamic Data section of the Add Photos dialog, you can choose specific category(s) and/or tag(s) to pull from: http://i.imgur.com/yFlwTWr.jpg

    Sincerely,
    Drew O'Neill

  3. mll
    Member
    Posted 2 years ago #

    Sorry I wan't clear enough. I don't want to add featured images of posts that belong to a given cat / tag. I want to add images that are directly belonging to a cat / tag.

  4. DWUser
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    Sorry; do I understand that you have a custom post type? Can you please send a screenshot of the content that you're referring to?

    Sincerely,
    Drew O'Neill

  5. mll
    Member
    Posted 2 years ago #

    Screenshot sent by PM.

  6. DWUser
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    Thanks for the clarification. While filtering by tag/category isn't currently supported directly, you could modify the getLibraryPhotoInfo method (around line 1578) in easyrotator-for-wordpress/engine/main.php to include a tag__in or category__in property in the $args variable. For example:


    $args = array(
    'post_type' => 'attachment',
    'post_mime_type' => 'image', // only images!
    'orderby' => 'date', //'menu_order',
    'order' => 'DESC', //'ASC',
    'post_status' => 'any',
    );

    Becomes:


    $args = array(
    'post_type' => 'attachment',
    'post_mime_type' => 'image', // only images!
    'orderby' => 'date', //'menu_order',
    'order' => 'DESC', //'ASC',
    'post_status' => 'any',
    'tag__in' => array(123),
    );

    The array should contain one or more tag ids.

    Sincerely,
    Drew O'Neill

  7. mll
    Member
    Posted 2 years ago #

    Thanks Drew. I'll consider this, but it's not really my cup of tea ; what I actually liked in Easyrotator is its GUI... :)

    Do you plan on adding it in the GUI sooner or later ?

  8. DWUser
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    It's not currently on the roadmap, but I've added it to the feature suggestions!

    Sincerely,
    Drew O'Neill

  9. mll
    Member
    Posted 2 years ago #

    OK, thank you. I'm marking tis topic as (kinda) resolved. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • EasyRotator for WordPress - Slider Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.