سلام به همه دوستان
عکس هایی که توی سایتم میزارم در فایل attachment از اندازه اصلی بزرگتر میشن فقط در این فایل اینجوریه بقیه قسمت ها مشکلی نداره
لطفا اگه کسی میدونه مشکلش کجاست کمکم کنه ممنون
اینم از کد attachment
<?php get_header(); ?>
<div id="innerpage" class="attachmentpage">
<?php if (have_posts()) : $count = 0; ?>
<?php while (have_posts()) : the_post(); $count++; ?>
<div class="picture_widget">
<div class="image_box full first last">
<span class="date"><?php the_time('j F Y'); ?></span>
<?php
$title = get_option('woo_attachment_title');
$caption = get_option('woo_attachment_caption');
//Remove formatting from contents
remove_filter ('the_excerpt', 'wpautop');
remove_filter ('the_content', 'wpautop');
if(($title == 'off' && $caption == 'off') OR ($title != 'title' AND $caption !='title' AND get_the_excerpt() == '' AND get_the_content() == '')){ /* Hi mom! */ }
else {
?>
<div class="text">
<?php
switch( $title ){
case 'title' : ?>
<h2><?php echo get_the_title(); ?></h2>
<?php break;
case 'caption' : ?>
<h2><?php echo get_the_excerpt(); ?></h2>
<?php break;
case 'description' : ?>
<h2><?php echo get_the_content(); ?></h2>
<?php break; }
switch( $caption ){
case 'title' : ?>
<p><?php echo get_the_title(); ?></p>
<?php break;
case 'caption' : ?>
<p><?php echo get_the_excerpt(); ?></p>
<?php break;
case 'description' : ?>
<p><?php echo get_the_content(); ?></p>
<?php break; } ?>
</div><!-- /text -->
<?php }
//Add formatting to contents, again
add_filter ('the_excerpt', 'wpautop');
add_filter ('the_content', 'wpautop');
?>
<?php
$url = wp_get_attachment_image_src(get_the_id(),'large',true);
$lightbox = get_option('woo_attachment_lightbox');
if($lightbox == 'true'){ $rel = 'rel="lightbox"';} else { $rel = '';}
if(get_option('woo_wp_attachment') == 'true'){ $image = $url[0];} else { $image = exposure_thumb_url($url[0],920);}
if(get_option('woo_attachment_link') == 'true'){
?>
<a href="<?php echo wp_get_attachment_url(get_the_id()); ?>" <?php echo $rel;?>><img src="<?php echo $image; ?>" alt="<?php the_title(); ?>" /></a>
<?php } else { ?>
<img src="<?php echo $image; ?>" alt="<?php the_title(); ?>" />
<?php } ?>
</div><!-- /image-box -->
<div class="clear"></div>
</div><!-- /.picture_widget -->
<div class="post">
<a class="post-parent" href="<?php echo get_permalink($post->post_parent); ?>"><strong>←</strong> <?php echo get_the_title($post->post_parent); ?></a>
<?php
$cats = get_the_category($post->post_parent);
foreach($cats as $category){
$output .= '<a class="archive_link" href="'. get_category_link($category->term_id) .'" title="' . __('View','woothemes') .' '.$category->name .' ' . __('Archives','woothemes') . '">' . $category->name . '</a>';
}
echo $output;
?>
<div class="clear"></div>
<div class="entry">
<?php the_content(); ?>
<?php the_tags('<p class="tags">' . __('Tags: ','woothemes'), ', ', '</p>'); ?>
</div><!-- /.entry -->
<?php comments_template(); ?>
</div><!-- /.post -->
<?php endwhile; endif; ?>
<?php get_sidebar(); ?>
<div class="clear"></div>
</div><!-- /#innerpage -->
<?php get_footer(); ?>