开发者 |
avenger339
Everyblock |
---|---|
更新时间 | 2014年9月3日 07:31 |
PHP版本: | 3.6.1 及以上 |
WordPress版本: | 3.6.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
First, you will need an Everyblock Account. Navigate your browser window to https://chicago.everyblock.com/account/register/. Select a username and password, and enter your zip code. Next, navigate to http://www.everyblock.com/developers/. Click "Create Developer Profile". Enter your First Name, Last Name, and if applicable, your company or organization. Next, click "Create New Project". Enter a Project Name, the URL to your site, and a brief description. Next, click "Save Project". Click "Create Key". A new API key will generate. Enter this key in settings.php file, located in the "everyblock" folder, where it says "API_KEY_HERE".
First, make sure you set an API Key the settings.php file (located in the plugin directory, inside the "everyblock" folder). Second, make sure the API Key is valid. If it is still not working, please check the current running status of the Everyblock API.
After activating the plugin, add the shortcode [display_local_info_widget] to any page or post. You need to specify shortcode attributes metro and a schema. These are slugs provided by the Everyblock API. Example: [display_local_info_widget metro=chicago schema=food-inspections]
Add the shortcode attributes width and height. Example: [display_local_info_widget metro=chicago schema=food-inspections width=400 height=600].
After activating the plugin, go to Appearance -> Settings, and drag the "Local Info Powered By EveryBlock" to the appropriate area. Set a Metro and Schema from the appropriate dropdown boxes.