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...
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: 413987 in Canada Canada
Week rank: 305 Up9 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  
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  
 100%
Total:13
This week:0
All time:11,294
This week:673Up