- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
関数リファレンス/gallery shortcode
提供: WordPress Codex 日本語版
Description
The Gallery shortcode. This implements the functionality of the Gallery Shortcode for displaying WordPress images on a post.
Parameters
- $attr
- (array) (必須) The shortcode attributes.
- 初期値: なし
Return
- (string)
- The HTML content to display the gallery.
Usage
%%% <?php gallery_shortcode( $attr ); ?> %%%
Example
Adds the gallery shortcode.
add_shortcode( 'gallery', 'gallery_shortcode' );
Change Log
- Since: 2.5.0
Source File
gallery_shortcode() is located in wp-includes/media.php
.