/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?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 '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(); ?>