WordPress.org

Forums

AutoNav Graphical Navigation and Gallery Plugin
[resolved] Grabbing the wrong image (6 posts)

  1. tyskkvinna
    Member
    Posted 2 years ago #

    I use autonav all over the place, but only in one spot is it acting peculiar.

    http://thegeekgroup.org/projects/

    The thumbnail is shows is not accurate. It is showing a completely unrelated image for 2 of them and an old one for the other. I have updated the featured image repeatedly on these pages, but it still insists on showing this one. As a sidenote, for the two that are identical, that image has NEVER been the featured image for those pages. It's for something else entirely.

    Any ideas?

    http://wordpress.org/extend/plugins/autonav/

  2. wlindley
    Member
    Plugin Author

    Posted 2 years ago #

    For the record, what is the full URL for the thumbnail you expect, and the one which is actually being used?

  3. tyskkvinna
    Member
    Posted 2 years ago #

    It is using http://thegeekgroup.org/wp-content/uploads/2012/07/0-160x120.jpg and I expected it to use http://thegeekgroup.org/wp-content/uploads/2012/07/gemini.jpg

    (or one of the thumbnail sized derivatives thereof)

  4. wlindley
    Member
    Plugin Author

    Posted 2 years ago #

    Curious. Would you mind contacting me via email for some debugging?

  5. tyskkvinna
    Member
    Posted 2 years ago #

    Great, thank you!

  6. wlindley
    Member
    Plugin Author

    Posted 2 years ago #

    Aha! The problem was in Line 192 of autonav_wl.php; the correct code is:

    if ($ifile === $afile || $suffix_match) {

    This was previously == not ===, so once you had a file called "0.jpg" that was always selected instead of the correct one. I will issue a patch.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.