Support » Plugin: EasyRotator for WordPress - Slider Plugin » Adding photos from a given category or tag

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author DWUser

    (@dwusercom)

    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

    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.

    Plugin Author DWUser

    (@dwusercom)

    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

    Screenshot sent by PM.

    Plugin Author DWUser

    (@dwusercom)

    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

    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 ?

    Plugin Author DWUser

    (@dwusercom)

    Hi,

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

    Sincerely,
    Drew O’Neill

    OK, thank you. I’m marking tis topic as (kinda) resolved. 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Adding photos from a given category or tag’ is closed to new replies.