Title: WP Legisearch
Author: Dan Roberts
Published: <strong>2015 年 11 月 4 日</strong>
Last modified: 2017 年 11 月 6 日

---

搜索插件

![](https://ps.w.org/wp-legisearch/assets/banner-772x250.png?rev=1279193)

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

![](https://ps.w.org/wp-legisearch/assets/icon-256x256.jpg?rev=1279193)

# WP Legisearch

 作者：[Dan Roberts](https://profiles.wordpress.org/drobertsorg/)

[下载](https://downloads.wordpress.org/plugin/wp-legisearch.1.3.3.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-legisearch/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-legisearch/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-legisearch/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-legisearch/#developers)

 [支持](https://wordpress.org/support/plugin/wp-legisearch/)

## 描述

A state legislative tracking system for activist organizations.

This WordPress plugin uses data from the Open States API as well as the Google Maps
API to create a legislative lookup and bill tracking tool for WordPress websites.

## 屏幕截图

 * [[
 * Settings page. You must at least register an Open States API Key (free) in order
   for this plugin to work properly.
 * [[
 * Search for existing state legislation from any state over several years
 * [[
 * The `All Bills` page shows all legislation you are tracking
 * [[
 * Select which votes to show to your visitors
 * [[
 * Simple shortcode allows users to find their state legilsators based on address
   or you can present them links to specific legislators or an entire Senate or 
   State Assembly.
 * [[
 * This is what the user sees after they search by address
 * [[
 * Legislator page showing contct information and voting record for votes you are
   tracking
 * [[
 * It is simple to show an entire legislative chamber such as the State Senate or
   Assembly

## 安装

 1. Go to Plugins > Add New
 2. Click the Upload Plugin button
 3. Select wp-legisearch.zip
 4. Activate the plugin
 5. Go to Legisearch > Settings to set up the API keys
 6. Use [legisearch_addresslookup] shortcode to create an address form for looking 
    up legislators
 7. Use [legisearch_chamberlink state=”” chamber=”upper”] or [legisearch_chamberlink
    state=”” chamber=”lower”] to display a link to the ‘s upper and lower legislative
    chambers. Replace with the two-letter postal code for the state.
 8. See [Plugin homepage](http://droberts.us/legisearch/) for details on setting up
    API Keys and customizing

## 常见问题

  Installation Instructions

 1. Go to Plugins > Add New
 2. Click the Upload Plugin button
 3. Select wp-legisearch.zip
 4. Activate the plugin
 5. Go to Legisearch > Settings to set up the API keys
 6. Use [legisearch_addresslookup] shortcode to create an address form for looking 
    up legislators
 7. Use [legisearch_chamberlink state=”” chamber=”upper”] or [legisearch_chamberlink
    state=”” chamber=”lower”] to display a link to the ‘s upper and lower legislative
    chambers. Replace with the two-letter postal code for the state.
 8. See [Plugin homepage](http://droberts.us/legisearch/) for details on setting up
    API Keys and customizing

  The information on a legislator or bill is incorrect. How do I fix it?

All legislative information is pulled from the [Open States API](http://openstates.org)
and temporarily cached in your database. If you find that information is incorrect,
you should first try clearing the cache in the Settings page. If the information
is still incorrect, you may need to wait for Open States to correct the data.

  I get an error on the geo result page that says my API key is invalid

You not only need a Google Maps API key, you also need to enable the Google Maps
Javascript API. In the Developers Console, go to your project. In the dashboard 
of your project, you will see a “Use Google APIs” box. Click on the “Enable and 
manage APIs” link. On the new page, click “Google Maps Javascript API” and enable.
Do the same for the “Google Maps Geocoding API.”

## 评价

![](https://secure.gravatar.com/avatar/a695d25272bb26bc942e28d1f7912fc8d871b84362d6fa6f9b0d274baa39b00c?
s=60&d=retro&r=g)

### 󠀁[Legisearch rocks!](https://wordpress.org/support/topic/legisearch-rocks/)󠁿

 [Linton Hale](https://profiles.wordpress.org/lintonhale/) 2016 年 10 月 16 日

Great idea, this plugin connects to the very valuable Open States public database
that “provides a JSON API for accessing state legislative information”. Developer
Dan responded very quickly to a small issue I posed in the forum, and gave me a 
detailed solution that fixed my concern pronto. 🙂

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/wp-legisearch/reviews/)

## 贡献者及开发者

「WP Legisearch」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Dan Roberts ](https://profiles.wordpress.org/drobertsorg/)

[帮助将「WP Legisearch」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-legisearch)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-legisearch/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/wp-legisearch/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-legisearch/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-legisearch/)。

## 更新日志

#### 1.3.3

 * Supports new API format from Open States API

#### 1.3.2

 * Changed to support the now-independent Open States API

#### 1.3.1

 * Fixed a bug related to Open States caching that made processing super slow

#### 1.3

 * Added preference tracking for votes

#### 1.2

 * API Keys will now save when updating or reactivating plugin
 * Improved caching of Open States data
 * Added sponsorship support

#### 1.1

 * Updated the title and content filters because some themes weren’t handling them
   properly.
 * Improved handling of apostrophes and quotes for bill and vote descriptions.

#### 1.0

 * Initial stable release.

## 额外信息

 *  版本 **1.3.3**
 *  最后更新：**9 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.3 或更高版本 **
 *  已测试的最高版本为 **4.8.28**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-legisearch/)
 * 标签
 * [find state legislators](https://cn.wordpress.org/plugins/tags/find-state-legislators/)
   [government](https://cn.wordpress.org/plugins/tags/government/)[legislation](https://cn.wordpress.org/plugins/tags/legislation/)
   [politics](https://cn.wordpress.org/plugins/tags/politics/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-legisearch/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/wp-legisearch/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/wp-legisearch/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-legisearch/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-legisearch/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/wp-legisearch/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-legisearch/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-legisearch/reviews/)

## 贡献者

 *   [ Dan Roberts ](https://profiles.wordpress.org/drobertsorg/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-legisearch/)