PHP Classes

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

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 13 All time: 11,384 This week: 673Up
Version License PHP version Categories
wasp-localbusiness 1.0GNU General Publi...5PHP 5, Content management, Geography, B...
Description 

Author

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 schema.org format for LocalBusiness.

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

Documentation

WASP LocalBusiness

WASP?

WordPress + ACF + Smarty + Posts-to-Posts

LocalBusiness?

LocalBusiness is a schema.org standard supported by Google and therefore the world. This provides a bunch of info about your business to Google, Maps, etc. More Info: https://developers.google.com/structured-data/local-businesses/ Schema.org specifications: http://schema.org/LocalBusiness Testing Tool: https://developers.google.com/structured-data/testing-tool/

Requirements?

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).

Defaults?

The default values can be filtered. See this gist: https://gist.github.com/webbtj/7884b02f512502a23d18

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.

Licence?

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


  Files folder image Files (4)  
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 (4)  /  templates  
File Role Description
  Accessible without login Plain text file local_business.tpl Data Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:13
This week:0
All time:11,384
This week:673Up