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: 30th June 2016 | Last updated: 30th 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
  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Files
  • Hooks
  • Classes
  • Sites
  • Sitemap
  • Blog
WooCommerce a2z WooCommerce a2z
WooCommerce

Site:  woocommerce.wp-a2z.org
© Copyright WooCommerce a2z 2014-2019. All rights reserved.


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