twentythirteen_wpcom_gallery_image_size

Registers a custom image sizes for gallery post formats, to be used on the index/search/archive views to show a larger thumbnail for the first image in the grid layout.

Description

twentythirteen_wpcom_gallery_image_size(); 

Usage

  1. if ( !function_exists( 'twentythirteen_wpcom_gallery_image_size' ) ) { 
  2. require_once '/inc/wpcom.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = twentythirteen_wpcom_gallery_image_size(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/inc/wpcom.php  
  1. function twentythirteen_wpcom_gallery_image_size() { 
  2. add_image_size( 'twentythirteen-gallery-post', 300, 300, true );