Oct.26

Comments(40)

  1. Raj
    2231 days ago

    Thanks for this ๐Ÿ™‚

    • Eric Nagel
      2231 days ago

      My pleasure. Maybe I’ll re-release this as my first WordPress plugin ๐Ÿ™‚

  2. Vicki
    2227 days ago

    Do you know of an image sitemap generator for standard websites? I’ve found one that will specifically create an image sitemap but it doesn’t pick up the title of the image, only the location and filename. It picks up the filename and puts that in the title place. Please let me know if you know of a generator. Thanks.

    • Eric Nagel
      2227 days ago

      Hi Vicki –

      That would be kind of difficult, as you wouldn’t know what page the image is on. However, I imagine you could write something that reads an “images” directory and then use the exif_read_data php function to read the comments. But, again, knowing what page that image is on is the hard part.

  3. Steve @ 2008 Taxes
    2225 days ago

    Super cool stuff. I added the file to the FryingPanSports.com site. I couldn’t get the xml extension to work but submitted the php extension and Google didn’t have any issues with it.

    • Eric Nagel
      2224 days ago

      Yeah, I don’t think Google cares what the extension is. Now make sure you add titles to your images, so the “caption” is useful to the search engines (I see you’ve done this the past 2 posts)

  4. soup
    2224 days ago

    Hey man do you have an live example of how this should like like ?
    I tried this http://ericnagel.wpengine.com/sitemap-image.xml but do not think that it’s what i suppose to see right ?

    • Eric Nagel
      2224 days ago

      Hi,

      Yeah, that’s it. View Source, and you’ll see some formatting. I’m working on a WordPress Plugin that’ll do all of this automatically, but I’m having trouble submitting it to WordPress.org. I’ll get it up today, either here or on WordPress.org

  5. Walter
    2181 days ago

    It’s the only image sitemap plugin that works for me.
    However the URLs are not “pretty”… I’m getting the default, ugly, wordpress urls like this: http://www.domain.com/?p=253
    Do you know how to fix it?

    • Eric Nagel
      2181 days ago

      Do you have your permalinks set right in your wordpress options? domain.com/wp-admin/options-permalink.php

  6. Pushpinder Bagga
    2109 days ago

    I also created a sitemap plugin recently – you can check it out here- http://www.pushpinderbagga.com/google-xml-image-sitemap-generator-plugin-for-wordpress/439/

  7. haris
    2048 days ago

    after i submit the image sitemap to google webmaster tool used this plugin, i lost my index in google image, Do you know how to fix it? please

    • Eric Nagel
      2048 days ago

      Start by using actual captions for your images. For example, you have:
      hayden-panettiere-wallpaper-hot

      Change the caption to:
      Hayden Panettiere Wallpaper – hot!

      As for why Google dropped you from the Image results, it could be many things. If you think the sitemap is at fault, remove it from your Webmaster tools account. But, I’ve successfully used this on numerous sites and have images listed in the image search results.

  8. Cor van Noorloos
    2048 days ago

    Hi Eric,

    It might be how it is suppose to work, but it seems when multiple posts are sharing the same image, only the first (date) post is listed as location

    • Cor van Noorloos
      2048 days ago

      Sorry, my mistake. It seems -looking at the media manager- this is simply how WordPress does things (:

      • Eric Nagel
        2048 days ago

        Yeah, an image will only be in the image sitemap once. You could always upload it twice, I suppose.

        • Cor van Noorloos
          2048 days ago

          Thanks Eric, for confirming this. This quick btw.! (:
          Thus far I’m completely liking your plugin.

          I’ve made one minor change though -not entirely sure if I can past code here.

          I’ve changed the post_title title to image:title instead of having both as image:caption.
          This way image:title shows if only the title has been submitted.

          Any chance including both in a perhaps future release?

          Meaning always showing the post title OR if different showing the image title (this is how the plugin currently works) AND if there showing the image caption.

          Sorry I can’t make myself not more clear. PHP doesn’t seems to be my native language (:

          • Eric Nagel
            2048 days ago

            I’ll review this – my latest post isn’t showing in the sitemap, so I wonder what’s stopping it.

            I struggled with showing the image caption, or title, or alt-text. Ideally, that’d be an option in the plugin, right?

            Version 2.0 ๐Ÿ™‚

  9. Cor van Noorloos
    2048 days ago

    Kind of forgot there’s also an alt-text (: But currently the post title, image title and image caption just seems to work just right.

  10. Fersy
    2046 days ago

    hi eric,

    i’am use your plugin but only one picture was displayed??
    any idea?

    http://www.spreephoto.de/sitemap-image.xml

    • Eric Nagel
      2046 days ago

      The plugin uses images that were uploaded as Media using WordPress (when you create a post or page, and you click on the “Upload/Insert” Image, and get the pop-up to “Add media files from your computer”).

      Your site looks great, but it looks like you’re using some sort of plugin to handle your gallery. I’m guessing they’re just not stored properly in the WordPress database.

      • Fersy
        2045 days ago

        hi eric,
        all my pictures using the wordpress media database..

        • Eric Nagel
          2045 days ago

          Unfortunately, without access to your database, I can’t debug much more. Try running the SQL command:

          SELECT * FROM wp_posts
          WHERE post_type = ‘attachment’
          AND post_mime_type like ‘image%’
          ORDER BY post_date desc

          and see what comes back. The results must not have a post_parent of 0.

          I’m esnagel on Skype, if you want further help.

  11. Fersy
    2045 days ago

    @eric

    the result:
    Zeige Datensรคtze 0 – 29 (1,235 insgesamt, die Abfrage dauerte 0.0034 sek.) [post_date: 2011-04-30 11:40:54 – 2011-04-29 21:46:45]

    1.235 pictures in database

  12. Trackback: Search Engine Optimization – Basic SEO How To’s for Bloggers

  13. Cor van Noorloos
    2033 days ago

    Hi Eric,

    In a future version perhaps, would it be possible to change $post->guid to something different php-ish? Sorry, databases aren’t really my language.

    $post->guid seems to be more an ID than a permalink, which could cause some difficulties when changing from website URL.

  14. Trackback: Optimizing Images For A Wordpress Blog | Kevin Webster

  15. Bern
    2028 days ago

    Good stuff man!
    I’ll definitely give this a shot on a couple of my sites.
    Thanks!
    -J

  16. Latest Tamil Cinema News
    1959 days ago

    Just now downloaded the plugin. Seems to be good. Will post my opinion in some days.

  17. Levent
    1889 days ago

    Thank you for this plugin.I’m using this for 1 month and all my images indexed.Thanks

  18. Trackback: Sell More Product With On Site Image SEO

  19. Dennis
    1693 days ago

    Thank you very much for this Plugin! I was also looking for a XML Image Sitemap and didn’t found anything really good – so if you say that yours is better i count on you! ๐Ÿ˜‰

  20. Mehndi Designs
    1583 days ago

    Thanks – i used it for images

  21. fashionquest
    1571 days ago

    Awesome plugin, thank you!

  22. vinay
    1466 days ago

    Thanks,i was looking for this….. Awesome plugin

  23. Ashish Garg
    1414 days ago

    Hi Eric Nagel I make image sitemap for my site but
    this is showing 3 images on one link

    See the Result

    and say what i do for show only one image par post

    http://indianfunnypicture.com/sitemap-image.xml

    • Eric Nagel
      1413 days ago

      I’ll have to look at the code to see why you’re getting 3 images per post – it pulls from the WordPress Media library, but shouldn’t include an image more than once.

Leave a comment

Comment