该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

USA Zip Codes by WP Monsters

描述

Plugin contains American zip code database. You can activate this plugin for any post type in settings. After activation you can set zip codes for all of your posts. To connect zip code with the post you should do only 3 steps: 1) Choose State ( then the plugin will display all available cities in the chosen state) 2) Choose City ( then you will see all available Zip codes in this city)
3) Choose Zip code. Also you can connect several zip codes to one post. Use ID, ‘zipFields’, true ); ?>to get an array of connected zip codes.

屏幕截图

  • This screenshot shows how the plugin looks in admin side.
  • This screenshot shows the array you get after use get_post_meta().
  • This screenshot shows the settings page of this plugin.

安装

  1. Upload this plugin to ‘/wp-content/plugins/’ folder.
  2. Activate it Plugins section.
  3. Set plugin options in Settings -> Zip-codes and after that click ‘Save Changes’.
  4. Go to selected post type and choose your zip codes.
  5. If you want the chosen ones in frontend you can use get_post_meta( $post->ID, ‘zipFields’, true ). This function gives you an array of all zip codes you chose.

常见问题

All question send to our email – sales@wpmonsters.org

评价

阅读所有4条评价

贡献者及开发者

「USA Zip Codes by WP Monsters」是开源软件。 以下人员对此插件做出了贡献。

贡献者