You may may see a notice that your user account can’t access certain fields in the plugin
The reason for this is that users need to have the WordPress unfiltered_html capability in order to access these fields. This is for security purposes.
Make sure your user has this role or use another user account to edit these fields.
Some configurations of NGINX require rewrite rules to be added to the NGINX configuration file.
If you’re getting a 404 Page Not Found error for your XML Sitemap, RSS Sitemap or Video Sitemap on NGINX, then please add the following rewrite rules in your NGINX config file.
NOTE: If you don’t know what to do with these, then you’ll need to contact your hosting company for support.
NOTE: The Video Sitemap rules must always come before the XML Sitemap rules.
You might also need to use these rewrite rules if /sitemap.xml keeps redirecting to you to /sitemap_index.xml, which is the sitemap slug of a competing SEO plugin. You’ll also need to remove the rewrite rules for that specific plugin.
*These rules will work for 99% of users. In some cases, such as if you have WordPress installed in a subdirectory, there may be modifications you’ll need to make.
If this doesn’t work for you, then please contact us.
You may have noticed that there’s no longer a Keywords field in the All in One SEO settings when you edit your content.
This is because the field has been moved to the Advanced tab as shown below.
We’ve moved it here because for the majority of users, this field has no value in their SEO efforts. Most search engines stopped using meta keywords well over ten years ago and the only search engine that still uses them is Yandex in Russia.
So if you’re not concerned with ranking in Yandex for Russian searches, you don’t need to worry about the Keywords field under Advanced.
This filter can be used to prevent All in One SEO from rewriting the title.
Arguments (1)
$disabled (boolean) – Whether the title shouldn’t be rewritten. Defaults to false.
Example code snippet
The code snippet below is just an example of how this filter can be used. In the example below, All in One SEO is prevented from rewriting term titles.
This filter can be used to control whether All in One SEO can autogenerate the description based on the post content.
Arguments (1)
$enabled (boolean) – Whether All in One SEO can use the post content. Defaults to true.
Example code snippet
The code snippet below is just an example of how this filter can be used. In the example below, All in One SEO is prevented from using the post content to autogenerate descriptions.
This filter can be used to prevent All in One SEO from outputting any data (meta data, Open Graph markup, schema, etc.).
Arguments (1)
$disabled (boolean) – Whether All in One SEO should be disabled. Defaults to false.
Example code snippet
The code snippet below is just an example of how this filter can be used. In the example below, All in One SEO is prevented from outputting any data on term pages.
The code snippet below is just an example of how this filter can be used. In the example below, All in One SEO is adding the ‘index’ and ‘nofollow’ attribute to posts.
This filter can be used to prevent All in One SEO from outputting schema markup.
Arguments (1)
$disabled (boolean) – Whether All in One SEO shouldn’t output schema markup. Defaults to false.
Example code snippet
The code snippet below is just an example of how this filter can be used. In the example below, All in One SEO is prevented outputting schema for WooCommerce products.
This filter can be used to filter the canonical URL.
Arguments (1)
$url (string) – The canonical URL.
Example code snippet
The code snippet below is just an example of how this filter can be used. In the example below, AIOSEO is prevented from outputting a canonical URL for posts.
add_filter( 'aioseo_canonical_url', 'aioseo_filter_canonical_url' );
function aioseo_filter_canonical_url( $url ) {
if ( is_singular() ) {
return '';
}
return $url;
}
This filter can be used to filter the rel=”next” link All in One SEO outputs for paginated pages.
Arguments (1)
$next (string) – The rel=”next” link All in One SEO outputs.
Example code snippet
The code snippet below is just an example of how this filter can be used. In the example below, All in One SEO is prevented from outputting a rel=”next” link.
This filter can be used to filter the rel=”prev” link All in One SEO outputs for paginated pages.
Arguments (1)
$previous (string) – The rel=”prev” link All in One SEO outputs.
Example code snippet
The code snippet below is just an example of how this filter can be used. In the example below, All in One SEO is prevented from outputting a rel=”prev” link.
The code snippet below is just an example of how this filter can be used. In the example below, the Open Graph and Twitter title for a specific post are changed.
add_filter( 'aioseo_social_meta_tags', 'aioseo_filter_social_meta_tags' );
function aioseo_filter_social_meta_tags( $socialMeta ) {
if ( is_singular() && '14' === get_the_ID() ) {
$socialMeta['og:title'] = "A different Open Graph title";
$socialMeta['twitter:title'] = "A different Twitter title";
}
return $socialMeta;
}
If you have content in custom fields and you want to include it in the SEO Page Analysis and TruSEO score results, then this article provides instruction on what to do.
To get started, click on Search Appearance in the All in One SEO menu.
Next, click on the Content Types tab and scroll down to the post type you want to include custom fields for.
Now, click on the Custom Fields tab and you’ll see a large field where you can enter a list of your custom fields, one per line.
This filter can be used to filter the additional pages of the sitemap.
Arguments (1)
$pages (array) – The additional pages.
Example code snippet
The code snippet below is just an example of how this filter can be used. In the example below, a single additional page is appended to the list of additional pages.
If you’re seeing a notice in All in One SEO about Blank title formats, then this article will help you determine if you need to take action.
The reason for this notice is because in Version 3.x of All in One SEO, you had removed the strings from Title Format fields. The Title Format fields should look like this:
When the strings seen above are deleted from these fields, All in One SEO can no longer output SEO titles for your content. This means that WordPress, not All in One SEO, is generating the SEO titles.
When you update to version 4.x of All in One SEO, we migrate settings which include empty Title Format fields.
When you edit your content and see that SEO titles you’d set weren’t migrated, then this would explain why.
For example, if the Page Title Format field in All in One SEO v3.x is blank, then it means All in One SEO is not outputting any SEO titles for your Pages, regardless of what you set on each individual Page.
When you update to v4.x, the SEO titles for your Pages are not migrated and will be empty. Instead, WordPress will be generating the SEO titles, just like it was doing before you updated.
If you want to use All in One to set your SEO titles then follow these steps:
Go to All in One SEO » Search Appearance » Content Types and scroll down to the section for the content you want to change, for example: Pages.
In the Title field, use the tags to set the format for your SEO titles and click Save Changes.
If you want to set individual SEO titles for each item of content, then edit the content and enter your SEO title in the AIOSEO Details section.
All in One SEO Pro lets you add Schema markup for courses. This means that search engines can display rich snippets for your course like the example below.
You can set the default Schema Type for your course content by going to All in One SEO » Search Appearance » Content Types and clicking on the Schema Markup tab in the content section for your courses.
When you select Course as the Schema Type for your content, you’ll see additional fields when editing your course content where you can enter your course information.
To get started, edit one of your courses, scroll down to the AIOSEO Settings section and click on the Schema tab.
Complete the Name, Description and Provider fields as described below:
Name – enter the name of your course
Description – enter a description of your course (Note: Google has a limit of 60 characters for this description)
Provider – enter the name of the organization that is providing the course
Please note that this information only appears in the Schema markup in the source code of your content, it does not appear as content visible to visitors on your site.