WordPress.org

Ready to get started?Download WordPress

Forums

EasyRotator for WordPress - Slider Plugin
[resolved] Dynamic Content - Recent Posts - no data (6 posts)

  1. c741535
    Member
    Posted 1 year ago #

    Hi, thanks for this plugin, it's clear you've spent a lot of effort putting it together. I am having a problem setting up a slider to display most recent posts from WordPress.

    If I choose max. number of posts = 0 and preview I get 'No data found' (it's not just the preview I updated the slider and the same issue appears on the site).

    If I choose a value of 5 I get the same thing, no data.

    Changing the value to 10 I get one post, but it's not the most recent, it's perhaps the 5th most recent.

    Changing the value to 50 results in 'No data Found' again... very strange.

    All the posts are 'Uncatagorised' with no tags etc. They all display perfectly on the blog/posts page of my WordPress site. Some have images in them, others do not.

    Any help in debugging/solving this is appreciated.

    Regards,
    Andy

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

  2. DWUser.com
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Andy,

    Thanks for using EasyRotator for WordPress. When searching for posts, it's not possible to only search posts that have a featured image; so, the max posts setting counts applies to all posts, before the featured image filtering occurs. So, if many of the potential matches don't have a featured image the number of posts will seem incorrect. If many of your site's posts don't have featured images, the best solution is to apply a tag to those posts that do and only search for posts with that tag.

    Please let me know if I can provide any more clarification about the best configuration approach for your situation.

    Sincerely,
    Drew O'Neill

  3. c741535
    Member
    Posted 1 year ago #

    Hi Drew,

    Thanks for your reply. Is there an implied selection criteria for posts? For example does a post have to have an image (whether it's set as a featured image or not)? Can the slider include posts that don't have images, or is that defeating the purpose of the slider? Lots of my posts have images, but they're not set as Featured Image...

    You've given me food for thought, I'll do some tests with the images in my posts and see if that delivers different results.

    Cheers,
    Andy

  4. DWUser.com
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Andy,

    When the search is run, it returns all posts – recent ones, or ones in a given category. Then, the plugin loops through those results. Any post that has a featured image is kept; any post that does not have a featured image is discarded.

    If you would like to modify the filtering or selection criteria (for example, to search the post content and use those photos instead of the featured image), you can edit the getFeaturedPhotoInfo method (around line 1677) in easyrotator-for-wordress/engine/main.php.

    Sincerely,
    Drew O'Neill

  5. c741535
    Member
    Posted 1 year ago #

    Thanks Drew, that is really helpful, problem solved.

    Cheers,
    Andy.

  6. DWUser.com
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Happy to help! If you have a minute sometime, we always appreciate plugin reviews: http://wordpress.org/support/view/plugin-reviews/easyrotator-for-wordpress

    Please let me know if I may help with anything else.

    Sincerely,
    Drew O'Neill

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic