Merhabalar,

Wordpress sitemde aşağıdaki attachment.php sayesinde galeri şeklinde eklenmiş resimleri önceki/sonraki şeklinde gösteriyorum. Bu resimlerde ilgili posttaki textin tamamını ya da bir bölümünü de göstermek istiyorum fakat ne yaparsam yapayım
<?php the_content; ?> ile veya excerpt ile yazı çekemedim, sebebi nedir acaba? Çözüm üreten ücretiyle ulaşabilir. Teşekkürler



<?php get_header(); ?>

<?php tie_setPostViews() ?>
<div class="content-wrap">

	<div class="content">


<style type="text/css" media="screen">

ul#minitabs{  
margin-top:-2px;

}
</style>

<style type="text/css" media="screen">
.logo {  
padding-bottom:10px;

}
</style>
		<?php tie_breadcrumbs() ?>

		

		<?php if ( ! have_posts() ) : ?>

		<div id="post-0" class="post not-found post-listing">

			<h1 class="post-title"><?php _e( 'Not Found', 'tie' ); ?></h1>

			<div class="entry">

				<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'tie' ); ?></p>

				<?php get_search_form(); ?>

			</div>

		</div>

		<?php endif; ?>



		<?php while ( have_posts() ) : the_post(); ?>

		

		<?php $get_meta = get_post_custom($post->ID);

			if( !empty( $get_meta['tie_review_position'][0] ) ){

				$review_position = $get_meta['tie_review_position'][0] ;

				$rv = $tie_reviews_attr;

			}

			

			$post_width = $get_meta["tie_sidebar_pos"][0];

			if( $post_width == 'full' ){

				if(tie_get_option( 'columns_num' ) == '2c') $content_width = 955;

				else $content_width = 1160;

			}

		?>

		

		<?php //Above Post Banner

		if(  empty( $get_meta["tie_hide_above"][0] ) ){

			if( !empty( $get_meta["tie_banner_above"][0] ) ) echo '<div class="ads-post">' .htmlspecialchars_decode($get_meta["tie_banner_above"][0]) .'</div>';

			else tie_banner('banner_above' , '<div class="ads-post">' , '</div>' );

		}

		?>

			

		<article <?php if( !empty( $rv['review'] ) ) echo $rv['review']; post_class('post-listing'); ?>>

			<?php tie_include( 'post-head' ); // Get Post Head template ?>	



			<div class="post-inner">

				

				<div class="entry">

					<?php if( !empty( $review_position ) && ( $review_position == 'top' || $review_position == 'both'  ) ) tie_get_review('review-top'); ?>

<?php

// code copied from adjacent_image_link() in wp-include/media.php

$attachments = array_values(get_children( array('post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') ));

foreach ( $attachments as $k => $attachment )

  if ( $attachment->ID == $post->ID )

    break;

 

$next_url =  isset($attachments[$k+1]) ? get_permalink($attachments[$k+1]->ID) : get_permalink($attachments[0]->ID);

$prev_url =  isset($attachments[$k-1]) ? get_permalink($attachments[$k-1]->ID) : get_permalink($attachments[0]->ID);

?>

					

					<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'tie' ), 'after' => '</div>' ) ); ?>

<div class="resim-sayfalama">             
<?php
$i = 1;
foreach($attachments as $att){
if($att->ID == $post->ID)
echo '<div class="aktif-sayfa kenar5">' . $i . '</div>';
else
echo '<a href="'.get_attachment_link($att->ID).'" class="kenar5">'.$i.'</a>';
$i++;
}
?>
</div>





					<p class="attachment" align="center"><a href="<?php echo $next_url; ?>"   title="<?php the_title(); ?>"><?php echo wp_get_attachment_image( $post->ID, $size='fullsize' ); ?></a></p>






<div class="resim-sayfalama">             
<?php
$i = 1;
foreach($attachments as $att){
if($att->ID == $post->ID)
echo '<div class="aktif-sayfa kenar5">' . $i . '</div>';
else
echo '<a href="'.get_attachment_link($att->ID).'" class="kenar5">'.$i.'</a>';
$i++;
}
?>
</div>





					<?php if( !empty( $review_position ) && ( $review_position == 'bottom' || $review_position == 'both' ) ) tie_get_review('review-bottom'); ?>




					<?php edit_post_link( __( 'Edit', 'tie' ), '<span class="edit-link">', '</span>' ); ?>

				</div><!-- .entry /-->

				<?php the_tags( '<span style="display:none">',' ', '</span>'); ?>

				<span style="display:none" class="updated"><?php the_time( 'Y-m-d' ); ?></span>

				<div style="display:none" class="vcard author" itemprop="author" itemscope itemtype="http://schema.org/Person"><strong class="fn" itemprop="name"><?php the_author_posts_link(); ?></strong></div>

					

			</div><!-- .post-inner -->






<div class="clear"></div>


		</article><!-- .post-listing -->

		<?php if( tie_get_option( 'post_tags' ) ) the_tags( '<p class="post-tag">'.__( 'Tagged with: ', 'tie' )  ,' ', '</p>'); ?>



		

		<?php //Below Post Banner

		if( empty( $get_meta["tie_hide_below"][0] ) ){

			if( !empty( $get_meta["tie_banner_below"][0] ) ) echo '<div class="ads-post">' .htmlspecialchars_decode($get_meta["tie_banner_below"][0]) .'</div>';

			else tie_banner('banner_below' , '<div class="ads-post">' , '</div>' );

		}

		?>

		

		<?php if( tie_get_option( 'post_nav' ) ): ?>				

		<div class="post-navigation">

			<div class="post-previous"><?php previous_post_link( '%link', '<span>'. __( 'Previous:', 'tie' ).'</span> %title' ); ?></div>

			<div class="post-next"><?php next_post_link( '%link', '<span>'. __( 'Next:', 'tie' ).'</span> %title' ); ?></div>

		</div><!-- .post-navigation -->

		<?php endif; ?>

		

		<?php if( ( tie_get_option( 'post_authorbio' ) && empty( $get_meta["tie_hide_author"][0] ) ) || ( isset( $get_meta["tie_hide_related"][0] ) && $get_meta["tie_hide_author"][0] == 'no' ) ): ?>		

		<section id="author-box">

			<div class="block-head">

				<h3><?php _e( 'About', 'tie' ) ?> <?php the_author() ?> </h3>

			</div>

			<div class="post-listing">

				<?php tie_author_box() ?>

			</div>

		</section><!-- #author-box -->

		<?php endif; ?>



		<?php tie_include( 'post-related' ); // Get Related Posts template ?>	






		<?php endwhile;?>



		<?php comments_template( '', true ); ?>

	

	</div><!-- .content -->

<?php get_sidebar(); ?>

<?php get_footer(); ?>