WordPress.org

Ready to get started?Download WordPress

Forums

Dave's WordPress Live Search
Thumbnails (3 posts)

  1. Mike
    Member
    Posted 3 years ago #

    I love the thumbnail feature, but how does it determine which graphic to display? I would expect it to just use the first graphic, but often it chooses something further down the page. Also, often times it misses the graphic altogether and shows nothing when it should show something.

    thanks,
    Mike

    http://wordpress.org/extend/plugins/daves-wordpress-live-search/

  2. Dave Ross
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Mike!

    The algorithm used to pick the image is pretty straightforward:

    1. If the post has a thumbnail, it uses that
    2. If there's no thumbnail, it pulls the image attachment with the lowest menu_order.

    In looking into this, it looks like the original source of the attachment-handling code dates back to 2008 and might not be applicable now that we have much better media handing. In fact, the posts you aren't seeing thumbnails for probably get all their images from the Media Library, not the old-fashioned attachment mechanism.

    I've never seen this because I use post thumbnails on my blog. But I'm surprised it hasn't come up sooner.

    I was wondering what the big feature would be in the next version. Guess I know now :)

    - Dave

  3. Dave Ross
    Member
    Plugin Author

    Posted 2 years ago #

    Hello again,

    The Current dev version of Dave's WordPress Live Search has a new algorithm for picking thumbnail images. If you're still out there, would you mind grabbing a copy at http://downloads.wordpress.org/plugin/daves-wordpress-live-search.zip and giving it a try?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic