Support » Plugin: WP Random Post Thumbnails » Thubmnail Fallback Priority and Random Thumbs

  • Three questions here, if you wouldn’t mind offering some insight.

    1.Is there an image fallback priority defined? For example:
    – Check if thumb already exists
    – Check if thumb is applied by Taxonomy
    – Check if thumb is applied by tag.
    – Check if global is set for post type

    I’m noticing that if an image set is defined for a taxonomy & a global image is also defined each post will rotate through both the images assigned to the tax AND the global during each load.

    2. Is it part of the plugins normal functionality for a single post to cycle through each image in a set on every page load? If that’s intended behavior, it’d be great if users were able to define whether they wanted the images to cycle on page load, or if once the thumbs are assigned to a post they’re “permanent”.

    3. Some post sliders (such as Slider Revolution) aren’t pulling the thumbs assigned by your plugin. Could you tell me if you’re using the_post_thumbnail or a differnet variable to reference the generated thumbs?

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Brianna Deleasa

    (@bdeleasa)

    Hello there! Happy to offer some insight. Thanks for using the plugin! 🙂

    1. The plugin currently adds all applicable images to a global array and pulls a random one from the array.

    2. Yes, that’s the plugin’s normal functionality. That’s definitely a great feature request and I’d love to integrate that at some point. I’m not exactly sure how quickly I can get started on that, but I will definitely update this thread when I have a better idea.

    3. I haven’t used any extra plugins like Slider Revolution to test with those. My guess is maybe they aren’t using the standard thumbnail template tags, or those plugins are overriding the thumbnails somehow, and so this plugin’s overrides aren’t taking effect. That’s just a guess; like I said I haven’t used them so I can’t say for sure. The way this plugin works, it filters get_post_metadata to manually add a post_thumbnail_id filter (WordPress doesn’t offer a post thumbnail ID filter). We then filter the post thumbnail ID for each post, which allows all existing WordPress thumbnail functions to work without modification or the need for new functions to return a random thumbnail for each post.

    I hope this helps! If you have any more questions please let me know.

    Suggestion: neat plugin but can I suggest updating the description to better explain what it actually does :-). From above I understand it actually randomly displays a different thumbnail image each time a post is displayed.

    As I said, good plugin, it just doesn’t do what I wanted on this occasion 🙂

    Plugin Author Brianna Deleasa

    (@bdeleasa)

    Thank you for your insight, I appreciate it! I’ll definitely revisit the plugin description to make sure it’s clear as to what the plugin will help users accomplish. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Thubmnail Fallback Priority and Random Thumbs’ is closed to new replies.