开发者 |
sideways8
technical_mastermind areimann |
---|---|
更新时间 | 2013年6月5日 01:30 |
PHP版本: | 3.3 及以上 |
WordPress版本: | 3.5.1 |
版权: | GPLv3 |
版权网址: | 版权信息 |
get_term()
) and '$size' is an image size as defined by WordPress (e.g. 'thumbnail', 'medium', 'full', etc.). '$size' is optional and defaults to 'thumbnail'.
Returns an array with the following format:
$image_src => array( 'src' => URL source for the image 'ID' => WordPress attachment ID (ALWAYS check to make sure this was returned before using ID, width, or height) 'width' => Width of image (only returned if ID is returned) 'height' => Height of image (only returned if ID is returned) );
Returns php FALSE
on failure.
<?php $image_src = s8_get_taxonomy_image_src($tax_term, $size); ?>
Returns all the HTML needed to display the image, returns php FALSE
on failure.
<?php $image_html = s8_get_taxonomy_image($tax_term, $size); ?>
Same as s8_get_taxonomy_image()
except it goes ahead and echos it out
<?php s8_taxonomy_image($tax_term, $size); ?>
s8-simple-taxonomy-images
directory to the /wp-content/plugins/
directorys8_get_taxonomy_image_src()
s8_get_taxonomy_image_src()
could return an empty image source instead of false.s8_get_taxonomy_image_src()
could return an invalid array (causing issues with other functions).