BUG Images not found when generating Sitemap.

Messages
5
Likes
0
Points
1
#1
I just noticed on my sitemap (https://suncatcherstudio.com/page-sitemap.xml) that
when using "Woody Snippets", images are not found or listed. For example, see the
second entry (All Articles). The sitemap shows 0 images.
However, there are numerous images at this location. The second image below shows how
I included this file. It simply loads the following file:
https://suncatcherstudio.com/php-snippets/menus/all-articles-output.html

I also believe my WordPress "Broken Link Checker" does not search through information
included via a Woody Snippet.

Am I doing something wrong? How can I get my images included in the sitemap?
I am worried that Google is not indexing these files like it should.
Please HELP!

Thanks,
Bill
 

Attachments

Temyk

Developer & Support
Messages
1,129
Likes
42
Points
48
#2
Hello.

This is because Yoast does not handle shortcodes in the post text. You can fix this with this code:
PHP:
add_filter( 'wpseo_pre_analysis_post_content', function( $content, $post ){
    return do_shortcode($content);
});
Put this code in a PHP snippet that runs everywhere.
After that, you will need Yoast to update the Sitemap.
 

Temyk

Developer & Support
Messages
1,129
Likes
42
Points
48
#4
I think you should contact the technical support of the Yoast plugin, because this is their functionality. The problem is most likely not in the plugin Woody