serdar21 adlı üyeden alıntı: mesajı görüntüle
single.php içeriği

<?php
global $options;
foreach ($options as $value) {
    if (get_settings( $value['id'] ) === FALSE) { $$value['id'] =  $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}

$showsocial = get_post_meta($post->ID, 'wpzoom_post_social', true);
$showauthor = get_post_meta($post->ID, 'wpzoom_post_author', true);
$posttype = get_post_meta($post->ID, 'wpzoom_post_type', true);
$dateformat = get_option('date_format');
$timeformat = get_option('time_format');
?>

<?php get_header(); ?>

  <div class="wrapper">

  <div id="frame">  

  <div id="content" class="full-width full-width-post">
  
          <div id="main">

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

  <div class="box boxSingle">
    <div class="title blue"><?php echo '<h2>';  wpzoom_breadcrumbs(); echo'</h2>'; ?></div><!-- end  .title -->

    <h1><?php the_title(); ?></h1>
    <p class="postmetadata"><?php if ($wpzoom_singlepost_author  == 'Show') { ?>By <?php the_author_posts_link(); } if  ($wpzoom_singlepost_date == 'Show') { ?> on <?php  the_time("$dateformat $timeformat"); } if ($wpzoom_singlepost_cat ==  'Show') { ?> in <?php the_category(', '); } ?> / <a  href="<?php the_permalink() ?>#commentspost" title="Jump to the  comments"><?php comments_number(__('no comments', 'wpzoom'),__('1  comment', 'wpzoom'),__('% comments', 'wpzoom')); ?></a><?php  edit_post_link( __('EDIT', 'wpzoom'), ' / ', ''); ?></p>

    <div class="sep">&nbsp;</div>

    <div class="single">
    
    <?php if (strlen($wpzoom_ad_content_imgpath) > 1 &&  $wpzoom_ad_content_select == 'Yes' && $wpzoom_ad_content_pos ==  'Before') { echo '<div  class="banner">'.stripslashes($wpzoom_ad_content_i   mgpath)."</div>"; }?>
    
    <?php the_content(); ?>
    <?php wp_link_pages(array('before' => '<p  class="pages"><strong>'.__('Pages', 'wpzoom').':</strong>  ', 'after' => '</p>', 'next_or_number' => 'number')); ?>

    <div class="cleaner">&nbsp;</div>
    <?php if (strlen($wpzoom_ad_content_imgpath) > 1 &&  $wpzoom_ad_content_select == 'Yes' && $wpzoom_ad_content_pos ==  'After') { echo '<div  class="banner">'.stripslashes($wpzoom_ad_content_i   mgpath)."</div>"; }?>

    </div><!-- end .single -->

    <div class="metabox">
<?php 
if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
						$thumbURL = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), '' );
            $img = $thumbURL[0]; 
						}

            else {
                unset($img);
                if ($wpzoom_cf_use == 'Yes')
                {
                  $img = get_post_meta($post->ID, $wpzoom_cf_photo, true);
                }
              }

         if ($img){ 
         $img = wpzoom_wpmu($img);
         ?>
        <div class="cover">
        <a href="<?php echo $img; ?>" rel="nofollow"><img  src="<?php bloginfo('template_directory');  ?>/scripts/timthumb.php?src=<?php echo $img  ?>&amp;h=120&amp;w=160&amp;zc=1" width="160" height="120"  alt="<?php the_title(); ?>" /></a>
        <?php if ($posttype != 'Default' && $posttype) {  echo'<span  class="'.strtolower($posttype).'">&nbsp;</span>'; } ?>
        </div><?php } ?>
      <?php if ($wpzoom_singlepost_tag == 'Show') { ?>
      <div class="title"><h2>Tags</h2></div><!-- end .title -->
      <?php the_tags( '<p class="tags">', ', ', '</p>'); } ?>
 <div class="title"><h2>Related Posts</h2></div><!-- end .title -->
      <ul class="posts postsRelated">
              <?php wp_related_posts(5); ?>
            </ul>
      <?php if ($showauthor == 'Yes') { ?>
      <div class="title"><h2>About the author</h2></div><!-- end .title -->
      <?php if (get_the_author_meta('user_url')) { ?><a  href=""><?php echo get_avatar( get_the_author_id() , 60 );  ?></a><?php } else { ?><?php echo get_avatar(  get_the_author_id() , 60 ); ?><?php } ?>
      <p class="author"><?php the_author_description(); ?></p>
      <?php } // if author information should be shown ?>
    </div>
     
    <div class="cleaner">&nbsp;</div>

              <?php comments_template(); ?>  

    <div class="cleaner">&nbsp;</div>
  </div><!-- end .box -->
<?php endwhile; else: ?>
		<p><?php _e('Sorry, no posts matched your criteria', 'wpzoom');?>.</p>
<?php endif; ?>

            <div class="cleaner">&nbsp;</div>          
          
          </div><!-- end #main -->
          
          <?php if ($template != 'Full Width (no sidebar)') { ?>
          <div id="sidebar">
          
            <?php get_sidebar(); ?>
            
          </div><!-- end #sidebar -->
          <?php } //if template is not full width  ?>
 
      <div class="cleaner">&nbsp;</div>
    </div><!-- end #content -->

<?php get_footer(); ?>


böyle bir denermisinz