SEO Generator



Product categories

Using All in One SEO with SEO Generator

Currently All in One SEO (AISEO) is not fully compatible with SEO Generator. To have the shortcodes replaced in the title and meta description, add this snippet to your theme’s ‘functions.php’.

Step 1: Access Your Theme’s functions.php File

  1. Via WordPress Admin Dashboard:
    • Go to your WordPress dashboard.
    • Navigate to Appearance -> Theme Editor.
    • In the right-hand sidebar, look for the functions.php file and click on it.
  2. Via FTP or File Manager:
    • Use an FTP client (like FileZilla) or your hosting provider’s file manager to access your WordPress files.
    • Navigate to wp-content/themes/your-theme-name/.
    • Locate and open the functions.php file for editing.

Step 2: Add the Code Snippet

Copy and paste the following code snippet into your theme’s functions.php file:

function seo_generator_aioseo_title_meta_desc_filter($text)
{
if (function_exists('nsg_get_seo_pages_replace_search_terms_and_locations'))
{
$text = nsg_get_seo_pages_replace_search_terms_and_locations($text);
}
return $text;
}
add_filter('aioseo_title', 'seo_generator_aioseo_title_meta_desc_filter');
add_filter('aioseo_description', 'seo_generator_aioseo_title_meta_desc_filter');

Step 3: Save Your Changes

  • If you are using the WordPress Theme Editor, click the Update File button to save your changes.
  • If you are using an FTP client or file manager, save the functions.php file and upload it back to the server if necessary.

Step 4: Set title and meta sescription

You can now use the shortcodes in the AIOSEO settings on the SEO Page:

Result

The shortcodes in title and meta description are replaced: