Description
MetaWise SEO adds a meta box to public post types and a settings page under Settings → MetaWise SEO. It outputs SEO meta tags in wp_head and serves an XML sitemap.
Post editor
The meta box appears on all public post types except attachments, at normal/high priority. It stores six meta keys:
_ifat_seo_writer_title— overrides the document title via thedocument_title_partsfilter._ifat_seo_writer_description— printed as<meta name="description">._ifat_seo_writer_focus_kw— used only by the on-screen checks; not output on the front end._ifat_seo_writer_canonical— printed as<link rel="canonical">when set._ifat_seo_writer_noindex— addsnoindexvia thewp_robotsfilter and excludes the post from the sitemap._ifat_seo_writer_nofollow— addsnofollowvia thewp_robotsfilter.
All six are registered with register_post_meta() using an edit_post auth callback. Empty values are deleted rather than stored. The box shows a search-result preview, character counters for the title (30–60) and description (120–160), and pass/warn checks for description presence, title length, content word count (300) and focus keyword placement. The checks recalculate on save.
Front end output
Printed on wp_head at priority 1:
description— from post meta, falling back to the excerpt, then to the first 30 words of the content. On the front page it uses the home description setting, then the site tagline. On term archives it uses the term description.- Open Graph —
og:locale,og:type,og:title,og:description,og:url,og:site_name,og:image, plusarticle:published_timeandarticle:modified_timeon single posts. - Twitter —
twitter:card,twitter:site,twitter:title,twitter:description,twitter:image.
The sharing image is the featured image at large size, falling back to the default image set in the settings. Open Graph and Twitter output can each be turned off.
Robots
Applied through the wp_robots filter. Search results are set to noindex by default; category, tag and date archives and author archives are opt-in. Per-post noindex and nofollow are applied on singular views.
XML sitemap
Served at /ifat-seo-writer-sitemap.xml through a rewrite rule on the ifat_seo_writer_sitemap query var, sent as application/xml with an X-Robots-Tag: noindex, follow header. It includes the home page plus up to 1,000 published entries from the selected post types, ordered by modified date descending. Posts marked noindex and password-protected posts are excluded. The URL is appended to robots.txt when the site is public. While enabled, the core WordPress sitemap is disabled via wp_sitemaps_enabled to avoid two sitemaps.
The file name is configurable on the settings page, so the sitemap can live at a less predictable URL. Saving a new name rewrites the rule and removes the old one, so the previous URL stops responding. The .xml extension is always added by the plugin.
Storage
Settings live in a single option, ifat_seo_writer_settings, sanitized on save with register_setting(). The settings page requires the manage_options capability. The plugin makes no external HTTP requests.
Filters
ifat_seo_writer_meta_box_post_types— post types that get the meta box.ifat_seo_writer_meta_description— the description before it is printed.ifat_seo_writer_sitemap_entries— sitemap entries before rendering.
Installation
- Upload the plugin folder to
/wp-content/plugins/, or install it through the Plugins screen. - Activate the plugin.
- Go to Settings → MetaWise SEO to set the home page title, description and default sharing image.
- Edit any post or page and use the MetaWise SEO panel below the content.
Activation registers the sitemap rewrite rule and flushes rewrite rules. If the sitemap URL returns a 404, go to Settings → Permalinks and press Save once.
FAQ
Does this work alongside Yoast or Rank Math?
It runs without conflict, but both plugins will print their own title, description and Open Graph tags, producing duplicates. Use one SEO plugin at a time.
Where is the sitemap?
At /ifat-seo-writer-sitemap.xml on your own domain by default. The full URL is shown on the settings page.
Can I change the sitemap URL?
Yes. Set a different file name under Settings → MetaWise SEO. Only letters, numbers and dashes are kept, and .xml is added automatically. After renaming, the old URL returns a 404, so submit the new one in Google Search Console.
How many URLs does the sitemap include?
The home page plus up to 1,000 published entries from the post types you selected, ordered by modified date, newest first. Posts marked noindex and password-protected posts are skipped. Sitemaps are not paginated in this version.
Does the focus keyword change anything on the front end?
No. It is stored as post meta and used only for the checks shown in the editor.
Does the plugin send data anywhere?
No. There are no external HTTP requests, no tracking and no third-party services.
What happens when I delete the plugin?
uninstall.php deletes the ifat_seo_writer_settings option and all six _ifat_seo_writer_* meta keys across all posts. Post content is not modified.
Changelog
1.0.0
- Initial release.
