WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] Add NextGEN Gallery images to sitemap (33 posts)

  1. Alex Rabe
    Member
    Posted 3 years ago #

    I'm working currently on a implementation to add images of NextGEN Gallery into XML sitemaps. The main work is done in my plugin, I just need a filter hook in xml-sitemap-class.php. Is this something you can consider for a next release ?

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. robinwyatt
    Member
    Posted 3 years ago #

    I for one would really appreciate this! I was just searching for ways to make my NextGen images more search engine friendly.

  3. Alex Rabe
    Member
    Posted 3 years ago #

    Here you find the current solution : http://code.google.com/p/nextgen-gallery/issues/detail?id=292

    You just need to a one line in the WordPress SEO plugin

  4. robinwyatt
    Member
    Posted 3 years ago #

    This is great, I added that line. Thanks! Will I need to re-add this line each time there's an update to Yoast's plugin?

  5. Alex Rabe
    Member
    Posted 3 years ago #

    Until Yoast didn't add this filter into his plugin, yes

  6. pardsbane
    Member
    Posted 3 years ago #

    Hi, I added this link to my Yoast plugin, and it seems to work fine. Now I see tag links like this in my sitemap page:

    http://www.joshpollak.com/ngg_tag/beijing/

    When I click the above link, it takes me to one of my Pages, but with no content.

    But when I click this one:

    http://www.joshpollak.com/ngg_tag/lama-temple/

    I see a 404 not found error.

    Is there a way to make these links work so all images with the relevant tag appear at that URL?

  7. robinwyatt
    Member
    Posted 3 years ago #

    Unfortunately, adding that line doesn't seem to have resulted in any of my NextGen photos showing up in Google. Anything I load to WP's Media Gallery shows up on Google the instant I use it in a post, but nothing from NextGen has ever shown up. This is a worry for me, as I'm a photographer and would like people to find my site (www.robinwyatt.org/photography) through my photos. I've carefully titled all of my images so that Google should like them... but for now it still can't see them :-(

  8. Alex Rabe
    Member
    Posted 3 years ago #

    Ahem do you really think this happens in 2-3 days ?

  9. pardsbane
    Member
    Posted 3 years ago #

    @robinwyatt: You can go to you sitemap and see it here:

    http://www.robinwyatt.org/photography/sitemap.xml

    At least with Chrome, this renders as a nice page listing all your pages.

    Are your NGG images listed? I can't tell.

    For me I see my Galleries and Albums here:

    http://www.joshpollak.com/sitemap.xml

    But not individual images. Also, as I mentioned before the tag links don't seem to work.

    Alex, I would be willing to help debug or try out code modifications, if you point me to the right php file I can start exploring a bit.

  10. pardsbane
    Member
    Posted 3 years ago #

    Hi, sorry for the constant updates.

    What I think would be really ideal is if there was a way to get the imagebrowser links for every photo in nggallery into the the sitemap.xml.

    I guess this would require the imagebrowser links to always be active without a wordpress page linking to it, and I don't know if that's possible.

  11. robinwyatt
    Member
    Posted 3 years ago #

    @Alex: Sorry, I previously thought not, but then I saw Google catching my new posts instantly so thought that yes, it would happen in 2-3 days!

    @pardsbane: Thanks for the link to my sitemap. No, the NGG ones are not there, except for an album called Maharashtra for which I added all the images manually in my XML Sitemap plugin. Strangely, these photos' thumbs (only) appeared on Google yesterday morning, but had disappeared again by evening!

  12. robinwyatt
    Member
    Posted 3 years ago #

    PS Apologies for my ignorance, but is Yoast's sitemap generation getting sidelined by my XML Sitemap plugin (which I installed first)? Do I need to disable this?

  13. Mike McKoy
    Member
    Posted 3 years ago #

    One of the issues with NextGen is the filename isn't search friendly. A good way to make them search is to include the domain name plus a title based filename (hairwegoprodableucts-angela-bassett.jpg) as well as the alt & title.

    That would information would need to be included in the RSS feed as well as the image being embedded.

    Wish I was a developer. Do you think you can do that sir?

    Also... iF anyone hasn't considered this...A great way to be indexed is to ping google, bing, yahoo, ask, and other search engines when you have new changes. So if there were a way to make this rss ping sites like those... that would help get the bots out on a more regular basis.

  14. rivankoe
    Member
    Posted 3 years ago #

    I tried the solution here (http://code.google.com/p/nextgen-gallery/issues/detail?id=292) but didn't get any additional results.

    My sitemap file has a bunch of entries that look like this:

    http://royivankoe.com/ngg_tag/jack/

    However I do not have a tag name 'jack'. There are a number of entries like this with invalid tags. Any explanations?

    Thanks.

  15. Joost de Valk
    Member
    Plugin Author

    Posted 3 years ago #

    Alex: I can definitly add a hook in the plugin, please email me on joost at my domain and we'll figure out where you need a hook.

  16. robinwyatt
    Member
    Posted 3 years ago #

    @Alex and @Joost: has the filter been added to the latest version of the plugin? I just installed it, and then remembered this issue. Do I need to add the line around line 165 again? My images have been appearing nicely in Google for a while now, and I'd obvously like this to continue!

  17. Joost de Valk
    Member
    Plugin Author

    Posted 3 years ago #

    No it'll be added in 0.4 though. Coming up in a few days with entirely new XML Sitemap code. I'll make sure to ping Alex to see if we can make it work.

  18. robinwyatt
    Member
    Posted 3 years ago #

    Ok, many thanks for letting me know!

  19. Joost de Valk
    Member
    Plugin Author

    Posted 3 years ago #

    My pleasure :)

  20. Mike McKoy
    Member
    Posted 3 years ago #

    Ok... so the first SEO compatible version of nextgen will be with Yoast only? Just curious because I use ALL in one SEO and google sitemaps but i'm willing to switch.

    my site is hairwegoproducts.com and SEO for images is a big deal because there really isn't any indexing of the image pages or the individual image pages which is what we want the most.

  21. Alex Rabe
    Member
    Posted 3 years ago #

    I've updated the code according to WordPress SEO 0.4.0 or higher :

    http://code.google.com/p/nextgen-gallery/source/detail?r=950

    This will be automatic included in the upcomming release 1.8.0

  22. robinwyatt
    Member
    Posted 3 years ago #

    Thanks Alex, this is great to know! When (roughly) are you hoping 1.8.0 will be released? Looking forward to it!

  23. Alex Rabe
    Member
    Posted 3 years ago #

    Tommorrow I publish Release Candidate 1... maybe next week final release

  24. robinwyatt
    Member
    Posted 3 years ago #

    Wonderful :-)

  25. Mike McKoy
    Member
    Posted 3 years ago #

    This is happy news!

  26. Mike McKoy
    Member
    Posted 3 years ago #

    Will it work with google xml sitemaps?

  27. Alex Rabe
    Member
    Posted 3 years ago #

    No, the plugin author didn't add a filter for other plugins. So it's the best to
    Switch now

  28. ldaniels
    Member
    Posted 3 years ago #

    I've been using 1.8 since the first alpha showed up on your Google Code page and it has been a great experience. I look forward to the final release and integration with the SEO image map solution!

    Lee

  29. Strategerizer
    Member
    Posted 3 years ago #

    Yoast's SEO plugin shows now in the setup, under Taxonomies, a place to set the template for "Ngg_tag". What should be entered in that template?

    Based on other settings I've seen from http://www.wpbeginner.com/plugins/how-to-install-and-setup-wordpress-seo-plugin-by-yoast/

    • Title template = %%term_title%% - %%sitename%%
    • Meta description template = %%term_description%%
    • Meta keywords template = %%term_title%%

    But I think this would be WRONG (particularly the meta description part).

    Anyone knows what should be entered there??

  30. CitLemBiK
    Member
    Posted 2 years ago #

    I have same problem...

    Images in sitemap: 0 (WHY?)
    NGG_TAG : Break page (404)

    Whats the solution...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic