greenman adlı üyeden alıntı: mesajı görüntüle
Merhaba arkadaşlar. Detube temasını kullanmaktayım. Bu yapısal veri hataları hakkında açılan konulara baktım ama çözüm bulamadığım için konu açmaya karar verdim. Açılan konularda bahsedilen kodlar benim temamda yok. Yakın terimler var ama temayla oynayıp daha beter olmasını istemediğim için karışmadım. Sizlerden ricam eğer bu konuda bilgi sahibiyseniz yardımcı olmanız. Single.php dosyasını aşağıda verdim. Hangi kodları nasıl değiştireceğim konusunda yardımcı olursanız sevinirim.

Aldıgım hatalar klasik olarak
eksik:author
eksik:entry-title
eksik:updated




temanın single.php dosyası :
<?php
/**
 * The Template for displaying all single posts.
 *
 * @package deTube
 * @subpackage Template
 * @since deTbue 1.0
 */

global $post;

// Get video layout
$video_layout = get_post_meta($post->ID, 'dp_video_layout', true);
if(!$video_layout)
	$video_layout = get_option('dp_single_video_layout');
if(!$video_layout)
	$video_layout = 'standard';

// Check the current post is a video post and get template based on the video layout
if(is_video()) {
	if($video_layout == 'full-width')
		get_template_part('single-video-full-width'); 
	else
		get_template_part('single-video'); 
	
	return;
}

get_header(); ?>

<div id="main"><div class="wrap cf">
	
	<div class="entry-header cf">
	<div class="inner cf">
		<h1 class="entry-title"><?php the_title(); ?></h1>
	
		<?php dp_post_actions($post->ID); ?>
	</div><!-- end .entry-header>.inner -->
	</div><!-- end .entry-header -->
	
	<div id="content" role="main">
		<?php while (have_posts()) : the_post(); global $post;?>
		
		<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">		
		
		<div id="details" class="section-box">
			
				<p class="entry-meta">
					<span class="author"><?php _e('Added by', 'dp'); ?> <?php the_author_posts_link(); ?></span>
					<span class="time"><?php _e('on', 'dp'); ?> <?php the_date(); ?></span>
					
					<?php edit_post_link(__('Edit', 'dp'), ' <span class="sep">/</span> '); ?>
				</p>
				
				<?php 
				// Thumbnail
				global $post;
				$post_type = get_post_type($post_type);
				$post_format = get_post_format($post->ID);
				if(!$post_format && $post_type == 'post' && get_option('dp_single_thumb')) {
					$thumb_url = dp_thumb_url('custom-large', '', $post->ID, false);
					if(!empty($thumb_url)) {
						echo '<div id="thumb" class="rich-content"><img src="'.$thumb_url.'" alt="'.esc_attr(get_the_title($post->ID)).'" /><span class="vertical-align"></div>';
					}
				}
				?>

				<div class="entry-content rich-content">
					<?php the_content(); ?>

						<?php wp_link_pages(array('before' => '<p class="entry-nav pag-nav"><span>'.__('Pages:', 'dp').'</span> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
				</div><!-- end .entry-content -->
			
				<div id="extras">
					<h4><?php _e('Category:', 'dp'); ?></h4> <?php the_category(', '); ?>
					<?php the_tags('<h4>'.__('Tags:', 'dp').'</h4>', ', ', ''); ?>
				</div>
			
		</div><!--end #deatils-->
		</div><!-- end #post-<?php the_ID(); ?> -->
		
		<?php 
			dp_related_posts(array(
				'number'=>get_option('dp_related_posts'), 
				'view'=>get_option('dp_related_posts_view', 'grid-mini')
			)); 
		?>

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

		<?php endwhile; ?>
	</div><!-- end #content -->

	<?php get_sidebar(); ?>

</div></div><!-- end #main -->
	
<?php get_footer(); ?>
benim temamda kullandığım kodları atıyorum. functions.php nin en altına ekle fakat önce o dosyayı yedek al. bir dene, cache kullanıyorsan deaktif kıl veya kodu ekledikten sonra cache temizle, siteye bir bak bir bozulma hata yoksa, bu şekilde kullan birkaç güne hata sayısının bir anda azalacağı ve bir süre sonra kökten temizlendiğini göreceksin. umarım işine yarar kolay gelsin.

add_filter( 'post_class', 'remove_hentry_function', 20 );
function remove_hentry_function( $classes ) {
    if( ( $key = array_search( 'hentry', $classes ) ) !== false )
        unset( $classes[$key] );
    return $classes;
}