رفتن به مطلب

مشکل مشکل دراجرای صحیح پوسته


javadsd

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

باسلام خدمت همه ی دوستای عزیزم ببخشیدمزاحم شدم من پوسته سایتموعوض کردم یکی دیگ گذاشتم حالاداخل این یکی ک گذاستم عکساروخوب نشون نمیده ن داخل صفحه اصلی ن ادامه مطلب عکسایی ک داخل تصویرشاخص میزارم ونشون میده عکسایی ک مثلاازداخل سایتای دیگ میکشم یاحتی خودم آپلودکردم ولی بعنوان تصویرشاخص قرارندادمم نشون نمیده

ممنون میشم راهنماییم کنیدبگیدچیکارکنم

دمتون گرم یاعلی

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

درود .

 

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

 

1. احتمال زیاد : عدم وجود کد و تابع فراخوانی تصاویر شاخص در قالب جدید .

2. احتمال کم : عدم تطابق تصاویر شاخص و ناتوانی قالب جدید جهت نمایش تصاویر قبل .

 

برای مورد اول :

 

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

 

برای مورد دوم :

نصب و کار با افزونه ی لینک ها تنها برای اعضای سایت قابل نمایش است.

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

این index.php

 

 

<?php get_header(); ?><?php require('slide.php'); ?><div class="d100 main"><div class="d1044"><div class="main_right"><?php require('right.php'); ?></div><div class="main_center"><?php require('main-ads.php'); ?><!-- POST --><?PHP if (have_posts() ) : while (have_posts() ) : the_post(); ?><div class="post"><div class="post_top"><a href="https://go.20script.ir/index.php?url=<?php the_permalink(); ?>" class="post_title icon-write" title="<?php the_title(); ?>"><?php the_title(); ?></a><div class="post_top_info"><?php comments_popup_link(__('بدون نظر'), __('1 نظر'), __('% نظر')); ?><a href="https://go.20script.ir/index.php?url=<?php the_permalink(); ?>" title="Views"><?php if (function_exists('wpp_get_views')) { echo wpp_get_views( get_the_ID() ); } ?> بازدید</a></div></div><div class="post_top_down"></div><div class="post_img"><a href="https://go.20script.ir/index.php?url=<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail(); ?></a></div><div class="post_dsc"><?phpob_start();the_content('',true);$postOutput = preg_replace('/<img[^>]+./','', ob_get_contents());ob_end_clean();echo $postOutput;?></div><div class="post_foot"><div class="right"><a class="post_icon icon-clock3"><span><?php the_time(__('j F Y','kubrick')) ?></span></a><a class="post_icon icon-head"><span><?php the_modified_author(); ?></span></a><a class="post_icon icon-grid"><span><?php foreach((get_the_category()) as $category) { echo $category->cat_name . '  '; } ?></span></a><?php $hajm = get_post_meta($post->ID, 'hajm', true); ?><?php if(get_post_custom_values('hajm')) : ?><a class="post_icon icon-pie-graph"><span><?php echo $hajm; ?></span></a><?php endif; ?><div class="post_icon icon-heart"><div class="oos"><?php if(function_exists(getILikeThis)){ getILikeThis('get'); }?></div></div></div><a class="post_more left" title="Download" href="https://go.20script.ir/index.php?url=<?php the_permalink(); ?>">ادامه مطلب + دانلود</a><div class="clear"></div></div></div><?PHP endwhile; ?><?PHP endif ?><!-- PAGE --><div class="page_num"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div></div><div class="main_left"><?php require('left.php'); ?></div><div class="clear"></div></div></div><div class="clear"></div><?php get_footer(); ?>

 

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

اینمsingle.php

 

