我开发写了一个外贸网站插件# SEO & GEO Structured Data Plugin
## 插件简介
这是一个功能全面的 SEO 和 GEO 结构化数据优化插件,为您的WordPress 网站提供完整的搜索引擎优化解决方案。
## 功能特点
### 1. Basic SEO(基本 SEO)
- 网站标题设置
- 网站描述设置
- 关键词设置
- 规范链接(Canonical URL)
- Robots索引控制
### 2. Open Graph(开放图谱)
- OG 标题
- OG 描述
- OG 图片
- OG 类型
- OG 语言区域
### 3. Twitter Card(推特卡片)
- 卡片类型选择
- 推特标题
- 推特描述
- 推特图片
### 4. GEO Local Business(本地业务地理信息)
- 业务名称
- 业务描述
- 街道地址
- 城市
- 地区/省份
- 邮政编码
- 国家
- 网站地址
- 经纬度坐标
- 营业时间
- 价格范围
### 5. Schema.org(结构化数据)
- Schema类型选择
- Schema名称
- Logo URL
- 图片 URL
### 6. Advanced(高级设置)
- Google站点验证
- Bing 站点验证
- 自定义 Meta 标签
- 自定义 Schema JSON-LD
## 安装步骤
1. 将`pw-seo-geo` 文件夹上传到 `wp-content/plugins/` 目录
2. 登录 WordPress 后台
3. 进入「插件」页面
4. 找到「SEO & GEO Structured Data」插件并点击「激活」
## 使用方法
### 1. 访问设置页面
激活插件后,在 WordPress 后台左侧菜单中找到「SEO & GEO」选项。
### 2. 配置各项设置
#### Basic SEO 设置
- **Site Title**: 网站标题,建议包含主要关键词
- **Site Description**: 网站描述,建议 150-160 个字符
- **Site Keywords**: 关键词,用逗号分隔
- **Canonical URL**: 规范链接,通常是首页 URL
- **Robots Index**: 是否允许搜索引擎索引
- **Robots Follow**: 是否允许搜索引擎跟踪链接
#### Open Graph 设置
- **OG Title**: 社交分享时显示的标题
- **OG Description**: 社交分享时显示的描述
- **OG Image URL**: 社交分享时显示的图片(建议 1200x630 像素)
- **OG Type**: 页面类型(website、article、product、business.business)
- **OG Locale**: 语言区域(如 en_US、zh_CN)
#### Twitter Card 设置
- **Twitter Card Type**: 卡片类型
- summary: 摘要卡片
- summary_large_image: 大图摘要卡片
- product: 产品卡片
#### GEO Local Business 设置
- **Business Name**: 业务名称
- **Business Description**: 业务描述
- **Street Address**: 街道地址
- **City**: 城市
- **Region/State**: 地区/省份
- **Postal Code**: 邮政编码
- **Country**: 国家
- **Website URL**: 网站地址
- **Latitude**: 纬度(如 30.4223)
- **Longitude**: 经度(如 120.6844)
- **Opening Hours**: 营业时间(每行一个,格式:Mo-Fr 09:00-18:00)
- **Price Range**: 价格范围(如 $、$$、$$$)
#### Schema.org 设置
- **Schema Type**: Schema 类型
- LocalBusiness: 本地业务
- Organization: 组织
- Store: 商店
- WholesaleStore: 批发商店
- **Schema Name**: Schema 名称
- **Logo URL**: Logo 图片地址
- **Image URL**: 代表图片地址
#### Advanced 设置
- **Google Site Verification**: Google 站点验证码
- **Bing Site Verification**: Bing 站点验证码
- **Custom Meta Tags**: 自定义 Meta 标签
- **Custom Schema JSON-LD**: 自定义 JSON-LD 结构化数据
### 3. 保存设置
完成配置后,点击「Save Settings」按钮保存设置。
## 验证工具
### SEO 验证
- [Google Search Console](https://search.google.com/search-console)
- [Bing Webmaster Tools](https://www.bing.com/webmasters)
### 结构化数据验证
- [Google Rich Results Test](https://search.google.com/test/rich-results)
- [Schema Markup Validator](https://validator.schema.org/)
### Open Graph 验证
- [Facebook Sharing Debugger](https://developers.facebook.com/tools/debug/)
- [LinkedIn Post Inspector](https://www.linkedin.com/post-inspector/)
### Twitter Card 验证
- [Twitter Card Validator](https://cards-dev.twitter.com/validator)
## 示例配置
### xxxx示例配置
**Basic SEO:**
- Site Title: xxxx - Custom xxx Product One Stop Manufacturer
- Site Description: Professional xxx product manufacturer, 15 years of expertise in high-end home textiles, exporting to 50+ countries.
- Site Keywords:
- Canonical URL: https://xxxx.com/
- Robots Index: ✓ Enable
- Robots Follow: ✓ Enable
**Open Graph:**
- OG Title: xxxx - Custom xxx Product One Stop Manufacturer
- OG Description: Professional xx product manufacturer, 15 years of expertise in high-end home textiles.
- OG Image URL: https://xxx.com/wp-content/uploads/og-image.jpg
- OG Type: website
- OG Locale: en_US
**Twitter Card:**
- Twitter Card Type: summary_large_image
- Twitter Title: xxx - Custom Textile Product One Stop Manufacturer
- Twitter Description: Professional xxx product manufacturer, 15 years of expertise.
- Twitter Image URL: https://xxx.com/wp-content/uploads/twitter-image.jpg
**GEO Local Business:**
- Business Name:
- Business Description:
- Street Address: No. 58 xxxx
- City: Jiaxing City
- Region: Zhejiang Province
- Postal Code: 314400
- Country: China
- Website URL: https://xxxx.com
- Latitude: 30.4223
- Longitude: 120.6844
- Opening Hours: Mo-Fr 08:00-18:00
- Price Range: $$
**Schema.org:**
- Schema Type: WholesaleStore
- Schema Name: SEOGEO
- Logo URL: https://xxx.com/wp-content/uploads/logo.png
- Image URL: https://xxx.com/wp-content/uploads/store-image.jpg
## 注意事项
1. 所有 URL 必须是完整的绝对路径(包含https://)
2. 图片建议使用高质量图片,OG图片建议 1200x630 像素
3. 经纬度坐标可以从Google Maps 获取
4. 营业时间格式遵循Schema.org 规范
5. 定期检查 Google Search Console 确保结构化数据正确
## 技术支持
如有问题,请联系:

