Archives thumbnail height

From Photostand Wiki

Jump to: navigation, search
archives_thumbnail_height()

The archives_thumbnail_height function will display the exact thumbnail height. This function must be used within the archives loop.

Parameters

This function has no parameters.

Examples

In the archives.php page

Displaying thumbnails in the archives

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>

	<title>Archives</title>

    </head>
    <body>

        <p>
	    <?php
    	    foreach(archives_array(50) as $article)
    	    { 
    	    ?>
     	    <img src="<?php echo archives_thumbnail(); ?>" class="thumbnail" width="<?php echo archives_thumbnail_width(); ?>" height="<?php echo archives_thumbnail_height(); ?>" />
	    <?php
    	    }
	    ?>
	</p>

    </body>
</html>

An image will load faster when you define it's width and height.

Personal tools