<?php get_header(); ?><link href="https://go.20script.ir/index.php?url=<?php echo get_template_directory_uri(); ?>/single.css" type="text/css" rel="stylesheet" ><?php require('slide.php'); ?><div class="d100 main"><div class="d1044"><div class="main_right"><?php require('right.php'); ?></div><div class="main_center"><?php require('main-ads.php'); ?><?PHP if (have_posts() ) : while (have_posts() ) : the_post(); ?><div class="post"><div class="post_top"><a href="https://go.20script.ir/index.php?url=<?php the_permalink(); ?>" class="post_title icon-write" title="<?php the_title(); ?>"><?php the_title(); ?></a><div class="post_top_info"><?php comments_popup_link(__('بدون نظر'), __('1 نظر'), __('% نظر')); ?><a href="https://go.20script.ir/index.php?url=<?php the_permalink(); ?>" title="Views"><?php if (function_exists('wpp_get_views')) { echo wpp_get_views( get_the_ID() ); } ?> بازدید</a></div></div><div class="post_top_down"></div><div class="post_img"><a href="https://go.20script.ir/index.php?url=<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail(); ?></a></div><div class="post_dsc"><?php the_content(); ?></div><br><center><img src="http://fun-plus.ir/wp-content/uploads/2015/10/Line-fun-plus.ir_.gif" alt=""></br></center><div class="post_foot"><div class="right"><a class="post_icon icon-clock3"><span><?php the_time(__('j F Y','kubrick')) ?></span></a><a class="post_icon icon-head"><span><?php the_modified_author(); ?></span></a><a class="post_icon icon-grid"><span><?php foreach((get_the_category()) as $category) { echo $category->cat_name . '  '; } ?></span></a><?php $hajm = get_post_meta($post->ID, 'hajm', true); ?><?php if(get_post_custom_values('hajm')) : ?><a class="post_icon icon-pie-graph"><span><?php echo $hajm; ?> مگابایت</span></a><?php endif; ?><div class="post_icon icon-heart"><div class="oos"><?php if(function_exists(getILikeThis)){ getILikeThis('get'); }?></div></div></div><div class="single_share left"><a href="https://go.20script.ir/index.php?url= لینک ها تنها برای اعضای سایت قابل نمایش است.   the_permalink();?>&t=<?php the_title(); ?>" rel="nofollow" target="_blank" title="اشتراک گذاری در فیسبوک" class="icon-facebook"><span>facebook</span></a><a href="https://go.20script.ir/index.php?url= لینک ها تنها برای اعضای سایت قابل نمایش است.   the_title() ?> <?php the_permalink() ?>" target="_blank" title="اشتراک گذاری در توییتر" rel="nofollow" class="icon-googleplus"><span>googleplus</span></a><a href="https://go.20script.ir/index.php?url= لینک ها تنها برای اعضای سایت قابل نمایش است.   the_permalink(); ?>" title="اشتراک گذاری در گوگل پلاس" target="_blank" rel="nofollow" class="icon-twitter"><span>twitter</span></a></div><div class="clear"></div></div><div class="single_foot"><div class="single_ft right"><div class="ft_bx"><span class="icon-download3">دریافت فایل</span><div class="ft_bx_left"><?php $link = get_post_meta($post->ID, 'link', true); ?><?php if(get_post_custom_values('link')) : ?><a href="https://go.20script.ir/index.php?url=<?php echo $link; ?>" class="post_icon dlformat"><span><?php echo $hajm; ?> مگابایت</span>rar</a><?php endif; ?><?php $link_zip = get_post_meta($post->ID, 'link_zip', true); ?><?php if(get_post_custom_values('link_zip')) : ?><a href="https://go.20script.ir/index.php?url=<?php echo $link_zip; ?>" class="post_icon dlformat"><span><?php echo $hajm; ?> مگابایت</span>zip</a><?php endif; ?><?php $link_jpg = get_post_meta($post->ID, 'link_jpg', true); ?><?php if(get_post_custom_values('link_jpg')) : ?><a href="https://go.20script.ir/index.php?url=<?php echo $link_jpg; ?>" class="post_icon dlformat"><span><?php echo $hajm; ?> مگابایت</span>jpg</a><?php endif; ?></div></div><div class="ft_bx" style="margin-top:20px;border-bottom:none;"><span class="icon-locked">پسورد فایل درصورت نیاز</span><div class="ft_bx_left the-source"><a href="https://go.20script.ir/index.php?url=" style="font-size:15px;">www.fun-plus.ir</a></div><span class="passwordcaps">پسورد فایل فشرده را بصورت حروف کوچک تایپ نمایید.</span></div></div><div class="single_lt left"><a href="https://go.20script.ir/index.php?url=">گزارش خرابی لینک</a><?php $preview = get_post_meta($post->ID, 'preview', true); ?><?php if(get_post_custom_values('preview')) : ?><a href="https://go.20script.ir/index.php?url=<?php echo $preview; ?>">پیش نمایش فایل</a><?php endif; ?><a href="https://go.20script.ir/index.php?url=">آموزش تعمیر فایل</a></div><div class="clear"></div></div></div><?PHP endwhile; ?><?PHP endif ?><div class="single_ads_down"><?php require('ads_single_down.php'); ?></div><div class="relate"><div class="relate_top"><li class="current">مطالب مرتبط <span>پیشنهادی</span></li><div class="clear"></div></div><div class="relate_box"><ul><?php $orig_post = $post;global $post;$categories = get_the_category($post->ID);if ($categories) {$category_ids = array();foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id;$args=array('category__in' => $category_ids,'post__not_in' => array($post->ID),'posts_per_page'=> 12,'orderby' => 'rand','caller_get_posts'=>1);$my_query = new wp_query( $args );if( $my_query->have_posts() ) { while( $my_query->have_posts() ) {$my_query->the_post();?><li><a href="https://go.20script.ir/index.php?url=<? the_permalink()?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li><?php }}}$post = $orig_post;wp_reset_query(); ?></ul></div></div><div class="comments"><div class="comments_top"><div class="icon-chat"><b> تاکنون <?php comments_popup_link(__('هیچ نظری'), __('1 نظر'), __('% نظر')); ?> ارسال شده است</b><span>شما هم نظری ارسال کنید</span></div></div><div class="comment_box right_menu_scroll"><?php comments_template(); ?></div></div></div><div class="main_left"><?php require('left.php'); ?></div><div class="clear"></div></div></div><div class="clear"></div></div><?php get_footer(); ?>

 

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

