Glossary Term
gallery_shortcode()
gallery_shortcode() — Builds the Gallery shortcode output. This implements the functionality of the Gallery Shortcode for displaying WordPress images on a post.
Inputs: $attr (array): Attributes of the gallery shortcode. Field $order (string): Order of the images in the gallery. Default ‘ASC’. Accepts ‘ASC’, ‘DESC’. Field $orderby (string): The field to use when ordering the images. Default ‘menu_order ID’. Accepts any valid SQL ORDERBY statement. Field $id (int): Post ID. Field $itemtag (string): HTML tag to use for each image in the gallery. Default ‘dl’, or ‘figure’ when the theme registers HTML5 gallery support. Field $icontag (string): HTML tag to use for each image’s icon. Default ‘dt’, or ‘div’ when the theme registers HTML5 gallery support. Field $captiontag (string): HTML tag to use for each image’s caption.
Returns string: HTML content to display gallery.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
