Hi Nikodemsky 🙂
I hope you had a wonderful New Years’ and thank you very much for considering The SEO Framework!
Migration
All information regarding SEO Data Migration is located right here, it does require an external plugin in your case:
https://theseoframework.com/docs/seo-data-migration/
You won’t need both plugins active, as all data is retained in the Post Meta, this data has no noticeable effect on performance so you don’t have to worry about data retention :).
Sitemap
The SEO Framework does generate a sitemap. You can exclude each and every single post by hitting the “Noindex” option, note that this will also exclude it from the search results page on Google and other Search Engines.
Sitemap minus CPT
With the following filter you can disable all CPT from showing up in the sitemap:
add_filter( 'the_seo_framework_sitemap_custom_posts_count', '__return_zero' );
Next update:
Excluding specific post types is not yet supported, non-public post types are always excluded.
I’m adding a filter right now to exclude those types, you can expect it to be working in the next update.
The filter will work like this:
add_filter( 'the_seo_framework_sitemap_exclude_cpt', 'my_sitemap_exclusions' );
function my_sitemap_exclusions() {
$exclusions = array(
'testimonial',
'some-other-cpt',
);
return $exclusions;
}
I hope this helps! Let me know if you have any more questions 🙂
Thank You.
Can I exclude attachments from sitemap without using filters? If no, then what would be name for function in array?
Also I’m looking at:
https://wordpress.org/plugins/seo-data-transporter/
1. It’s not problem that it’s outdated?
2. Yoast was “WordPress SEO” before, but does WordPress SEO from list refer to Yoast plugin?
Hi Nikodemsky,
You can, but attachments are already excluded from the Sitemap.
For now it’s up to themes to link attachments to their respective pages. Then again, The SEO Framework prevents indexing of attachment pages by default (this can be changed through the Robots Meta Settings in the SEO Settings Page).
However, in the future I might add such a thing. To preemptively prevent this from happening, you should be using this value for $exclusions:
attachment
On to the following questions:
1. Nope, that’s not a problem. Since the data values almost always remain the same over long periods of time. The SEO Framework uses the Genesis fields as it’s built initially upon Genesis.
2. That’s correct!
If you encounter any problems, please let me know 🙂
I hope this helps 🙂 Thanks and have a great day!
Ok, that’s all I wanted to know, thank you very much.