PHP - Kód na automatickou změnu velikosti obrázku*
Napsal: 23 kvě 2013 23:03
zdravim, potrebuji aby se mi obrazek automaticky daval do velikosti width='541' height='391' , zkousel jsem snad vsechno uz , ruzne navody,tipy a triky s php i resize obrazku ale bohuzel bez pomoci to snad nedam dokupy. byl by nekdo ochotny mi tu vysku a sirku napsat do kodu? dekuji za pomoc
kod zde
kod zde
Kód: Vybrat vše
<div id="featured-wrapper">
<div id="featured">
<?php // the images for the slider
$postcount=0;
query_posts( $featuredargs );
if (have_posts()) : while (have_posts()) : the_post(); $postcount++;
$title="#div".$postcount;
?>
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail("nivo-image", array( 'title' => $title));?></a>
<?php
endwhile;
endif; ?>