Skip to content

SEO Configuration

NectarPress includes a built-in SEO layer covering meta tags, Open Graph, Twitter Cards, and structured data — no separate SEO plugin required for most setups.


Basic Meta Tags (Tab 10 SEO)

Setting Purpose
Default Meta Title <title> tag on the homepage
Default Meta Keywords Homepage meta keywords
Default Meta Description Homepage meta description and OG fallback
Default OG Image 1200 × 630 px fallback image for social sharing
Google Site Verification Search Console ownership verification

All these apply to the homepage only. Single posts, categories, and pages use their own WordPress-generated meta tags.


Per-Post SEO

NectarPress adds a Nepali Date and optional custom meta fields to the post editor:

  • _np_custom_title — Override the <title> for individual posts
  • _np_custom_desc — Override the meta description
  • _np_is_premium — Flag the post as premium/paywalled (1 or 0)

Using a dedicated SEO plugin

NectarPress is fully compatible with Yoast SEO, Rank Math, and The SEO Framework. If one of these is active, NectarPress suppresses its own meta output to avoid duplication.


Open Graph

Auto-generated for every public page:

<meta property="og:title"       content="Article Title" />
<meta property="og:description" content="First 155 chars of post excerpt" />
<meta property="og:image"       content="Featured image URL" />
<meta property="og:type"        content="article" />
<meta property="article:published_time" content="ISO 8601 date" />
<meta property="article:author" content="Author profile URL" />

Set your Facebook App ID in Tab 10 SEO to enable Facebook Comments and rich sharing previews.


Twitter / X Cards

<meta name="twitter:card"    content="summary_large_image" />
<meta name="twitter:site"    content="@yourhandle" />
<meta name="twitter:creator" content="@authorhandle" />

Set the handle under Tab 10 SEO → Twitter / X Handle.


Schema.org Structured Data

NectarPress outputs JSON-LD for:

Content type Schema type
Homepage WebSite + SearchAction
News article NewsArticle
Author page Person
Organization NewsMediaOrganization

The organization name and address are pulled from Tab 07 Footer Company.


Google Analytics & Tag Manager

Integration Setting Tab
GA4 Measurement ID G-XXXXXXXXXX 10 SEO or 15 Integrations
GTM Container ID GTM-XXXXXXX 10 SEO or 15 Integrations
Facebook Pixel Pixel ID (numeric) 15 Integrations
Microsoft Clarity Project ID 15 Integrations

All analytics scripts are loaded via the lazy analytics loader (assets/js/analytics-loader.js) — they fire after the first user interaction (click, scroll, keypress) or after 2 s, whichever comes first. This keeps Lighthouse scores high.


Sitemap

NectarPress does not generate a sitemap. Use one of:

  • WordPress core → Settings → Reading → enable XML sitemap
  • Yoast SEO — full news sitemap support
  • Google XML Sitemaps plugin

For Google News indexing, submit your sitemap at Google Search Console and request News publisher status.


Canonical URLs

WordPress generates <link rel="canonical" /> automatically. NectarPress does not override this. No additional configuration is required.


Robots / Crawling

Use robots.txt (accessible at https://yourdomain.com/robots.txt) or the Disallow settings in any SEO plugin. NectarPress itself does not modify robots.txt.


Common Issues

Headlines not showing in Google News

  1. Ensure your <article> tags have class="post-type-post" (generated by NectarPress).
  2. Verify DatePublished and DateModified are in ISO 8601 format.
  3. Submit a News sitemap via Google Search Console.

Missing OG image on Facebook shares

Check that your Default OG Image is set in Tab 10 SEO and is at least 1200 × 630 px. Facebook requires a minimum 600 × 315 px image.

Schema errors in Google's Rich Results Test

Ensure Tab 07 Footer Company → Publisher / Company Name is filled in. Without it, the NewsMediaOrganization publisher field is empty.