کد index.php رو با کد زیر جایگزین کنید : (کد اصلاح شده: )

 

 

<?php get_header(); ?><?php require('slide.php'); ?><div class="d100 main"><div class="d1044"><div class="main_right"><?php require('right.php'); ?></div><div class="main_center"><?php require('main-ads.php'); ?><!-- POST --><?PHP if (have_posts() ) : while (have_posts() ) : the_post(); ?><div class="post"><div class="post_top"><a href="https://go.20script.ir/index.php?url=<?php the_permalink(); ?>" class="post_title icon-write" title="<?php the_title(); ?>"><?php the_title(); ?></a><div class="post_top_info"><?php comments_popup_link(__('بدون نظر'), __('1 نظر'), __('% نظر')); ?><a href="https://go.20script.ir/index.php?url=<?php the_permalink(); ?>" title="Views"><?php if (function_exists('wpp_get_views')) { echo wpp_get_views( get_the_ID() ); } ?> بازدید</a></div></div><div class="post_top_down"></div><div class="post_img"><a href="https://go.20script.ir/index.php?url=<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail(); ?></a></div><div class="post_dsc"><?php the_content(); ?></div><div class="post_foot"><div class="right"><a class="post_icon icon-clock3"><span><?php the_time(__('j F Y','kubrick')) ?></span></a><a class="post_icon icon-head"><span><?php the_modified_author(); ?></span></a><a class="post_icon icon-grid"><span><?php foreach((get_the_category()) as $category) { echo $category->cat_name . '  '; } ?></span></a><?php $hajm = get_post_meta($post->ID, 'hajm', true); ?><?php if(get_post_custom_values('hajm')) : ?><a class="post_icon icon-pie-graph"><span><?php echo $hajm; ?></span></a><?php endif; ?><div class="post_icon icon-heart"><div class="oos"><?php if(function_exists(getILikeThis)){ getILikeThis('get'); }?></div></div></div><a class="post_more left" title="Download" href="https://go.20script.ir/index.php?url=<?php the_permalink(); ?>">ادامه مطلب + دانلود</a><div class="clear"></div></div></div><?PHP endwhile; ?><?PHP endif ?><!-- PAGE --><div class="page_num"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div></div><div class="main_left"><?php require('left.php'); ?></div><div class="clear"></div></div></div><div class="clear"></div><?php get_footer(); ?>

 

 

 

