رفتن به مطلب

مشکل با قالب پست ها


پست های پیشنهاد شده

زمانی که صفحه پست های جدا یا همون single.php را توسط http://validator.w3.org چک کردم به مشکل زیر برخورد کردم.

post-412-0-78390000-1343907700_thumb.jpg

کسی می تونه کمکی کنه بسیار مهم است.

لینک به ارسال

کدهای single.php

<?php get_header(); ?>

<?php global $woo_options; ?>

<?php $sidebar = $woo_options['woo_sidebar']; ?>

<div id="content" class="col-full">

<div id="main" <?php if( $sidebar == "true" ) { ?> class="col-left" <?php }?>>

<?php if ( function_exists( 'yoast_breadcrumb' ) ) { yoast_breadcrumb( '<div id="breadcrumb"><p>', '</p></div>' ); } ?>

<?php if ( have_posts() ) : $count = 0; ?>

<?php while ( have_posts() ) : the_post(); $count++; ?>

<div <?php post_class( 'post' ); ?>>

<span class="archive_header"><p class="address"><?php esc_attr_e( 'You are here:', 'woothemes' ); ?><?php the_breadcrumb(); ?></p></span>

<div class="middle col-left">

<h1 class="title"><?php the_title(); ?></h1>

<div class="post-meta col-left"><?php woo_post_meta(); ?></div>

<?php if ( isset( $woo_options['woo_thumb_single'] ) && $woo_options['woo_thumb_single'] == 'true' ) woo_image( 'width=519&height=' . $woo_options['woo_single_h'] . '&class=thumbnail main-image ' . $woo_options['woo_thumb_single_align'] ); ?>

<div class="entry">

<?php the_content(); ?>

</div>

<?php the_tags( '<p class="tags">'.__( 'Tags: ', 'woothemes' ), ', ', '</p>' ); ?>

<div id="soc">

<div class="shortlink">

<form>

<input type="url" onclick="this.focus();this.select();" value="<?php echo get_bloginfo('url')."/?p=".$post->ID; ?>">

</form>

</div>

<ul class="sshare">

<div id="bottom-soc">

<ul>

<li id="g"><a href="https://plus.google.com/share?url=my_url=<?php the_permalink(); ?>&title=<?php the_title(); ?>"><?php _e( 'Google+', 'woothemes' ); ?></a></li>

<li id="sub"><a href="http://www.feedburner.com/fb/a/emailFlare?itemTitle=<?php the_title(); ?>&uri=<?php the_permalink(); ?>&loc=$loc"><?php _e( 'Subscribe', 'woothemes' ); ?></a></li>

<li id="fb"><a href="http://www.facebook.com/share.php?u=<?php the_permalink(); ?>"><?php _e( 'Facebook', 'woothemes' ); ?></a></li>

<li id="twit"><a href="http://twitter.com/home/?status=<?php the_title(); ?>+<?php the_permalink(); ?>"><?php _e( 'Twitter', 'woothemes' ); ?></a></li>

<li id="li"><a href="http://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink(); ?>&title=<?php the_title(); ?>"><?php _e( 'LinkedIn', 'woothemes' ); ?></a></li>

</ul>

</div>

</ul>

<ul class="plusone">

<div class="g-plusone" data-size="tall" data-annotation="inline"></div>

</ul>

</ul>

</div>

<div class="rss-footer">

<form action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=dnoj', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true"><p><?php _e( 'Enter your email address:', 'woothemes' ); ?></p><p><input type="text" style="width:558px" name="email"/><input type="hidden" value="dnoj" name="uri"/><input type="hidden" name="loc" value="en_US"/><input class="rss-button" type="submit" value="<?php _e( 'Email-Subscribe', 'woothemes' ); ?>" /></p></form>

</div>

</div>

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

<!-- /.middle -->

<?php woo_postnav(); ?>

<?php $comm = $woo_options['woo_comments']; if ( ( $comm == "post" || $comm == "both" ) ) : ?>

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

<?php endif; ?>

<?php endwhile; else: ?>

<div class="post not-found">

