1372 | | * @type string $order Order of the images in the gallery. Default 'ASC'. Accepts 'ASC', 'DESC'. |
1373 | | * @type string $orderby The field to use when ordering the images. Default 'menu_order ID'. |
1374 | | * Accepts any valid SQL ORDERBY statement. |
1375 | | * @type int $id Post ID. |
1376 | | * @type string $itemtag HTML tag to use for each image in the gallery. |
1377 | | * Default 'dl', or 'figure' when the theme registers HTML5 gallery support. |
1378 | | * @type string $icontag HTML tag to use for each image's icon. |
1379 | | * Default 'dt', or 'div' when the theme registers HTML5 gallery support. |
1380 | | * @type string $captiontag HTML tag to use for each image's caption. |
1381 | | * Default 'dd', or 'figcaption' when the theme registers HTML5 gallery support. |
1382 | | * @type int $columns Number of columns of images to display. Default 3. |
1383 | | * @type string $size Size of the images to display. Default 'thumbnail'. |
1384 | | * @type string $ids A comma-separated list of IDs of attachments to display. Default empty. |
1385 | | * @type string $include A comma-separated list of IDs of attachments to include. Default empty. |
1386 | | * @type string $exclude A comma-separated list of IDs of attachments to exclude. Default empty. |
1387 | | * @type string $link What to link each image to. Default empty (links to the attachment page). |
1388 | | * Accepts 'file', 'none'. |
| 1373 | * @type string $order Order of the images in the gallery. Default 'ASC'. Accepts 'ASC', 'DESC'. |
| 1374 | * @type string $orderby The field to use when ordering the images. Default 'menu_order ID'. |
| 1375 | * Accepts any valid SQL ORDERBY statement. |
| 1376 | * @type int $id Post ID. |
| 1377 | * @type string $itemtag HTML tag to use for each image in the gallery. |
| 1378 | * Default 'dl', or 'figure' when the theme registers HTML5 gallery support. |
| 1379 | * @type string $icontag HTML tag to use for each image's icon. |
| 1380 | * Default 'dt', or 'div' when the theme registers HTML5 gallery support. |
| 1381 | * @type string $captiontag HTML tag to use for each image's caption. |
| 1382 | * Default 'dd', or 'figcaption' when the theme registers HTML5 gallery support. |
| 1383 | * @type int $columns Number of columns of images to display. Default 3. |
| 1384 | * @type string $size Size of the images to display. Default 'thumbnail'. |
| 1385 | * @type string $ids A comma-separated list of IDs of attachments to display. Default empty. |
| 1386 | * @type string $include A comma-separated list of IDs of attachments to include. Default empty. |
| 1387 | * @type string $exclude A comma-separated list of IDs of attachments to exclude. Default empty. |
| 1388 | * @type string $link What to link each image to. Default empty (links to the attachment page). |
| 1389 | * Accepts 'file', 'none'. |
| 1390 | * @type string $linked_image_size Size of the images to link to. A string keyword (thumbnail, |
| 1391 | * medium, large, or full) as allowed by wp_get_attachment_image_src(). |
| 1392 | * Default empty. |
1428 | | 'order' => 'ASC', |
1429 | | 'orderby' => 'menu_order ID', |
1430 | | 'id' => $post ? $post->ID : 0, |
1431 | | 'itemtag' => $html5 ? 'figure' : 'dl', |
1432 | | 'icontag' => $html5 ? 'div' : 'dt', |
1433 | | 'captiontag' => $html5 ? 'figcaption' : 'dd', |
1434 | | 'columns' => 3, |
1435 | | 'size' => 'thumbnail', |
1436 | | 'include' => '', |
1437 | | 'exclude' => '', |
1438 | | 'link' => '' |
| 1432 | 'order' => 'ASC', |
| 1433 | 'orderby' => 'menu_order ID', |
| 1434 | 'id' => $post ? $post->ID : 0, |
| 1435 | 'itemtag' => $html5 ? 'figure' : 'dl', |
| 1436 | 'icontag' => $html5 ? 'div' : 'dt', |
| 1437 | 'captiontag' => $html5 ? 'figcaption' : 'dd', |
| 1438 | 'columns' => 3, |
| 1439 | 'size' => 'thumbnail', |
| 1440 | 'include' => '', |
| 1441 | 'exclude' => '', |
| 1442 | 'link' => '', |
| 1443 | 'linked_image_size' => '', |
1539 | | $image_output = wp_get_attachment_link( $id, $atts['size'], false, false, false, $attr ); |
| 1544 | if ( ! empty( $atts['linked_image_size'] ) ) { |
| 1545 | $image_src = wp_get_attachment_image_src( $id, $atts['linked_image_size'] ); |
| 1546 | $image_output = "<a href='" . $image_src[0]. "'>" . wp_get_attachment_image( $id, $atts['size'], false ) . '</a>'; |
| 1547 | } else { |
| 1548 | $image_output = wp_get_attachment_link( $id, $atts['size'], false, false ); |
| 1549 | } |
| 1550 | // $image_output = wp_get_attachment_link( $id, $atts['size'], false, false, false, $attr ); |