PHP Classes

WordPress ACF Smarty Posts LocalBusiness Schema: Add LocalBusiness meta data to WordPress site page

Recommend this page to a friend!
  Info   View files Documentation   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-07-01 (11 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 13 All time: 11,294 This week: 673Up
Version License PHP version Categories
wasp-localbusiness 1.0GNU General Publi...5PHP 5, Content management, Geography, B...


This package provides a WordPress plugin to add LocalBusiness metadata to the WordPress site page.

It provides a registered class to filter the WordPress page's head section output.

The class checks certain options for the current WordPress page that define the address and other location-specific details of the page's content.

Then it uses a Smarty template engine to output meta-data that follows the format for LocalBusiness.

Picture of TJ Webb
Name: TJ Webb <contact>
Classes: 6 packages by
Country: Canada Canada
Age: ???
All time rank: 413987 in Canada Canada
Week rank: 305 Up9 in Canada Canada Up
Innovation award
Innovation award
Nominee: 2x


WASP LocalBusiness


WordPress + ACF + Smarty + Posts-to-Posts


LocalBusiness is a standard supported by Google and therefore the world. This provides a bunch of info about your business to Google, Maps, etc. More Info: specifications: Testing Tool:


ACF, Smarty, Posts-to-Posts. You also need the ACF repeater field and options panel. You also need to actually be using Smarty in your theme (Smarty will set it's compile directory to what your theme's compile directory should be).


The default values can be filtered. See this gist:

WP Plugin Directory?

I dunno, probably not. Kind of sick of being forced into SVN to publish stuff. Plus, this depends on ACF, Smarty, and Posts-to-Posts. It also uses some premium ACF features like repeaters.


Whatever, GPL or something. Use it, it's free.

  Files folder image Files  
File Role Description
Files folder imagetemplates (1 file)
Accessible without login Plain text file acf.php Aux. Auxiliary script
Accessible without login Plain text file README.MD Doc. Documentation
Plain text file wasp-localbusiness.php Class Class source

  Files folder image Files  /  templates  
File Role Description
  Accessible without login Plain text file local_business.tpl Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:11,294
This week:673Up