Title: P2P Slides
Author: chrisguitarguy
Published: <strong>2012年9月22日</strong>
Last modified: 2012年9月22日

---

プラグインを検索

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

![](https://s.w.org/plugins/geopattern-icon/p2p-slides.svg)

# P2P Slides

 作者: [chrisguitarguy](https://profiles.wordpress.org/chrisguitarguy/)

[ダウンロード](https://downloads.wordpress.org/plugin/p2p-slides.1.0.zip)

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

 [サポート](https://wordpress.org/support/plugin/p2p-slides/)

## 説明

**Note:** This plugin requires [Posts 2 Posts](https://wordpress.org/extend/plugins/posts-to-posts/)

Allows you to associate a custom post type (“slides”) with any of your other post

types (defaults to “pages”). This is useful for theme developers of those that want
to add custom sliders around your theme.

This plugin does not provide you out of the box front end functionality. If you’re

looking for a drop in and play slider, this isn’t it.

## スクリーンショット

 * [[
 * The meta box.

## インストール

First, install and active [Posts 2 Posts](https://wordpress.org/extend/plugins/posts-to-posts/).

Then, use the WordPress installer to install this plugin or …

 1. Click the big orrange button to download the plugin
 2. Unzip the plugin files
 3. Upload the `p2p-slides` folder to your `/wp-content/plugins/` directory
 4. Activate the plugin in the admin area

After installing, you should see a new meta box on your edit screen for pages.

If you wish to modify what post types get associated with slides, simply hook
 into`
after_setup_theme` and add theme support for `p2p-slides`.

    ```
    <?php
    add_action('after_setup_theme', 'my_special_setup');
    function my_special_setup()
    {
        // this is the same as just having the plugin installed
        add_theme_support('p2p-slides');

        add_theme_support('p2p-slides', array('a-post-type', 'another-post-type'));
    }
    ```

To use the slides, you’ll need to check the `slides` property of each `$post`.

    ```
    <?php
    // start the loop as normal
    while(have_posts()): the_post();
    ?>

        <?php if($post->slides): ?>
            We have slides! Loop through them.
            <?php foreach($post->slides as $slide): ?>
                Do stuff with $slide here, it's just a post object
            <?php endforeach; ?>
        <?php endif; ?>

    <?php endwhile; ?>
    ```

You can find a more complete example, in the form of a page template for `twentyeleven`
in the P2P Slides’ `inc` directory.

## FAQ

  Why no front end prettiness?

Because that’s a theme’s job. This plugin is only meant to provide you with
 tools
to extend your theme or child theme.

  Is this Posts 2 Posts legit?

Yes. [Posts 2 Posts](https://wordpress.org/extend/plugins/posts-to-posts/)
 is amazing.

## 評価

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

## 貢献者と開発者

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

貢献者

 *   [ chrisguitarguy ](https://profiles.wordpress.org/chrisguitarguy/)

[“P2P Slides” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/p2p-slides)

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

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

## 変更履歴

#### 1.0

 * Initial version.

## メタ

 *  バージョン **1.0**
 *  最終更新日 **14年前**
 *  有効インストール数 **10+**
 *  WordPress バージョン ** 3.4.2またはそれ以降 **
 *  検証済み最新バージョン: **3.5.2**
 *  言語
 * [English (US)](https://wordpress.org/plugins/p2p-slides/)
 * タグ
 * [posts to posts](https://ja.wordpress.org/plugins/tags/posts-to-posts/)[slider](https://ja.wordpress.org/plugins/tags/slider/)
   [slides](https://ja.wordpress.org/plugins/tags/slides/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/p2p-slides/advanced/)

## 評価

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

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

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

## 貢献者

 *   [ chrisguitarguy ](https://profiles.wordpress.org/chrisguitarguy/)

## サポート

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

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

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](http://www.pwsausa.org/give.htm)