Title: Plugin Name: Classy wp_list_pages
Author: Alex Dunae
Published: <strong>2007年9月26日</strong>
Last modified: 2011年2月4日

---

プラグインを検索

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://s.w.org/plugins/geopattern-icon/classy-wp-list-pages.svg)

# Plugin Name: Classy wp_list_pages

 作者: [Alex Dunae](https://profiles.wordpress.org/alexdunae/)

[ダウンロード](https://downloads.wordpress.org/plugin/classy-wp-list-pages.1.4.0.zip)

 * [詳細](https://ja.wordpress.org/plugins/classy-wp-list-pages/#description)
 * [レビュー](https://ja.wordpress.org/plugins/classy-wp-list-pages/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/classy-wp-list-pages/#installation)
 * [開発](https://ja.wordpress.org/plugins/classy-wp-list-pages/#developers)

 [サポート](https://wordpress.org/support/plugin/classy-wp-list-pages/)

## 説明

This plugin adds classes or IDs (your choice) to the `LI` tags generated by WordPress’`
wp_list_pages()` and `wp_nav_menu()` functions.

I found it very frustrating to style the output of these menus without having access
to these attributes. This plugin allows you to style the output of `wp_list_pages()`
and `wp_nav_menu()` with CSS.

The class name or ID is derived from the URL of the page.

For example,

 * `/about/` could have the class `about`.
 * `/about/faq/` could have the class `about_faq`.

If a page does not have a URL (e.g. your front page) the plugin will set the `class`
or `id` (depending on what you selected) to `frontpage`, adding whatever prefix 
you requested.

For example,

 * `/` could have the class `pg_frontpage`.

Existing classes (e.g. `page_item` or `current`) are left untouched.

#### Sample output

    ```
    <li id="nav-a-new-page" class="first page_item page-item-4"><a href="http://example.com/a-new-page/" title="A new page">A new page</a></li>
    <li id="nav-about" class="page_item page-item-2"><a href="http://example.com/about/" title="About">About</a></li>
    <li id="nav-another-new-page" class="last page_item page-item-6"><a href="http://example.com/another-new-page/" title="Another new page">Another new page</a></li>
    ```

#### Configuration

Using the `Classy wp_list_pages` tab in the options panel you can choose whether
you want to use IDs or classes, set the token separator and add an optional token
prefix.

You can also specify a class to add to the first and last items in a list.

Pretty straight forward…

### Contact and Credits

Written by Alex Dunae ( [dunae.ca](http://dunae.ca/) ), e-mail ‘code’ at the same
domain), 2007-09.

## インストール

 1. Unzip `classy_wp_list_pages.zip` in your`/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Navigate the the `Classy wp_list_pages` tab in the options panel to configure the
    plugin.

## 評価

このプラグインにはレビューがありません。

## 貢献者と開発者

Plugin Name: Classy wp_list_pages はオープンソースソフトウェアです。以下の人々が
このプラグインに貢献しています。

貢献者

 *   [ Alex Dunae ](https://profiles.wordpress.org/alexdunae/)

[“Plugin Name: Classy wp_list_pages” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/classy-wp-list-pages)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/classy-wp-list-pages/)
するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/classy-wp-list-pages/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/classy-wp-list-pages/)
を [RSS](https://plugins.trac.wordpress.org/log/classy-wp-list-pages/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 1.4.0

 * Add support for wp_nav_menu()
 * Fix frontpage support

#### 1.3.2

 * Fixed `register_setting` process (thanks to [simplistik](https://profiles.wordpress.org/simplistik/)
   in the forums).
 * Fixes to the way the `last` class is applied (thanks to [deanoakley](https://profiles.wordpress.org/deanoakley/)
   in the forums).

#### 1.3.1

 * Fixed bug with nested pages and the `last` class (thanks to [iron77](https://wordpress.org/support/topic/344080)
   in the forums).
 * Added uninstall script (thanks to [Casemon](https://wordpress.org/support/topic/343184)
   in the forums).

#### 1.3

 * Ability to specify a class to add to the first and list items in a list.
 * Fixed EOL regex in ‘last’ class regexp.

#### 1.2.2

 * `siteurl` bug fix (thanks to [Joen Asmussen](http://noscope.com) for the bug 
   report).

#### 1.2.1

 * Changed `get_option('siteurl')` to `get_option('home')`.

#### 1.2

 * Updated options handle for WP 2.7.

#### 1.1.1

 * Added fallback identifier for pages without URLs (thanks to Dave Penfold for 
   the bug report).

#### 1.1

 * Added support for IDs and custom prefixes and separators.

#### 1.0

 * Initial version.

## メタ

 *  バージョン **1.4,0**
 *  最終更新日 **15年前**
 *  有効インストール数 **60+**
 *  WordPress バージョン ** 2.2またはそれ以降 **
 *  検証済み最新バージョン: **3.0.5**
 *  言語
 * [English (US)](https://wordpress.org/plugins/classy-wp-list-pages/)
 * タグ
 * [class](https://ja.wordpress.org/plugins/tags/class/)[css](https://ja.wordpress.org/plugins/tags/css/)
   [id](https://ja.wordpress.org/plugins/tags/id/)[links](https://ja.wordpress.org/plugins/tags/links/)
   [style](https://ja.wordpress.org/plugins/tags/style/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/classy-wp-list-pages/advanced/)

## 評価

レビューはまだ送信されていません。

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

[すべてのレビューを見る](https://wordpress.org/support/plugin/classy-wp-list-pages/reviews/)

## 貢献者

 *   [ Alex Dunae ](https://profiles.wordpress.org/alexdunae/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/classy-wp-list-pages/)