Title: P2P Slides
Author: chrisguitarguy
Published: <strong>22 Tháng 9, 2012</strong>
Last modified: 22 Tháng 9, 2012

---

Tìm kiếm plugin

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

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

# P2P Slides

 Bởi [chrisguitarguy](https://profiles.wordpress.org/chrisguitarguy/)

[Tải về](https://downloads.wordpress.org/plugin/p2p-slides.1.0.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/p2p-slides/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/p2p-slides/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/p2p-slides/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/p2p-slides/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/p2p-slides/)

## Mô tả

**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.

## Ảnh màn hình

[⌊The meta box.⌉⌊The meta box.⌉[

The meta box.

## Cài đặt

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.

## Hỏi đáp

  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.

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“P2P Slides” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

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

[Dịch “P2P Slides” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/p2p-slides)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/p2p-slides/), check out 
[SVN repository](https://plugins.svn.wordpress.org/p2p-slides/), hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/p2p-slides/)
qua [RSS](https://plugins.trac.wordpress.org/log/p2p-slides/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.0

 * Initial version.

## Meta

 *  Phiên bản **1.0**
 *  Cập nhật lần cuối **14 năm trước**
 *  Số lượt cài đặt **10+**
 *  Phiên bản WordPress ** 3.4.2 hoặc cao hơn **
 *  Đã kiểm tra lên đến **3.5.2**
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/p2p-slides/)
 * Thẻ
 * [posts to posts](https://vi.wordpress.org/plugins/tags/posts-to-posts/)[slider](https://vi.wordpress.org/plugins/tags/slider/)
   [slides](https://vi.wordpress.org/plugins/tags/slides/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/p2p-slides/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

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

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/p2p-slides/reviews/)

## Những người đóng góp

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

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/p2p-slides/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](http://www.pwsausa.org/give.htm)