کد single.php رو هم اصلاح کنید : (کامل جایگزین کنید مانند قبلی)

 

 

<?php get_header(); ?><link href="https://go.20script.ir/index.php?url=<?php echo get_template_directory_uri(); ?>/single.css" type="text/css" rel="stylesheet" ><?php require('slide.php'); ?><div class="d100 main"><div class="d1044"><div class="main_right"><?php require('right.php'); ?></div><div class="main_center"><?php require('main-ads.php'); ?><?php if (have_posts() ) : while (have_posts() ) : the_post(); ?><div class="post"><div class="post_top"><a href="https://go.20script.ir/index.php?url=<?php the_permalink(); ?>" class="post_title icon-write" title="<?php the_title(); ?>"><?php the_title(); ?></a><div class="post_top_info"><?php comments_popup_link(__('بدون نظر'), __('1 نظر'), __('% نظر')); ?><a href="https://go.20script.ir/index.php?url=<?php the_permalink(); ?>" title="Views"><?php if (function_exists('wpp_get_views')) { echo wpp_get_views( get_the_ID() ); } ?> بازدید</a></div></div><div class="post_top_down"></div><div class="post_img"><a href="https://go.20script.ir/index.php?url=<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail(); ?></a></div><div class="post_dsc"><?php the_content(); ?></div><br><center><img src="http://fun-plus.ir/wp-content/uploads/2015/10/Line-fun-plus.ir_.gif" alt=""></br></center><div class="post_foot"><div class="right"><a class="post_icon icon-clock3"><span><?php the_time(__('j F Y','kubrick')) ?></span></a><a class="post_icon icon-head"><span><?php the_modified_author(); ?></span></a><a class="post_icon icon-grid"><span><?php foreach((get_the_category()) as $category) { echo $category->cat_name . '  '; } ?></span></a><?php $hajm = get_post_meta($post->ID, 'hajm', true); ?><?php if(get_post_custom_values('hajm')) : ?><a class="post_icon icon-pie-graph"><span><?php echo $hajm; ?> مگابایت</span></a><?php endif; ?><div class="post_icon icon-heart"><div class="oos"><?php if(function_exists(getILikeThis)){ getILikeThis('get'); }?></div></div></div><div class="single_share left"><a href="https://go.20script.ir/index.php?url= لینک ها تنها برای اعضای سایت قابل نمایش است.   the_permalink();?>&t=<?php the_title(); ?>" rel="nofollow" target="_blank" title="اشتراک گذاری در فیسبوک" class="icon-facebook"><span>facebook</span></a><a href="https://go.20script.ir/index.php?url= لینک ها تنها برای اعضای سایت قابل نمایش است.   the_title() ?> <?php the_permalink() ?>" target="_blank" title="اشتراک گذاری در توییتر" rel="nofollow" class="icon-googleplus"><span>googleplus</span></a><a href="https://go.20script.ir/index.php?url= لینک ها تنها برای اعضای سایت قابل نمایش است.   the_permalink(); ?>" title="اشتراک گذاری در گوگل پلاس" target="_blank" rel="nofollow" class="icon-twitter"><span>twitter</span></a></div><div class="clear"></div></div><div class="single_foot"><div class="single_ft right"><div class="ft_bx"><span class="icon-download3">دریافت فایل</span><div class="ft_bx_left"><?php $link = get_post_meta($post->ID, 'link', true); ?><?php if(get_post_custom_values('link')) : ?><a href="https://go.20script.ir/index.php?url=<?php echo $link; ?>" class="post_icon dlformat"><span><?php echo $hajm; ?> مگابایت</span>rar</a><?php endif; ?><?php $link_zip = get_post_meta($post->ID, 'link_zip', true); ?><?php if(get_post_custom_values('link_zip')) : ?><a href="https://go.20script.ir/index.php?url=<?php echo $link_zip; ?>" class="post_icon dlformat"><span><?php echo $hajm; ?> مگابایت</span>zip</a><?php endif; ?><?php $link_jpg = get_post_meta($post->ID, 'link_jpg', true); ?><?php if(get_post_custom_values('link_jpg')) : ?><a href="https://go.20script.ir/index.php?url=<?php echo $link_jpg; ?>" class="post_icon dlformat"><span><?php echo $hajm; ?> مگابایت</span>jpg</a><?php endif; ?></div></div><div class="ft_bx" style="margin-top:20px;border-bottom:none;"><span class="icon-locked">پسورد فایل درصورت نیاز</span><div class="ft_bx_left the-source"><a href="https://go.20script.ir/index.php?url=" style="font-size:15px;">www.fun-plus.ir</a></div><span class="passwordcaps">پسورد فایل فشرده را بصورت حروف کوچک تایپ نمایید.</span></div></div><div class="single_lt left"><a href="https://go.20script.ir/index.php?url=">گزارش خرابی لینک</a><?php $preview = get_post_meta($post->ID, 'preview', true); ?><?php if(get_post_custom_values('preview')) : ?><a href="https://go.20script.ir/index.php?url=<?php echo $preview; ?>">پیش نمایش فایل</a><?php endif; ?><a href="https://go.20script.ir/index.php?url=">آموزش تعمیر فایل</a></div><div class="clear"></div></div></div><?php endwhile; ?><?php endif ?><div class="single_ads_down"><?php require('ads_single_down.php'); ?></div><div class="relate"><div class="relate_top"><li class="current">مطالب مرتبط <span>پیشنهادی</span></li><div class="clear"></div></div><div class="relate_box"><ul><?php $orig_post = $post;global $post;$categories = get_the_category($post->ID);if ($categories) {$category_ids = array();foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id;$args=array('category__in' => $category_ids,'post__not_in' => array($post->ID),'posts_per_page'=> 12,'orderby' => 'rand','caller_get_posts'=>1);$my_query = new wp_query( $args );if( $my_query->have_posts() ) { while( $my_query->have_posts() ) {$my_query->the_post();?><li><a href="https://go.20script.ir/index.php?url=<? the_permalink()?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li><?php }}}$post = $orig_post;wp_reset_query(); ?></ul></div></div><div class="comments"><div class="comments_top"><div class="icon-chat"><b> تاکنون <?php comments_popup_link(__('هیچ نظری'), __('1 نظر'), __('% نظر')); ?> ارسال شده است</b><span>شما هم نظری ارسال کنید</span></div></div><div class="comment_box right_menu_scroll"><?php comments_template(); ?></div></div></div><div class="main_left"><?php require('left.php'); ?></div><div class="clear"></div></div></div><div class="clear"></div></div><?php get_footer(); ?> 

 

 

