Title: Ajax Dropdowns
Author: ThemeBoy
Published: <strong>2014 年 8 月 22 日</strong>
Last modified: 2016 年 12 月 7 日

---

搜索插件

![](https://ps.w.org/ajax-dropdowns/assets/banner-772x250.png?rev=970773)

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

![](https://ps.w.org/ajax-dropdowns/assets/icon-256x256.png?rev=971157)

# Ajax Dropdowns

 作者：[ThemeBoy](https://profiles.wordpress.org/themeboy/)

[下载](https://downloads.wordpress.org/plugin/ajax-dropdowns.0.9.8.zip)

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

 [支持](https://wordpress.org/support/plugin/ajax-dropdowns/)

## 描述

Add content from multiple post types on one page with a dropdown to switch between
them. Dropdowns are displayed on the frontend of your site and can query posts via
Ajax, inline, or redirection.

#### Features

 * Create unlimited dropdowns
 * Display on any post or page using the included shortcode
 * Drag and drop posts to reorder them within a dropdown
 * Decrease page load by dynamically querying posts via Ajax
 * Use inline dropdowns to quickly switch between posts
 * Redirection method also available

#### Get Involved

Developers can contribute via the [Ajax Dropdowns GitHub Repository](https://github.com/ThemeBoy/ajax-dropdowns).

Translators can contribute new languages to Ajax Dropdowns and our other WordPress
plugins through [Transifex](https://www.transifex.com/projects/p/wp-plugins/).

## 屏幕截图

[⌊Manage dropdowns in admin.⌉⌊Manage dropdowns in admin.⌉[

Manage dropdowns in admin.

[⌊Posts in the dropdown can be reordered via drag and drop.⌉⌊Posts in the dropdown
can be reordered via drag and drop.⌉[

Posts in the dropdown can be reordered via drag and drop.

[⌊Available posts are grouped by post type and can be added to the dropdown.⌉⌊Available
posts are grouped by post type and can be added to the dropdown.⌉[

Available posts are grouped by post type and can be added to the dropdown.

[⌊Post query method can be set to Ajax, inline, or redirect.⌉⌊Post query method 
can be set to Ajax, inline, or redirect.⌉[

Post query method can be set to Ajax, inline, or redirect.

[⌊Copy and paste the shortcode into any post or page.⌉⌊Copy and paste the shortcode
into any post or page.⌉[

Copy and paste the shortcode into any post or page.

[⌊A dropdown is displayed on the frontend to swap the content below it.⌉⌊A dropdown
is displayed on the frontend to swap the content below it.⌉[

A dropdown is displayed on the frontend to swap the content below it.

## 安装

#### Minimum Requirements

 * WordPress 3.0 or greater
 * PHP version 5.2.4 or greater
 * MySQL version 5.0 or greater

#### Automatic Installation

Automatic installation is the easiest option as WordPress handles the file transfers
itself and you don’t even need to leave your web browser. To do an automatic install
of Ajax Dropdown, log in to your WordPress admin panel, navigate to the Plugins 
menu and click Add New.

In the search field type “Ajax Dropdown” and click Search Plugins. Once you’ve found
the plugin you can view details about it such as the point release, rating and description.
Most importantly of course, you can install it by simply clicking Install Now. After
clicking that link you will be asked if you’re sure you want to install the plugin.
Click yes and WordPress will automatically complete the installation.

#### Manual Installation

The manual installation method involves downloading the plugin and uploading it 
to your webserver via your favorite FTP application.

 1. Download the plugin file to your computer and unzip it
 2. Using an FTP program, or your hosting control panel, upload the unzipped plugin
    folder to your WordPress installation’s wp-content/plugins/ directory.
 3. Activate the plugin from the Plugins menu within the WordPress admin.

#### Upgrading

Automatic updates should work like a charm; as always though, ensure you backup 
your site just in case.

## 评价

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

### 󠀁[Excellent](https://wordpress.org/support/topic/excellent-8683/)󠁿

 [sakyazi](https://profiles.wordpress.org/sakyazi/) 2020 年 2 月 23 日

Excellent

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

### 󠀁[Great but some suggestion as well](https://wordpress.org/support/topic/great-but-some-suggestion-as-well/)󠁿

 [alexpoon2000](https://profiles.wordpress.org/alexpoon2000/) 2018 年 1 月 12 日

It solved my problem easily! It is great! However, here are some problems: 1. By
the time I installed this plugin, it has not been updated for a year. And seems 
no one replied the support for long time already. 2. It can easily select page or
post to add as dropdown item. The dropdown item text must be the post or page title.
It will be great if I can rename the dropdown item text without affect the page 
or post title. 3. It can only select the first item as default selected item. It
would be great if I can set the default selected item. 4. Also, I am using WPML 
for multi-language (Chinese and English). The dropdown selection shows all pages
in both Chinese and English. I got few pages which titled in “2018” for both chinese
and english pages. It makes me hard to select only the Chinese 2018 or only the 
English 2018. Thanks, Alex

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

### 󠀁[SWEET !!](https://wordpress.org/support/topic/sweet-96/)󠁿

 [cab434](https://profiles.wordpress.org/cab434/) 2017 年 8 月 7 日

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

### 󠀁[Cool, would be cooler with custom links](https://wordpress.org/support/topic/cool-would-be-cooler-with-custom-links/)󠁿

 [galaktickystopar](https://profiles.wordpress.org/galaktickystopar/) 2017 年 2 
月 27 日 1 回复

only thing I am missing is specifying custom links as I was intending to use this
on multisite…

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

### 󠀁[Super](https://wordpress.org/support/topic/super-646/)󠁿

 [purer](https://profiles.wordpress.org/purer/) 2017 年 1 月 14 日

If it would come with a complete menu, would it be perfect!

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

### 󠀁[Thanks](https://wordpress.org/support/topic/thanks-789/)󠁿

 [i2eno](https://profiles.wordpress.org/i2eno/) 2016 年 9 月 3 日

Thanks.

 [ 阅读所有14条评价 ](https://wordpress.org/support/plugin/ajax-dropdowns/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ ThemeBoy ](https://profiles.wordpress.org/themeboy/)
 *   [ Brian ](https://profiles.wordpress.org/brianmiyaji/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 0.9.8

 * Fix – Automatically display content of first option in widget.

#### 0.9.7

 * Feature – Enable shortcode to be used in text widgets.

#### 0.9.6

 * Fix – Explicitly load jQuery.
 * Localization – Use ajax-dropdowns textdomain. Props @suifengtec
 * Localization – Update translations.

#### 0.9.5

 * Feature – Add no content option to display dropdown only in redirect mode.

#### 0.9.4

 * Feature – Enable bulk adding all posts of a post type.

#### 0.9.3

 * Tweak – Order posts by title in admin.

#### 0.9.2

 * Feature – Add URL parameter method to dropdown options.
 * Refactor – Change behavior or redirect method to link directly to post.

#### 0.9.1

 * Feature – Grey out duplicate posts in dropdown.
 * Feature – Display number of posts available in each post type.
 * Fix – Posts limited to 5 per post type in dropdown.

#### 0.9

 * Beta release.

## 额外信息

 *  版本 **0.9.8**
 *  最后更新：**10 年前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **4.7.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/ajax-dropdowns/)
 * 标签
 * [ajax](https://cn.wordpress.org/plugins/tags/ajax/)[dropdowns](https://cn.wordpress.org/plugins/tags/dropdowns/)
   [option](https://cn.wordpress.org/plugins/tags/option/)[pages](https://cn.wordpress.org/plugins/tags/pages/)
   [posts](https://cn.wordpress.org/plugins/tags/posts/)
 *  [高级视图](https://cn.wordpress.org/plugins/ajax-dropdowns/advanced/)

## 评级

 4.9 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ ThemeBoy ](https://profiles.wordpress.org/themeboy/)
 *   [ Brian ](https://profiles.wordpress.org/brianmiyaji/)

## 支持

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

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