Compare commits

...
15 Commits
Author SHA1 Message Date
mydev 04d27326eb updates
Build and Release WordPress Plugin / build-release (push) Successful in 40s
2026-11-25 04:31:33 +02:00
mydev bc99f3999d updates
release.yml (push) Invalid workflow file
2026-11-25 04:30:54 +02:00
mydev 07867efd5a updates
Build and Release WordPress Plugin / build-release (push) Failing after 42s
2026-11-25 04:27:24 +02:00
mydev 5837c330d0 provide new features
Build WordPress Plugin (XML-driven) / build-release (push) Failing after 3m26s
2026-11-23 10:22:56 +02:00
Mohamed Youssef 4e9d418e04 update
Build WordPress Plugin (XML-driven) / build-release (push) Failing after 7m17s
2026-08-02 10:17:37 +03:00
Mohamed Youssef 412844bb1f update
Build WordPress Plugin (XML-driven) / build-release (push) Failing after 35s
2026-08-02 10:15:50 +03:00
Mohamed Youssef da3b582a63 update
Build WordPress Plugin (XML-driven) / build-release (push) Failing after 24s
2026-08-02 10:13:22 +03:00
Mohamed Youssef 9019cf48d3 update
Build WordPress Plugin (XML-driven) / build-release (push) Failing after 23s
2026-08-02 10:10:54 +03:00
Mohamed Youssef 4e54ecf721 update
Build WordPress Plugin (Simple) / build-release (push) Failing after 22s
2026-08-02 10:07:36 +03:00
Mohamed Youssef 5b9ad90ed7 update
Build WordPress Plugin (Simple) / build-release (push) Failing after 24s
2026-08-02 09:55:53 +03:00
Mohamed Youssef 4d8823b1b3 update
WP Plugin Version & Release / release (push) Failing after 8s
2026-08-02 09:49:23 +03:00
Mohamed Youssef baf56793b6 update
WP Plugin Version & Release / release (push) Failing after 25s
2026-08-02 09:48:11 +03:00
Mohamed Youssef b8674dc363 update
Build WordPress Plugin for Gitea / build-release (push) Failing after 9s
2026-08-02 09:44:57 +03:00
Mohamed Youssef ee4f96656b update
Build WordPress Plugin for Gitea / build-release (push) Failing after 8s
2026-08-02 09:43:21 +03:00
Mohamed Youssef ebc7bfb4f6 updates 2026-08-02 09:42:31 +03:00
4 changed files with 1506 additions and 349 deletions

No files matched your search

