August 1, 2017 at 8:50 pm #833062
I didn’t implement any filter yet, or is there a filter already in that file?
Thx for the solution, will try!
grt BorisAugust 2, 2017 at 12:23 am #833134
I have got the feeling Masonry doesn’t work in the update.
I added both the scripts to my functions.php in the child theme.
The single images were added, but the masonry – in contrast to yesterday function – were not added.August 2, 2017 at 8:03 am #833244
@Roger: Are you using the “Masonry Gallery”? The filter is not going to work for the “Masonry” element unless you include it using the provided filter. Please re-copy the filter again because we modified it a bit.
IsmaelAugust 2, 2017 at 10:42 am #833314
Thank you, right now it is working.
Only one little thing. If I use 2 single images on a portfolio-item or page, of which one is also the featured image.
The sitemap says the portfolio-itemor the page is containing 3 images. So the featured is added double,
It is possible to fix this?
By the way, thank you for the filter!August 2, 2017 at 1:51 pm #833444
Great to see the progress! Thank you!
One last problem to overcome – Sliders!
Yoast Sitemaps DO NOT READ SLIDER CONTENT!!!!
Can you fix this please?
EdAugust 7, 2017 at 6:44 pm #835531
We can not fix that somehow.
Yoast Sitemaps do not read sliders – we can not do something for that.
Yoast Team can only we are afraid.
Basilis9August 7, 2017 at 7:00 pm #835546
What a shame and a great disappointment because Yoast won’t do anything either.
Why can you not make this happen? Is it because you don’t have the time or you consider it to not be important enough? I would like to know if you don’t mind please.
So now I have 200 pages with sliders to change…
Very poor show my friend… this is not good.
EdAugust 12, 2017 at 12:09 pm #837826
Sorry for the late reply due to summer holidays.
I put your request in our todo list and will check again, if we can find a solution.
We will come back to you as soon as possible. Thank you for your patience.
GünterAugust 14, 2017 at 2:15 pm #838651
Please update the code in the functions.php file: https://kriesi.at/support/topic/how-to-make-images-in-masonry-gallery-to-be-indexed-in-seo-yoast-sitemap/#post-832895
The featured image slider is not included because that particular shortcode does not include image ids.
IsmaelAugust 14, 2017 at 10:11 pm #838971
Thanks @ismael – looks great!
Before I paste this do i remove ALL the previous code or leave the most updated one in functions.php? Just to be clear. Does this replace everything else?
EdAugust 15, 2017 at 8:45 am #839103
Yes, please remove everything then use the following functions and filter: https://kriesi.at/support/topic/how-to-make-images-in-masonry-gallery-to-be-indexed-in-seo-yoast-sitemap/#post-832895
IsmaelAugust 15, 2017 at 6:31 pm #839498
Slightly confused – where has that new code gone that you pasted?
EdAugust 17, 2017 at 10:48 pm #840643
What do you mean where it has go?
If you open the topic that Ismael provided and use only that nothing else, please let us know if your issue will be fixed.
BasilisAugust 17, 2017 at 10:57 pm #840646
I thought I saw some fresh code on this page?
No matter – Ismael’s code lets sliders be read but then removes everything else- so no, I’m afraid it’s not working correctly. Can he post just the added code for the slider crawling?
I have copied and replaced as instructed but it goes wrong. URL’s that had 1 image jump to 12 then ones that had 15 jump to 1!!!! It’s all getting very complicated… but I appreciate your persistence. We are close now.
EdAugust 20, 2017 at 1:39 pm #841657
I am using the code provided in my sitemap.
Since last week I get errors in my sitemap when I view the search console or webmaster tools.
Don’t know if the code is the problem or the yoast version.
Am I the only one seeing this error? Could you check on your own sitemaps?
The sitemaps which have errors are :page, post and products
my sitemap: https://rogercremers.com/sitemap_index.xml
rogerAugust 21, 2017 at 7:35 pm #842191
We are afraid there are not a lot we can do to help fix those issues.
Yoast might have changed their code structure or something related, so we do not have the know how to fix those problems.
They will – most probably – be able to provide the proper coding solution so you can go without any mistakes and issues.
BasilisAugust 22, 2017 at 2:46 pm #842582
Well in the previous version, the indexing of the single avia images was counted, I think the problem is there.August 26, 2017 at 4:10 am #844264
@swarez: Please remove the previous code. We put everything in this reply:
Add the functions and the filter with the new elements.
IsmaelAugust 26, 2017 at 10:41 am #844319
Like I said before this now crawls sliders but removes other functions!
Please see the previous response.
Both final parts of your code are pasted into function.php correctly.
So now all the sliders and masonries get read on pages/portfolio pages with sliders but normal images and galleries are ignored! This doesn’t make any sense?
August 28, 2017 at 6:02 am #844665
- This reply was modified 3 years, 1 month ago by Swarez.
There’s a minor code error. Please look for this code:
case 'attachment': $src = '/attachment=\\\'(\d+)\\\'/';
Replace it with:
case 'src': $src = '/attachment=\\\'(\d+)\\\'/';
Or just copy the code again.
IsmaelAugust 29, 2017 at 8:38 pm #845441
Finally after a very long time we have the solution and it works.
Thank you to everyone involved.
In the last two weeks I have had the highest percentage of images indexed ever – and I would like to think the accuracy of my sitemap has been the reason, though I will never know for sure.
EdAugust 30, 2017 at 8:38 am #845685November 14, 2017 at 4:49 pm #876663
I just reaquested google to crawl and fetch my site and I did noticed the same, that the crawler doesn’t see the masonary grid, which is especially bad because it links to each post of my site. How can I make sure the crawler follows the link?
thxNovember 16, 2017 at 5:03 am #877360
The topic ‘How to make images in masonry gallery to be indexed in seo yoast sitemap’ is closed to new replies.