Return to Snippet

Revision: 39861
at January 21, 2011 23:33 by nachuge


Initial Code
<?php
get_header();
get_sidebar();
?>

<!-- MAIN -->
<div id="main">
	<h3><?php the_title(); ?></h3>
	
	<div class="pageContent single">
		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
			
<?php
	$yanHaberResim = get_children(array(
	'post_parent' => get_the_ID(),
	'post_type' => 'attachment',
	'numberposts' => 1,
	'order' => 'DESC',
	'orderby' => 'date',
	'post_mime_type' => 'image'));

foreach( $yanHaberResim as $listele ) {
	$img=wp_get_attachment_image_src($listele->ID, 'sideSlider');
	$cap=$listele->post_title;
 }
?>
<img class="singleThumb" src="<?php echo $img[0]; ?>" alt="<?php echo $cap; ?>">
			  <?php the_content(); ?>
		<?php endwhile; ?>
		<?php endif; ?>
	</div>
<?php get_footer(); ?>

Initial URL


Initial Description


Initial Title
wordpress resimli haber detay sayfası

Initial Tags


Initial Language
PHP