+128 -124
View File
@@ -1,162 +1,166 @@
name: Build WordPress Plugin for Gitea
name: Build and Release WordPress Plugin
on:
push:
tags:
- 'v*' # Trigger on version tags like v1.0.0
# workflow_dispatch: # Uncomment to enable manual trigger
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
build-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
# 1. Checkout
- name: Checkout
uses: actions/checkout@v4
# ------------------------------------------------
# 1. OPTIONAL – Setup PHP & Composer
# ------------------------------------------------
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
tools: composer
# If your plugin does NOT use Composer, remove this step.
# ------------------------------------------------
# 2. OPTIONAL – Setup Node & NPM
# ------------------------------------------------
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
# If your plugin does NOT use NPM, remove this step.
# ------------------------------------------------
# 3. OPTIONAL – Install dependencies & build assets
# ------------------------------------------------
- name: Install Composer dependencies (production only)
# 2. Install dependencies
- name: Install dependencies
run: |
if [ -f "composer.json" ]; then
composer install --no-dev --prefer-dist --optimize-autoloader
fi
sudo apt-get update
sudo apt-get install -y \
php-cli \
zip \
unzip \
rsync \
curl
- name: Install NPM dependencies & build
# 3. Extract plugin metadata
- name: Extract plugin metadata
run: |
if [ -f "package.json" ]; then
npm ci
fi
if [ -f "package.json" ] && grep -q '"build"' package.json; then
npm run build
fi
set -euo pipefail
# ------------------------------------------------
# 4. Extract plugin metadata from main file
# ------------------------------------------------
- name: Get plugin version and slug
id: meta
run: |
# Find the main plugin file (with "Plugin Name:" header)
MAIN_FILE=$(grep -l "Plugin Name:" *.php | head -n 1)
if [ -z "$MAIN_FILE" ]; then
echo "❌ No main plugin file (with 'Plugin Name:') found!" >&2
MAIN_FILE="advanced-seo-keywords.php"
SLUG="advanced-seo-keywords"
test -f "$MAIN_FILE"
NAME=$(sed -nE \
's/^[[:space:]]*\*[[:space:]]*Plugin Name:[[:space:]]*(.*)/\1/p' \
"$MAIN_FILE" | head -n1)
VERSION=$(sed -nE \
's/^[[:space:]]*\*[[:space:]]*Version:[[:space:]]*([^[:space:]]+).*/\1/p' \
"$MAIN_FILE" | head -n1)
if [ -z "$NAME" ] || [ -z "$VERSION" ]; then
echo "Plugin metadata missing"
exit 1
fi
# Extract version (strip trailing carriage returns)
VERSION=$(grep "^Version:" "$MAIN_FILE" | awk -F' ' '{print $NF}' | tr -d '\r')
if [ -z "$VERSION" ]; then
echo "❌ Version header not found in $MAIN_FILE" >&2
if ! [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Invalid version: $VERSION"
exit 1
fi
# Use repository name as slug, or override with a custom variable
SLUG="${GITHUB_REPOSITORY##*/}"
echo "PLUGIN_NAME=$NAME" >> "$GITHUB_ENV"
echo "VERSION=v$VERSION" >> "$GITHUB_ENV"
echo "SLUG=$SLUG" >> "$GITHUB_ENV"
echo "FILENAME=$SLUG-v$VERSION.zip" >> "$GITHUB_ENV"
echo "PLUGIN_SLUG=$SLUG" >> $GITHUB_ENV
echo "PLUGIN_VERSION=$VERSION" >> $GITHUB_ENV
echo "FILENAME=${SLUG}-${VERSION}.zip" >> $GITHUB_ENV
echo "MAIN_FILE=$MAIN_FILE" >> $GITHUB_ENV
echo "✅ Plugin: $SLUG, Version: $VERSION"
echo "Plugin: $NAME"
echo "Version: $VERSION"
echo "Slug: $SLUG"
# ------------------------------------------------
# 5. Prepare package (exclude dev files)
# ------------------------------------------------
- name: Prepare package directory
# 4. Validate PHP
- name: Validate PHP
run: |
mkdir -p /tmp/build/${{ env.PLUGIN_SLUG }}
set -euo pipefail
php -l advanced-seo-keywords.php
# Rsync all files, excluding common dev/dependency folders
# If you have a .distignore file, use: --exclude-from='.distignore'
rsync -av \
--exclude='.git' \
--exclude='.github' \
--exclude='.distignore' \
--exclude='.gitignore' \
--exclude='node_modules' \
--exclude='vendor' \ # we installed --no-dev, but safe to exclude anyway
--exclude='tests' \
--exclude='.env*' \
--exclude='*.log' \
--exclude='*.map' \
--exclude='package-lock.json' \
--exclude='composer.lock' \
--exclude='package.json' \ # Remove if you want to keep it
--exclude='composer.json' \ # Remove if you want to keep it
--exclude='webpack.config.js' \
--exclude='gulpfile.js' \
--exclude='Gruntfile.js' \
--exclude='phpunit.xml' \
--exclude='.wordpress-org' \
./ /tmp/build/${{ env.PLUGIN_SLUG }}/ 2>/dev/null || true
# Adjust excludes above if your plugin needs any of these files in production.
# ------------------------------------------------
# 6. Create ZIP archive
# ------------------------------------------------
- name: Create plugin zip
# 5. Prepare package
- name: Prepare package
run: |
cd /tmp/build
zip -r "$GITHUB_WORKSPACE/${{ env.FILENAME }}" ${{ env.PLUGIN_SLUG }}/
cd $GITHUB_WORKSPACE
echo "✅ Created: $FILENAME"
set -euo pipefail
# ------------------------------------------------
# 7. Install and configure tea CLI
# ------------------------------------------------
- name: Install tea CLI (pinned version)
rm -rf build
mkdir -p "build/$SLUG"
rsync -a \
--exclude='/.git/' \
--exclude='/.gitea/' \
--exclude='/.github/' \
--exclude='/build/' \
--exclude='/plugin.xml' \
--exclude='/node_modules/' \
--exclude='/tests/' \
./ "build/$SLUG/"
test -f "build/$SLUG/advanced-seo-keywords.php"
# 6. Build ZIP
- name: Build ZIP
run: |
curl -L https://dl.gitea.io/tea/0.11.0/tea-0.11.0-linux-amd64 -o tea
set -euo pipefail
cd build
zip -qr "../$FILENAME" "$SLUG"
cd ..
test -s "$FILENAME"
unzip -t "$FILENAME"
# 7. Verify package
- name: Verify package
run: |
set -euo pipefail
unzip -l "$FILENAME"
unzip -p "$FILENAME" \
"$SLUG/advanced-seo-keywords.php" \
| grep -E 'Plugin Name:|Version:'
# 8. Install Gitea CLI
- name: Install tea
run: |
set -euo pipefail
curl -fL \
https://dl.gitea.io/tea/main/tea-main-linux-amd64 \
-o tea
chmod +x tea
sudo mv tea /usr/local/bin/
sudo install tea /usr/local/bin/tea
- name: Configure tea
tea --version
# 9. Configure Gitea authentication
- name: Configure Gitea
env:
GITEA_URL: ${{ vars.SERVER_URL }}
GITEA_TOKEN: ${{ secrets.OC3_EXTENSION_RELEASE_TOKEN }}
run: |
set -euo pipefail
test -n "$GITEA_URL"
test -n "$GITEA_TOKEN"
tea login add \
--name gitea \
--url "${{ vars.GITEA_SERVER_URL }}" \
--token "${{ secrets.GITEA_TOKEN }}"
--url "$GITEA_URL" \
--token "$GITEA_TOKEN"
# ------------------------------------------------
# 8. Create or update Gitea release
# ------------------------------------------------
- name: Create Gitea release
# 10. Create release and upload ZIP
- name: Publish release
run: |
TAG="v${{ env.PLUGIN_VERSION }}"
REPO="${{ vars.GITEA_REPO }}"
set -euo pipefail
# If a release with this tag already exists, delete it (optional)
if tea release list --repo "$REPO" | grep -q "^$TAG "; then
echo "Release $TAG already exists – deleting it."
tea release delete "$TAG" --repo "$REPO"
fi
tea releases create "$VERSION" \
--title "$PLUGIN_NAME $VERSION" \
--note "Automated WordPress plugin release $VERSION" \
--asset "$FILENAME"
tea release create "$TAG" \
--title "${{ env.PLUGIN_SLUG }} v${{ env.PLUGIN_VERSION }}" \
--asset "${{ env.FILENAME }}" \
--repo "$REPO"
echo "✅ Release $TAG created with asset ${{ env.FILENAME }}"
# 11. Report
- name: Release summary
run: |
echo "Release successfully submitted."
echo "Version: $VERSION"
echo "Asset: $FILENAME"
echo "Repository: $GITHUB_REPOSITORY"
+281 -67
View File
@@ -1,103 +1,317 @@
# Advanced SEO Meta + AI FAQ Schema
Advanced SEO Meta + AI FAQ Schema is a lightweight WordPress plugin that adds fine-grained control over page titles, meta descriptions, Open Graph tags, and automatic JSON-LD FAQ output to improve visibility in classic search and AI-powered search experiences.
A lightweight WordPress plugin for precise control over page titles, meta descriptions, Open Graph / Twitter cards, canonical and robots tags, FAQ structured data, and business (local) schema.
![Version](https://img.shields.io/badge/version-3.0.0-blue.svg) ![WordPress](https://img.shields.io/badge/wordpress-5.8%2B-brightgreen.svg) ![PHP](https://img.shields.io/badge/php-7.4%2B-8892BF.svg)
[![Version](https://img.shields.io/badge/version-4.1.0-blue.svg)](#changelog)
[![WordPress](https://img.shields.io/badge/wordpress-5.7%2B-brightgreen.svg)](#requirements)
[![PHP](https://img.shields.io/badge/php-7.4%2B-8892BF.svg)](#requirements)
[![License](https://img.shields.io/badge/license-GPL--2.0%2B-lightgrey.svg)](#license)
## Summary
## Table of contents
- One-line: Add custom SEO title, meta description, Open Graph and FAQ JSON-LD for posts and pages.
## Requirements
- WordPress 5.8 or later
- PHP 7.4 or later
- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Upgrading from 3.x](#upgrading-from-3x)
- [Usage](#usage)
- [Settings](#settings)
- [FAQ schema and the `[seo_faq]` shortcode](#faq-schema-and-the-seo_faq-shortcode)
- [What gets output on the front end](#what-gets-output-on-the-front-end)
- [Compatibility with other SEO plugins](#compatibility-with-other-seo-plugins)
- [Developer reference](#developer-reference)
- [Troubleshooting](#troubleshooting)
- [Uninstalling](#uninstalling)
- [Changelog](#changelog)
- [License](#license)
## Features
- Custom SEO title field for posts and pages
- Custom meta description field for improved search snippets
- FAQ builder to add multiple questions and answers per post/page
- Automatic JSON-LD `FAQPage` schema output for AI search engines (Google SGE, Bing Chat, etc.)
- Open Graph meta tags for Facebook, LinkedIn, and other social previews
- Clean meta box in the WordPress editor for quick optimization
**Per-post / per-page (meta box)**
## What the plugin adds
- Custom SEO title and meta description, with live character counters (title ~60, description 150–160)
- Social share image (`og:image`) override, with fallback to Featured Image, then the site default
- "Hide from search engines" (noindex) checkbox, which also removes the item from the core XML sitemap
- FAQ builder: drag-to-reorder rows, duplicate-question warning, basic HTML allowed in answers
- Works on every public post type (filterable)
When editing a post or page you can enter:
**Site-wide (Settings → Advanced SEO)**
- SEO Title
- Meta Description
- FAQ questions and answers
- Homepage title and description
- Default Open Graph image (1200×630 recommended)
- Business schema: `MedicalBusiness`, `MedicalClinic`, `DiagnosticLab`, `LocalBusiness` or `Organization`, with address, phone, email, geo, opening hours, price range, areas served and `sameAs` profiles
On the front end the plugin outputs:
**Front-end output**
- A page title override when provided
- A meta description tag
- Open Graph meta tags
- Structured FAQ schema in JSON-LD format
- `<title>` override
- Meta description (one shared source for both `description` and `og:description`, trimmed at a word boundary to 160 characters)
- Canonical URL (replaces the core one, pagination-aware)
- Robots: `noindex` for search, 404 and flagged posts (via the core `wp_robots` filter)
- Open Graph and Twitter Card tags, including `article:*` tags for posts
- FAQPage JSON-LD and a visible `[seo_faq]` shortcode
- Business JSON-LD on the homepage
- Handles static front pages and separate posts pages correctly, plus category, tag, taxonomy and author archives
## Requirements
- WordPress 5.7 or later (uses the `wp_robots` filter)
- PHP 7.4 or later
## Installation
1. Upload the plugin folder to your WordPress installation's `wp-content/plugins/` directory and activate it under `Plugins` → `Installed Plugins`.
2. Or install from ZIP: `Plugins` → `Add New` → `Upload Plugin` → choose the ZIP and click `Install Now`.
3. After activation, edit any post or page and look for the "Advanced SEO & AI FAQ Schema" meta box in the editor.
**From a ZIP**
1. Download the latest ZIP from [Releases](https://git.my-dev.pro/mydev/advanced-seo-keywords/releases).
2. In WordPress go to **Plugins → Add New → Upload Plugin**, choose the ZIP and click **Install Now**.
3. Click **Activate**.
**Manually**
1. Copy the plugin folder to `wp-content/plugins/advanced-seo-keywords/` (the main file is `advanced-seo-keywords.php`).
2. Activate it under **Plugins → Installed Plugins**, or run `wp plugin activate advanced-seo-keywords`.
After activation:
- Go to **Settings → Advanced SEO** and fill in the homepage and business details.
- Edit any post or page to see the **Advanced SEO & FAQ Schema** meta box.
## Upgrading from 3.x
Version 3.x and 4.x define the same PHP class (`Advanced_SEO_Meta`), so they cannot be active at the same time.
1. Replace the plugin files in the **same folder** (`advanced-seo-keywords`), or deactivate and delete the old 3.x plugin first and then install 4.x.
2. Activate the plugin and confirm that **Settings → Advanced SEO** now exists.
3. Clear your caches (object cache, page cache and CDN).
Your existing data is preserved. Version 4.x reads the same post meta keys (`_seo_title`, `_seo_description`, `_seo_faq`) as 3.x.
> **Note:** the 3.x README listed `aseo_*` filters. Those were never implemented in the 3.x code. Use the `advanced_seo_*` filters documented [below](#developer-reference).
## Usage
1. Open a post or page in the editor.
2. Fill in the custom SEO Title and Meta Description as needed.
3. Use the FAQ builder to add one or more question/answer pairs.
4. Publish or update the post — the JSON-LD will be added to the page head automatically.
### Per post or page
### Example JSON-LD output
1. Open the editor and find the **Advanced SEO & FAQ Schema** box.
2. Fill in:
- **SEO Title** (counter turns green between 30 and 60 characters)
- **Meta Description** (green between 120 and 160 characters)
- **Noindex** if the page should stay out of search results and the sitemap
- **Social Share Image** (1200×630 recommended)
- **FAQ** question and answer pairs
3. Update the post.
```json
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "What does this plugin do?",
"acceptedAnswer": {
"@type": "Answer",
"text": "It adds custom SEO title, meta description, Open Graph tags and FAQ JSON-LD to posts and pages."
}
}
]
}
If a field is empty, the plugin falls back sensibly:
| Value | Fallback chain |
|---|---|
| Title | Custom title → WordPress default title |
| Description | Custom description → manual excerpt → trimmed content (shortcodes and blocks stripped) |
| `og:image` | Per-post image → Featured Image → Default OG Image → Site Icon |
### Homepage
Set the homepage title, description and default OG image under **Settings → Advanced SEO**. If those are blank, the static front page's own SEO fields are used, then the site title and tagline.
## Settings
**Settings → Advanced SEO**
| Section | Field | Notes |
|---|---|---|
| Homepage SEO | Title | ~60 characters |
| | Meta Description | 150–160 characters |
| | Default OG Image | Used when a page has no image of its own |
| Business Schema | Schema Type | `MedicalBusiness`, `MedicalClinic`, `DiagnosticLab`, `LocalBusiness`, `Organization` |
| | Business Name | Leave blank to disable the schema entirely |
| | Phone, Email | |
| | Street, City, Country (2-letter code) | Output as `PostalAddress` |
| | Latitude, Longitude | Output as `GeoCoordinates` |
| | Opening Hours | One per line, e.g. `Mo-Fr 09:00-17:00` |
| | Price Range | e.g. `$$` |
| | Areas Served | Comma-separated codes, output as `Country` objects |
| | Social / Profile URLs | One per line, output as `sameAs` |
| | Logo | Output as `logo` and `image` |
Business schema is printed on the homepage only (first page, not paginated).
## FAQ schema and the `[seo_faq]` shortcode
The meta box stores question and answer pairs and prints them as `FAQPage` JSON-LD in the page head.
Google requires FAQ markup to match content that is **visible on the page**. Display the same Q&As with the shortcode:
```
[seo_faq]
```
## Configuration & Developer Hooks
Or for a specific post:
The plugin provides filters and actions so developers can modify output or integrate with other plugins:
```
[seo_faq id="123"]
```
- Filter `aseo_meta_title` — modify the computed SEO title
- Filter `aseo_meta_description` — modify the meta description
- Filter `aseo_faq_schema` — modify the generated FAQ JSON-LD array before encoding
- Action `aseo_faq_saved` — runs after FAQ entries are saved for a post
Example (in your theme or plugin):
In a template:
```php
add_filter('aseo_meta_title', function($title, $post_id){
return $title . ' | My Site';
}, 10, 2);
echo do_shortcode( '[seo_faq]' );
```
The shortcode renders this markup, which you can style:
```html
<div class="advanced-seo-faq">
<div class="advanced-seo-faq__item">
<h3 class="advanced-seo-faq__question">…</h3>
<div class="advanced-seo-faq__answer">…</div>
</div>
</div>
```
Allowed HTML in answers: `p`, `br`, `ul`, `ol`, `li`, `strong`, `b`, `em`, `i`, `a[href]` and headings `h2`–`h6`.
> **About rich results:** since August 2023, Google shows FAQ rich results only for well-known government and health authority sites. The markup remains valid structured data, but do not expect expanded FAQ listings for most sites, and there is no verified evidence that it influences AI-generated answers.
## What gets output on the front end
| Tag | Source |
|---|---|
| `<title>` | `pre_get_document_title` filter |
| `<meta name="description">` | Shared description resolver |
| `<link rel="canonical">` | Own output; core `rel_canonical` is removed |
| `<meta name="robots">` | Core `wp_robots` filter (adds `noindex` where needed) |
| `og:*`, `article:*`, `twitter:*` | Open Graph block (look for the `Advanced SEO Meta: Open Graph` HTML comment) |
| FAQPage JSON-LD | Singular pages with FAQ entries |
| Business JSON-LD | Homepage, when a Business Name is set |
Noindex is applied to search results, 404 pages and posts flagged in the meta box. Paginated archives stay indexable by default (see the `advanced_seo_noindex_paginated` filter).
## Compatibility with other SEO plugins
To avoid duplicate tags, the plugin detects Yoast SEO, Rank Math, All in One SEO, SEOPress and The SEO Framework. When one is active:
- the title, description, Open Graph, canonical and robots output is turned off,
- FAQ and business schema are still printed,
- an admin notice appears on the Plugins page and on the settings page.
Override this with the `advanced_seo_force_output` filter.
## Developer reference
### Filters
| Filter | Arguments | Purpose |
|---|---|---|
| `advanced_seo_post_types` | `array $post_types` | Post types that get the meta box and REST fields (default: all public types except attachments) |
| `advanced_seo_og_data` | `array $data` | Modify Open Graph data before output |
| `advanced_seo_business_schema` | `array $schema` | Modify the business schema array, e.g. add a second location |
| `advanced_seo_canonical` | `string $url, array $ctx` | Modify the canonical URL |
| `advanced_seo_noindex_paginated` | `bool $noindex` (default `false`) | Return `true` to noindex paginated archives |
| `advanced_seo_force_output` | `bool $force` (default `false`) | Return `true` to keep frontend output even if another SEO plugin is active |
Examples:
```php
// Limit the plugin to posts and pages only.
add_filter( 'advanced_seo_post_types', function () {
return [ 'post', 'page' ];
} );
// Add a second business location.
add_filter( 'advanced_seo_business_schema', function ( $schema ) {
$schema['location'] = [
[ '@type' => 'Place', 'name' => 'Dubai branch',
'address' => [ '@type' => 'PostalAddress',
'streetAddress' => 'Dubai Silicon Oasis, DDP, Building A2',
'addressLocality' => 'Dubai', 'addressCountry' => 'AE' ] ],
];
return $schema;
} );
// Set a custom OG image for a specific page.
add_filter( 'advanced_seo_og_data', function ( $data ) {
if ( is_page( 'contact' ) ) {
$data['image'] = 'https://example.com/contact-og.jpg';
}
return $data;
} );
```
### Post meta
| Key | Type | Description |
|---|---|---|
| `_seo_title` | string | SEO title |
| `_seo_description` | string | Meta description |
| `_seo_og_image_id` | int | Attachment ID for `og:image` |
| `_seo_faq` | array | `[ [ 'question' => '…', 'answer' => '…' ], … ]` |
| `_seo_noindex` | string | `'1'` when the post is noindexed |
These keys are exposed through the REST API (`show_in_rest`), so they are available to the block editor and external tools.
### Options
`_seo_home_title`, `_seo_home_description`, `_seo_default_og_image`, `_seo_biz_type`, `_seo_biz_name`, `_seo_biz_phone`, `_seo_biz_email`, `_seo_biz_street`, `_seo_biz_city`, `_seo_biz_country`, `_seo_biz_areas`, `_seo_biz_logo`, `_seo_biz_sameas`, `_seo_biz_lat`, `_seo_biz_lng`, `_seo_biz_hours`, `_seo_biz_price`
### Image size
A hard-cropped `advanced_seo_og` size (1200×630) is registered. Regenerate thumbnails for existing images to benefit from it; until then the full-size image is used.
## Troubleshooting
**Settings → Advanced SEO does not appear**
The 4.x code is not running. Confirm that the plugin is active and that no other copy defines `Advanced_SEO_Meta` (`grep -rl "Advanced_SEO_Meta" wp-content --include=*.php`). Flush the object cache and ask your host to reset PHP opcache if the file on disk was just replaced.
**The page still shows only four OG tags and `og:type=article`**
That is the 3.x output. See [Upgrading from 3.x](#upgrading-from-3x).
**Duplicate title, description or OG tags**
Another SEO plugin, the theme or a code snippet is printing them as well. Disable one source.
**No `og:image` on shares**
Set a Default OG Image under Settings → Advanced SEO, and clear the Facebook / LinkedIn sharing debugger caches.
**FAQ rich results do not appear**
See the note [above](#faq-schema-and-the-seo_faq-shortcode); this is a Google policy and not a plugin fault. Validate the markup with Google's Rich Results Test.
## Uninstalling
Deleting the plugin from **Plugins → Installed Plugins** removes all of its options and all `_seo_*` post meta (titles, descriptions, images, FAQs and noindex flags). Back up your database first if you may reinstall later. Deactivating the plugin does not delete anything.
## Changelog
- 3.0.0 — Initial release: SEO title, meta description, Open Graph, FAQ builder, JSON-LD output
### 4.1.0
- Fix: static front page and posts page are handled separately, so the posts page no longer inherits homepage SEO
- Fix: one shared description resolver for `description` and `og:description`; shortcodes and blocks stripped; trimmed at a word boundary
- Fix: schema JSON encoded with `JSON_HEX_TAG` and `JSON_HEX_AMP`
- Fix: saving skips revisions and unsupported post types; empty values are deleted instead of stored
- Fix: OG data filter result merged with defaults to avoid PHP notices
- New: canonical URL output (replaces the core one) and robots handling via `wp_robots`
- New: per-post noindex checkbox and exclusion from the XML sitemap
- New: detection of Yoast, Rank Math, AIOSEO, SEOPress and The SEO Framework
- New: `[seo_faq]` shortcode for the visible FAQ; basic HTML preserved in FAQ answers
- New: business schema types, `@id`, `logo`, `email`, `geo`, `openingHours`, `priceRange`, `sameAs`, `Country` objects for `areaServed`
- New: 1200×630 cropped OG image size
- New: support for all public post types and for term and author archives
- New: character counters, drag-to-reorder FAQ rows, duplicate-question warning
- New: REST / block editor exposure of the SEO meta fields
- New: translation loading, uninstall cleanup, `Requires PHP` and `Requires at least` headers
### 4.0.0
- New: Settings page (homepage title and description, default OG image)
- New: per-post `og:image` override with Featured Image and default fallbacks
- New: Twitter Card tags
- New: `MedicalBusiness` JSON-LD on the homepage
- New: media picker for images
### 3.0.0
- Initial release: SEO title, meta description, Open Graph, FAQ builder and FAQPage JSON-LD
## Support
Open an issue in the repository or contact the maintainer for feature requests and bugs.
## Notes
- Designed for posts and pages. Best used alongside strong on-page content and standard SEO practices.
- FAQ schema helps AI-driven search experiences surface clear Q&A content.
Open an issue in the [repository](https://git.my-dev.pro/mydev/advanced-seo-keywords/issues) for bugs and feature requests.
## License
GPL-2.0-or-later. See the plugin header for details.
+1091 -158
View File
File diff suppressed because it is too large. Load diff
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin>
<name>Advanced SEO Meta + AI FAQ Schema</name>
<version>4.1.0</version>
<slug>advanced-seo-keywords</slug>
</plugin>