Adds a fast, simple interface for adding SEO meta data to pages and posts. Designed to remove all of the extra stuff that you just won't use. It is made to be straight forward for users with no confusing extras and no annoying ads. So you can enjoy using it and feel comfortable putting it before a client.
- Choose which post types it is added to (public post types by default)
- Integrates nicely with the Sewn In XML Sitemap plugin, so they get merged into one panel for editing.
- Use the Sewn In Simple Social Optimization plugin to add full control over social sharing settings for Facebook and Twitter.
Very simple, no cruft or extra features you won't use.
Control what post types are added
By default only pages and posts are added, but you can remove either of those and/or add more using this filter:
`
/**
- Completely replace the post types in the XML sitemap and SEO edit functionality
- This will replace the default completely. Returns: array('news','event')
- The result is to remove 'post' and 'page' post types and to add 'news' and
- 'event' post types
- @param array $post_types List of post types to be added to the XML Sitemap
- @return array $post_types Modified list of post types
*/
add_filter( 'sewn/seo/post_types', 'custom_sitemap_post_types' );
function custom_sitemap_post_types( $post_types ) {
$post_types = array('news','event');
return $post_types;
}
`
Add Keywords
Use sparingly. Meta keywords can do more harm than help when used incorrectly. Don't overload them. For that reason, we turned it off by default. If you want them, you can turn them back on by adding this to your functions.php.
add_filter( 'sewn/seo/add_keywords', '__return_true' );
Turn on Auto-Generated Descriptions
We don't recommend this. The meta description should be used as a way to craft what the search engines show, otherwise, let the search engines auto generate the descriptions. It doesn't really have a significant impact on visibility and may hinder visibility by keeping the search engine from digging as deep into the rest of the page. Bad descriptions may do harm, and likely don't do any good.
add_filter( 'sewn/seo/default_description', '__return_true' );
Other filters
`
/**
-
Custom home or blog page title
/
add_filter( 'sewn/seo/home_title', 'custom_seo_home_title' );
function custom_seo_home_title( $title ) {
return 'My blog page title';
}
/*
-
Customize 404 titles
/
add_filter( 'sewn/seo/404_title', 'custom_seo_404_title' );
function custom_seo_404_title( $title ) {
return 'These are not the pages you are looking for';
}
/*
-
Customize archive titles
/
add_filter( 'sewn/seo/archive_title', 'custom_seo_archive_title' );
function custom_seo_archive_title( $title ) {
// Customize the title
}
/*
-
Custom archive descriptions
*/
add_filter( 'sewn/seo/archive_description', 'custom_seo_archive_description' );
function custom_seo_archive_description( $description ) {
// Custom description here
}
`
兼容性
Works with the
Sewn In XML Sitemap plugin and the
Sewn In Simple Social Optimization plugin. When installed, the XML sitemap checkbox integrates with the SEO fields. The goal is to keep things very simple and integrated.