跳到内容

Local Business Schema Widget

v1.1.0

James Maabadi · 2013年11月2日 上架

Show your business name, address, phone and hours with Schema.org LocalBusiness structured data, as a widget, block or shortcode.

正在使用
10+
评分
4.0 / 5
累计下载
3,894
最近更新
2026年10月6日
1 条评价需要 WordPress 6.3+已测试到 7.1.5PHP 7.4+

贡献者

截图

The Local Business Schema block and its settings in the editor
The Local Business Schema block and its settings in the editor
Business details on a page
Business details on a page
The widget settings in a classic theme
The widget settings in a classic theme

Put your business contact details on your site and mark them up for search engines at the same time.

Local Business Schema Widget prints your business name, address, phone, hours and more as plain text styled by your theme, with Schema.org LocalBusiness structured data. Visitors and search engines read the same details from the same place, so your name, address and phone number match wherever you show them.

What it does

  • Shows your business contact details as a widget, a block or a shortcode
  • Adds Schema.org LocalBusiness structured data, as Microdata or as JSON-LD
  • Offers 134 business types, such as Restaurant, Dentist, Plumber, Attorney and Store
  • Makes the phone number, email and website clickable
  • Marks up to four sets of business hours and shows them in your site’s language and time format
  • Lets you hide any group of details from visitors while keeping it in the structured data
  • Covers price range, logo or photo, map link, social profiles, payment types and geo coordinates
  • Has no settings page, adds no script or style files to your pages, and makes no outside requests

Three ways to use it

  • Block: add the “Local Business Schema” block to any page, post or template and fill in the block settings sidebar. This is the way to use it with a block theme.
  • Widget: in a classic theme, add “Local Business Schema” to a sidebar under ‘Appearance > Widgets’.
  • Shortcode: place [local_business_schema] anywhere shortcodes work.

Shortcode example:

[local_business_schema type="Plumber" name="Acme Plumbing" phone="214-555-0100" street="100 Main St" city="Dallas" state="TX" zip="75201" hours1="Mo-Fr 8:00-17:00" hours2="Sa 9:00-13:00"]

Available Fields (all optional, blank fields are not shown):

  • Business Type
  • Business Name
  • Text Description
  • Logo or Photo
  • Phone Number
  • Fax Number
  • Business Contact Email Address
  • Business Website URL
  • Physical Street Address, City, State/Region, Postal Code and Country
  • Map Link
  • Latitude and Longitude Coordinates
  • Business Hours (4 sets)
  • Price Range
  • Payment Accepted
  • Social Profile URLs
  • Text/HTML Before, After and After Address

Shortcode attributes

  • type: a business type from the list below, such as Restaurant
  • name, description, image, price_range
  • phone, fax, email, website
  • links: no to print the phone, email and website as plain text
  • street, city, state, zip, country, after_address, map, lat, long
  • hours1 to hours4: days and times, such as Mo-Fr 9:00-17:00 or Sa,Su 10:00-14:00
  • hours_style: readable (Mon-Fri: 9:00 am – 5:00 pm) or compact (Mo,Tu,We,Th,Fr: 9:00am-5:00pm)
  • payment: any of cash, check, credit, invoice, paypal, separated by commas
  • social: profile URLs separated by spaces
  • before, after: text or HTML printed before and after the details
  • hide: any of name, description, image, phone, email, website, address, hours, price, payment, separated by commas
  • format: microdata or jsonld

Available Local Business Types (list from schema.org):

LocalBusiness, AnimalShelter, ArchiveOrganization, AutomotiveBusiness, AutoBodyShop, AutoDealer, AutoPartsStore, AutoRental, AutoRepair, AutoWash, GasStation, MotorcycleDealer, MotorcycleRepair, ChildCare, Dentist, DryCleaningOrLaundry, EmergencyService, FireStation, Hospital, PoliceStation, EmploymentAgency, EntertainmentBusiness, AdultEntertainment, AmusementPark, ArtGallery, Casino, ComedyClub, MovieTheater, NightClub, FinancialService, AccountingService, AutomatedTeller, BankOrCreditUnion, InsuranceAgency, FoodEstablishment, Bakery, BarOrPub, Brewery, CafeOrCoffeeShop, Distillery, FastFoodRestaurant, IceCreamShop, Restaurant, Winery, GovernmentOffice, PostOffice, HealthAndBeautyBusiness, BeautySalon, DaySpa, HairSalon, HealthClub, NailSalon, TattooParlor, HomeAndConstructionBusiness, Electrician, GeneralContractor, HVACBusiness, HousePainter, Locksmith, MovingCompany, Plumber, RoofingContractor, InternetCafe, LegalService, Attorney, Notary, Library, LodgingBusiness, BedAndBreakfast, Campground, Hostel, Hotel, Motel, Resort, SkiResort, VacationRental, MedicalBusiness, MedicalClinic, CovidTestingFacility, Optician, Pharmacy, Physician, IndividualPhysician, PhysiciansOffice, ProfessionalService, RadioStation, RealEstateAgent, RecyclingCenter, SelfStorage, ShoppingCenter, SportsActivityLocation, BowlingAlley, ExerciseGym, GolfCourse, PublicSwimmingPool, SportsClub, StadiumOrArena, TennisComplex, Store, BikeStore, BookStore, ClothingStore, ComputerStore, ConvenienceStore, DepartmentStore, ElectronicsStore, Florist, FurnitureStore, GardenStore, GroceryStore, HardwareStore, HobbyShop, HomeGoodsStore, JewelryStore, LiquorStore, MensClothingStore, MobilePhoneStore, MovieRentalStore, MusicStore, OfficeEquipmentStore, OutletStore, PawnShop, PetStore, ShoeStore, SportingGoodsStore, TireShop, ToyStore, WholesaleStore, TelevisionStation, TouristInformationCenter, TravelAgency, MedicalOrganization, DiagnosticLab, VeterinaryCare

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums