رفتن به مطلب

عدم نمایش تصاویر در صفحه اول


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

سلام به همه اعضا

من یه پوسته دارم این یه مشکل داره اونم اینه که وقتی نوشته ای که جدید می زنم ویه عکس میزارم تو صفحه اول نمایش نمی ده ولی وقتی ادامه مطلب رو میزنم نشونش میده مشکلش از کجا میتونه باشه اگه لازم بود کدشم میزارم

لینک به ارسال

احتمالا کد شما به جای مطلب خلاصشو میزاره. شما تو index.php ببین اگه the_excerpt داری با the_contentعوضش کن یا کد رو بزار اینجا تا بررسی بشه.

  • امتیاز 2
لینک به ارسال

نبودش والا من دارم یه پوسته رو ترجمه میکنم فقط این قسمتش مشکل داره

فک کنم مربوط به این قسمت باشه:

		    <?php
if(has_post_thumbnail()) {
?>
<div class="featured-image-container"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('medium'); ?></a></div><?php
}
?>

لینک به ارسال

این قسمت مربوط به تصویر شاخص میشه، برای نمایش این قسمت باید هنگام ارسال پست تصویر شاخص را هنگام انتشار مشخص کنید.

اگه مایلی می تونی سورس ایندکس را کامل بزاری تا با دید بهتری بهتون کمک بشه.

  • امتیاز 2
لینک به ارسال

ببینید می تونید مشکلشو پیدا کنید:

<?php global $theme; get_header(); ?>
<div id="main">

<?php $theme->hook('main_before'); ?>
<div id="content">

<?php $theme->hook('content_before'); ?>

<?php
$is_post_wrap = 0;
if (have_posts()) : while (have_posts()) : the_post();
/**
* The default post formatting from the post.php template file will be used.
* If you want to customize the post formatting for your homepage:
*
* - Create a new file: post-homepage.php
* - Copy/Paste the content of post.php to post-homepage.php
* - Edit and customize the post-homepage.php file for your needs.
*
* Learn more about the get_template_part() function: http://codex.wordpress.org/Function_Reference/get_template_part
*/
$is_post_wrap++;
if($is_post_wrap == '1') {
?><div class="post-wrap clearfix"><?php
}
get_template_part('post', 'homepage');

if($is_post_wrap == '2') {
$is_post_wrap = 0;
?></div><?php
}

endwhile;

else :
get_template_part('post', 'noresults');
endif;

if($is_post_wrap == '1') {
?></div><?php
}

get_template_part('navigation');
?>

<?php $theme->hook('content_after'); ?>

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

<?php get_sidebars(); ?>

<?php $theme->hook('main_after'); ?>

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

<?php get_footer(); ?>

خیلی ممنون رفع شد از همون قسمت تصاویر شاخص بود :D

لینک به ارسال

لطفا برای ارسال دیدگاه وارد شوید

شما بعد از اینکه وارد حساب کاربری خود شدید می توانید دیدگاهی ارسال کنید



ورود به حساب کاربری
×
×
  • اضافه کردن...