• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress a2z

WordPress a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Shortcode parameters / gallery orderby parameter

orderby parameter for the gallery shortcode

Syntax

[gallery
order="ASC| DESC - Order"
orderby="menu_order ID| ID| title| rand - Order by field"
ids="| ID - Post ID. Default: Current post ID"
itemtag="dl| tag - Item tag"
icontag="dt| tag - Icon tag"
captiontag="dd| tag - Caption tag"
columns="3| numeric - Columns"
size="thumbnail| medium| full - Thumbnail image size"
include="| id1,id2 - IDs to include"
exclude="| id1,id2 - IDs to exclude"]

Published: 5th June 2016 | Last updated: 5th June 2016

Information

Shortcode: gallery – Display the attached images in a gallery
Parameter name: orderby
Parameter type: text
Default: menu_order ID
Other values: ID|title|rand
Notes: Order by field

Footer

WordPress a2z
WordPress a2z
WordPress Dynamic API Reference
WordPress 5.7. PHP: 7.3.27
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wp-a2z.org
© Copyright WordPress a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites