Thanks for your question regarding the “MLA Yoast SEO Example” plugin. Here are four earlier topics involving Yoast SEO and the example plugin:
index images in yoast seo sitemap
MLA no image attachments in sitemap
MLA Conflicts with Yoast SEO Sitemap
MLA galleries and SEO
The current version of the MLA Yoast SEO Example plugin does one specific task. It looks in each post and page for one or more [mla_gallery] shortcodes and adds XML sitemap entries for each item displayed by the shortcode(s). It will work with shortcodes that do not require interactive input, i.e., do not have request:
or query:
substitution parameters.
As you can see from the dates of those topics I have not looked at Yoast or the example plugin in some time. I have just installed the latest Yoast SEO free version and run a quick test. The example plugin is still working as intended.
You can find more information about Yoast XML sitemaps here:
XML Sitemaps – Overview
You should know that since I developed the example plugin Yoast has added a new, more complete/complex type of information as described here:
Schema – Overview
The example plugin does not support this new feature and I have no plans at present to add it.
You wrote “I would like to attach images to a post only over the submenu table and the field parent_id.” As far as I know, Yoast SEO does not make any attempt to use the parent_id
relationship. The only thing that matters for SEO is what actually appears on the post/page content, e.g., a gallery composed with shortcodes such as [mla_gallery]
or a Gutenberg image or gallery block.
I hope that gives you the information you need. I am marking this topic resolved, but please update it if you have problems or further questions regarding the example plugin. If Schema support is important for your application, post an update or contact me by email and I will investigate further. Thanks for your understanding.