Skip to content

SEO Engine

WAGE has a built-in SEO engine that eliminates the need for SEO plugins like Yoast or RankMath.

SEO data comes from two sources:

  1. wage_seo_set() — called at the top of each page template with page-specific data
  2. seo-data.php — a PHP array with site-wide SEO defaults

The engine outputs <title>, meta description, Open Graph tags, Twitter cards, and JSON-LD structured data.

In each page template:

<?php
wage_seo_set([
'title' => 'About Us',
'description' => 'Learn about our company and team.',
'schema' => [
'@type' => 'AboutPage',
'name' => 'About Us',
],
]);
get_header();
?>

Set via WP options (WP-CLI or dashboard):

OptionPurpose
wage_seo_defaultssite_name, separator, default_description, robots
wage_seo_archivesTaxonomy title templates
wage_seo_singlesPost type title templates (blogs, products, etc.)

The SEO engine supports JSON-LD schema. Common types:

  • LocalBusiness — for the homepage (name, phone, email, address)
  • AboutPage, ContactPage — for standard pages
  • Product, Service — for service/product pages

Schema is passed via the schema key in wage_seo_set().