Descripción
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.
For more information, visit the official Local SEO By Ankit Rawat website.
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.
External Services
This plugin includes an optional «support the developer» link on its admin settings page. When clicked, it opens an external payment page hosted by Razorpay.
- The link (
https://razorpay.me/@hridyaa) appears only on the plugin’s own settings page, not on the public site. - No external scripts are loaded. The link is a standard HTML anchor; no JavaScript from Razorpay runs on your site.
- Payment processing is handled entirely by Razorpay. The plugin does not process, store, or transmit payment information.
- Supporting development is completely voluntary and does not affect plugin functionality.
- Razorpay’s Terms of Service and Privacy Policy apply to any payment made through the link.
Instalación
- 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.
Preguntas frecuentes
-
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.
Reseñas
Colaboradores y desarrolladores
«Local SEO By Ankit Rawat» es un software de código abierto. Las siguientes personas han colaborado con este plugin.
ColaboradoresTraduce «Local SEO By Ankit Rawat» a tu idioma.
¿Interesado en el desarrollo?
Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.
Registro de cambios
4.1.0
- Redesigned settings screen with business-owner-friendly labels and help text.
- Card-based settings interface grouped by Business Info, Location, Contact, and WooCommerce.
- WordPress Media Library picker and preview for the business logo field.
- Schema Health score: a deterministic 0–10 completeness indicator with actionable recommendations.
- Schema Preview card with inline JSON-LD viewer, Copy JSON button, and Google Rich Results Test link.
- Detection of potential duplicate structured data from Yoast SEO, Rank Math, and All in One SEO.
- Inline validation errors for logo URL, phone number, latitude, longitude, currency code, image URLs, and social profile URLs.
- Dismissible activation admin notice guiding new users to the settings page.
4.0.2
- Fixed support button not rendering on hosts with JavaScript optimization (LiteSpeed Cache, etc.).
- Replaced external Razorpay script embed with a simple payment link — no external JavaScript loaded.
4.0.1
- Verified WordPress 7.1 compatibility (no code changes required; Settings API, Options API, and wp_head output are unaffected by 7.1 changes).
- Added optional support/donation button on the settings page (voluntary, powered by Razorpay).
- Updated official product page URL.
- Cleaned development artifacts from repository.
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.