<h2 class="title"><?php _e( 'Error 404 - Page not found!', 'woothemes' ); ?></h2>

<p><?php _e( 'The page you trying to reach does not exist, or has been moved. Please use the menus or the search box to find what you are looking for.', 'woothemes' ); ?></p>

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

<?php endif; ?>

</div><!-- /#main -->

<div id="sidebar" class="col-right">

<?php if (woo_active_sidebar('primary')) : ?>

<div id="head-soc">

<ul>

<li id="g"><a href="https://plus.google.com/103789365754521881423">کوريولانوس</a></li>

<li id="fb"><a href="http://facebook.com/dnoj.ir">کوريولانوس</a></li>

<li id="twit"><a href="http://twitter.com/dnojt">کوريولانوس</a></li>

<li id="li"><a href="http://ir.linkedin.com/pub/dnoj-ir/52/517/9b1">کوريولانوس</a></li>

</ul>

</div>

<div class="relattag">

<h3><?php _e( 'More from this category', 'woothemes' ); ?></h3>

<?php

$cats = strip_tags( get_the_category_list( ',' ) );

$cats = explode( ',', $cats );

if( !empty( $cats ) ){

$cat_ids = array();

foreach ( $cats as $cat ) {

$term_data = get_term_by( 'name', $cat, 'category' );

$cat_ids[] = $term_data->term_id;

}

}

//print_r($cat_ids);

$cats = implode( ',', $cat_ids );

$more_posts = query_posts( array(

'posts_per_page' => $woo_options['woo_more_from_count'],

'post__not_in' => array( get_the_id() ),

'category__and' => $cat_ids )

);

if ( have_posts() ) :?>

<ol>

<?php

while ( have_posts() ) : the_post(); $count++; ?>

<li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">

<?php the_title(); ?>

</a></li>

<?php

endwhile;

?>

</ol>

<?php

endif;

wp_reset_query();

?>

</div><!-- /.related -->

<div class="pp">

<?php woo_sidebar('primary'); ?>

</div>

<?php endif; ?>

<div class="ss">

<div class="textwidget">

<a target="_blank" href="http://dnoj.ir/support" rel="nofollow">

<img src="http://www.dnoj.ir/wp-content/themes/dnoj/images/your-ads.png" alt="<?php _e( 'Ads 125*125', 'woothemes' ); ?>"/>

</a>

<a target="_blank" href="http://dnoj.ir/support" rel="nofollow">

<img src="http://www.dnoj.ir/wp-content/themes/dnoj/images/your-ads.png" alt="<?php _e( 'Ads 125*125', 'woothemes' ); ?>"/>

</a>

</div>

</div>

</div><!-- /#sidebar -->

</div><!-- /#content -->

</div><!-- /#wrapper -->

<?php get_footer(); ?>

لینک به ارسال

ارئر به خاطر وجود فونت فارسیه در حالیکه انکدینگ utf-8 در صفحه وجود نداره و چون این صفحه و header.php با هم لود می شند و قاعدتا در اون این کد موجوده مشکلی نیست

لینک به ارسال

مشکلش را فهمیدم.

به دلیل ترجمه نکردن بخش از قالب بود.

اگر می تونید انجا کمکی کنید

http://forum.wp-parsi.com/topic/1666-%d9%85%d8%b4%da%a9%d9%84-%d8%a8%d8%a7-keyword-category/page__fromsearch__1

لینک به ارسال

به گفتگو بپیوندید

هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .

مهمان
ارسال پاسخ به این موضوع ...

×   شما در حال چسباندن محتوایی با قالب بندی هستید.   حذف قالب بندی

  تنها استفاده از 75 اموجی مجاز می باشد.

×   لینک شما به صورت اتوماتیک جای گذاری شد.   نمایش به صورت لینک

×   محتوای قبلی شما بازگردانی شد.   پاک کردن محتوای ویرایشگر

×   شما مستقیما نمی توانید تصویر خود را قرار دهید. یا آن را اینجا بارگذاری کنید یا از یک URL قرار دهید.

×
×
  • اضافه کردن...