Title: Post Format Gallery Widget
Author: Eduardo Zulian
Published: <strong>2013年10月10日</strong>
Last modified: 2013年10月23日

---

プラグインを検索

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

![](https://s.w.org/plugins/geopattern-icon/post-format-gallery-widget.svg)

# Post Format Gallery Widget

 作者: [Eduardo Zulian](https://profiles.wordpress.org/eduardozulian/)

[ダウンロード](https://downloads.wordpress.org/plugin/post-format-gallery-widget.1.1.zip)

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

 [サポート](https://wordpress.org/support/plugin/post-format-gallery-widget/)

## 説明

The Post Format Gallery Widget plugin creates the possibility for you to display
images from your galleries inside posts saved under the format ‘Gallery’. You can
select the number of images to display, the size of these images, shuffle their 
orders, the target of links (image file, permalink to attachment, permalink to post
or maybe no linking), show captions and use one copy of the basic WordPress style
for galleries, which will allow you to set up easily a number of columns.

**Important**: your theme must support the [Gallery post format](https://codex.wordpress.org/Post_Formats#Adding_Theme_Support),
otherwise it won’t work.

## インストール

 1. Upload `post-format-gallery-widget` directory to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to ‘Widgets’ menu and drag it to your sidebar

## FAQ

  The widget only shows this message: “Your theme does not support the Gallery post
format. Please add this support so you can choose your posts.”

Yes, that’s it. You have to [enable support for the gallery post format](https://codex.wordpress.org/Post_Formats#Adding_Theme_Support)
on your theme. This plugin will only search for galleries inside a post saved under
the post format Gallery.

  Can I add / remove / change gallery classes?

Yes. Just use the `pfgw_gallery_classes` filter in your `functions.php` file:

    ```
    /**
     * Add a new class to the gallery container
     *
     * @param array $classes 
     */
    function mytheme_change_pfgw_classes( $classes ) {
        $classes[] = 'my-class';
        return $classes;
    }
    add_filter( 'pfgw_gallery_classes', 'mytheme_change_pfgw_classes' );
    ```

  Does it only work with posts? What about other post types?

The default type is `post`. However, you can use `pfgw_post_types` filter in your`
functions.php` file and then add or remove how many post types you wish. Just remember
that [your theme must support](https://codex.wordpress.org/Post_Formats#Adding_Post_Type_Support)
these post types as well.

    ```
    /**
     * Add another post type to our gallery query
     *
     * @param array $post_types The post types for the query 
     */
    function mytheme_add_post_types( $post_types ) {
        $post_types[] = 'page';
        return $post_types;
    }
    add_filter( 'pfgw_post_types', 'mytheme_add_post_types' );
    ```

## 評価

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

## 貢献者と開発者

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

貢献者

 *   [ Eduardo Zulian ](https://profiles.wordpress.org/eduardozulian/)

[“Post Format Gallery Widget” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/post-format-gallery-widget)

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

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

## 変更履歴

#### 1.1

 * Make style unique for our widget using class `.widget_post_format_gallery`

#### 1.0

 * First version.

## メタ

 *  バージョン **1.1**
 *  最終更新日 **13年前**
 *  有効インストール数 **20+**
 *  WordPress バージョン ** 3.6またはそれ以降 **
 *  検証済み最新バージョン: **3.6.1**
 *  言語
 * [English (US)](https://wordpress.org/plugins/post-format-gallery-widget/)
 * タグ
 * [gallery](https://ja.wordpress.org/plugins/tags/gallery/)[post format](https://ja.wordpress.org/plugins/tags/post-format/)
   [sidebar](https://ja.wordpress.org/plugins/tags/sidebar/)[widget](https://ja.wordpress.org/plugins/tags/widget/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/post-format-gallery-widget/advanced/)

## 評価

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

[Your review](https://wordpress.org/support/plugin/post-format-gallery-widget/reviews/#new-post)

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

## 貢献者

 *   [ Eduardo Zulian ](https://profiles.wordpress.org/eduardozulian/)

## サポート

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

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

## 寄付

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

 [ このプラグインに寄付 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=H28V8F5PHSZHA)