Beskriuwing
Local SEO By Ankit Rawat adds JSON-LD structured data for a single business location. You enter name, address, phone, geo coordinates, logo, images, social profile URLs, and price range. When schema is enabled, those values are printed in the site head as application/ld+json.
This plugin does not connect to Google Business Profile, import reviews, manage opening hours, or change canonical URLs or robots directives.
What it does
- Settings screen (capability:
manage_options) for one business profile. - Optional sitewide LocalBusiness-family JSON-LD for: LocalBusiness, Restaurant, Hotel, ProfessionalService, Store.
- Optional WooCommerce Product JSON-LD on product pages (any business type, when WooCommerce is active and the setting is on).
- When the type is Store and product schema is enabled, up to five published products are listed in a Schema.org
OfferCatalog(hasOfferCatalogwithListItementries) on the front page, the posts index (home), and the WooCommerce shop. The catalog is not added on every URL.
Developers can change catalog placement with the local_seo_by_ankit_rawat_embed_store_catalog filter. Version 3.3 attached an invalid product property on essentially every URL; 4.0.0 does not restore that structure.
What it does not do
- Google Business Profile / Google My Business API synchronization.
- Review collection, aggregation, or review schema from manually entered ratings.
- Opening hours, menus, reservations, or hotel amenity schema.
- Multiple locations.
- Frontend widgets, shortcodes, or extra CSS/JS on the public site.
Developer filters
See docs/ARCHITECTURE.md for hook names. You can disable output if another SEO plugin already emits equivalent JSON-LD. Catalog placement is controlled with local_seo_by_ankit_rawat_embed_store_catalog (default: front page, home, and shop).
Upgrade From 3.3
- Back up the database.
- Install 4.0.0 over 3.3 (same plugin folder).
- Activate or open wp-admin so migration can run.
- Confirm settings on the Local SEO screen.
- Do not expect Google Business Profile sync; it was never implemented.
Troubleshooting
- Schema missing: confirm “Enable schema” is checked and you are viewing the public site, not wp-admin.
- Product schema missing: WooCommerce must be active, product schema enabled, and you must be on a product page. The setting is shown whenever WooCommerce is active, for any business type.
- Store catalog missing: business type must be Store, product schema enabled, published products must exist, and you must be on the front page, home, or shop (unless a filter changes placement).
- Stale 3.3 schema: the old
local_seo_json_ld_schematransient is deleted during migration.
Ynstallaasje
- Upload the
local-seo-by-ankit-rawatfolder to/wp-content/plugins/. - Activate the plugin through the Plugins screen.
- Open Local SEO By Ankit Rawat in the admin menu.
- Enter business details and enable schema only when the data is accurate.
FAQ
-
Will my 3.3 settings be kept?
-
Yes. On first admin load or activation after upgrade, values are copied into
local_seo_by_ankit_rawat_options. The old option keys remain in the database. -
Why is my Google API key missing from the new screen?
-
Version 3.3 stored
google_my_business_api_keybut never used it. 4.0.0 does not copy that secret into the new option and does not display it. The old option is left in the database until you delete it yourself. -
How do I test the schema?
-
Use Google’s Rich Results Test after enabling schema and filling in real NAP data.
-
Does this slow the site down?
-
There is no frontend CSS or JavaScript. Schema is built from one option (and, for Store catalogs, up to five WooCommerce product queries). Version 3.3’s hour-long transient was removed because it served stale data after settings changes.
-
Where does the Store product catalog appear?
-
By default only on the front page, the posts index (home), and the WooCommerce shop. Product pages already have Product JSON-LD and do not receive the catalog. To change that, use the
local_seo_by_ankit_rawat_embed_store_catalogfilter. -
Can this duplicate Yoast, Rank Math, or WooCommerce schema?
-
Yes. Use the
local_seo_by_ankit_rawat_output_local_schemaandlocal_seo_by_ankit_rawat_output_product_schemafilters to turn off this plugin’s output when another plugin already provides it.
Resinsjes
Meiwurkers & amp; Untwikkelders
“Local SEO By Ankit Rawat” is iepen boarne software. De folgjende minsken hawwe bydroegen oan dizze plugin.
MeiwurkersOersette “Local SEO By Ankit Rawat” yn jo taal.
Ynteressearre yn ûntwikkeling?
Blêdzje troch de koade , besjoch de SVN-repository , of abonnearje op it ûntwikkelingslogboek troch RSS .
Feroaringslog
4.0.0
- Namespaced settings option and 3.3 migration (legacy options are not deleted).
- JSON-LD encoding uses JSON_HEX_TAG to prevent script breakout.
- No placeholder NAP in public schema.
- Allowlisted business types.
- WooCommerce detection no longer uses
woocommerce_params. - Store products emitted as OfferCatalog with ListItem entries (limit 5, published only) on the front page, home, and shop by default.
- Documentation matches actual features.
- GPL license file, uninstall handler, tests, and coding-standard configs.
3.3
- Compatibility fix.
3.2
- WooCommerce product schema and modular file layout.
3.1
- Sanitization and caching tweaks.
3.0
- Geo fields and unused Google My Business settings fields.