با این تغییرات مشکلی نباید باشه . مگر اینکه داخل فانکشن قالبتون کدی قرار گرفته باشه که خاصیت Replace کردن رو اجرا کنه . یعنی به تگ های img کد اضافه کنه که باعث عدم نمایش اونا بشه .

 

اگه تصاویر لود نشدن یک سورس از ادامه مطلب یا صفحه اصلیتون بگیرید و بررسی کنید که آیا تصویر در سورس موجود هست و نمایش داده نمیشه یا اصلا فراخوانی نمیشه .

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

داداش کدایی ک اصلاح کردیوگذاشتم ولی بازم درست نشدازادامه مطلب سورس گرفتم داخل سورس لینک عکسارونشون میده حالاچیکارکنم؟

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

خوب از سورس که بررسی کردید ، آیا کد تصاویر به صورت صحیح بود ؟ چیزی کم یا زیاد نشده بود از حالت عادی که به صورت زیر هست :

 

 

<img src="link image">

 

 

احتمالا همان مورد replace کردن است که برخی عناصر به تصاویر اضافه می شود که باعث ازکار افتادن آنهاست . ابتدا باید ببینید چیزی به لینک تصاویر اضافه شده یا خیر سپس داخل functions.php دنبال مشکل بگردید.

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

بایگانی شده

این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.

مهمان
این موضوع برای عدم ارسال قفل گردیده است.
×
×
  • اضافه کردن...