web_dor_post_thumbnail

The Business Responsive web dor post thumbnail function.

Description

web_dor_post_thumbnail( $width, $height ); 

Parameters (2)

0. $width
The width.
1. $height
The height.

Usage

  1. if ( !function_exists( 'web_dor_post_thumbnail' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4. // The width. 
  5. $width = null; 
  6.  
  7. // The height. 
  8. $height = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = web_dor_post_thumbnail($width, $height); 
  12.  

Defined (1)

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

/functions.php  
  1. function web_dor_post_thumbnail($width, $height) 
  2.  
  3. $thumb = get_post_custom_values("Image"); 
  4.  
  5. if (!empty($thumb)) { 
  6.  
  7. $str = '<img src="' . $thumb[0] . '" width="' . $width . '" height="' . $height . '" alt="' . get_the_title() . '" width="' . $width . '" height="' . $height . '" border="0" />'; 
  8. return $str; 
  9.  
  10.  
  11. return !empty($thumb);