رفتن به مطلب

غیب شدن ناگهانی تمام آواتارها!!


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

با سلام خدمت تمام دوستان و متخصصان عزیز

چند وقت پیش به مشکل عجیبی بر روی سایتم برخوردم که هر چه تلاش کردیم، موفق به حل آن نشدیم.

مشکل از این قرار است که در بخش دیدگاه‌ها (کامنت‌ها) هیچ کاربری آواتار ندارد! حالا چه آواتاری که به صورت دستی آپلود کرده باشد، چه تصویر پیش فرض وردپرس و چه گراواتار! هیچ کدام نمایش داده نمی‌شوند و کلا غیب شدند!

هرکاری کردیم، افزونه‌ها رو غیرفعال کردیم، باز فایده‌ای نداشت.

لطفا کمک کنید که این آواتارها را برگردونیم.

مثال: http://itresan.com/54863/best-and-worst-smartphones-of-2014.html

لینک به ارسال

فایل comments.php پوسته پیشفرض وردپرس رو استفاده کنید ببینید حل میشه یا نه. قبلش تنظیمات رو هم بررسی کنید. آواتار رو از داخل تنظیمات هم میشه غیرفعال کرد.

لینک به ارسال

محتویات فایلهای comments.php و functions.php رو بذارین اینجا تا چک بشه.

لینک به ارسال
ارسال شده در (ویرایش شده)

ممنون از پاسخ شما خوبان

محتویات فایل Comment.php پوسته


<?php
/**
* The template for displaying Comments.
*
* The area of the page that contains both current comments
* and the comment form. The actual display of comments is
* handled by a callback to wellthemes_comment() which is
* located in the functions.php file.
*
* @package WellThemes
* @file comments.php
* @author Well Themes Team
* @link http://wellthemes.com
*/
?>
<div id="comments" data-animation="fadeInUp">
<?php if ( post_password_required() ) : ?>
<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'wellthemes' ); ?></p>
</div><!-- /comments -->
<?php
/* Stop the rest of comments.php from being processed,
* but don't kill the script entirely -- we still have
* to fully load the template.
*/
return;
endif;
?>
<?php // if has comments ?>
<?php if ( have_comments() ) : ?>
<div class="comments-title">
<div class="title-wrap">
<i class="fa fa-comments"></i>
<h3><?php printf(_n('یک دیدگاه', '%1$s دیدگاه', get_comments_number()), number_format_i18n( get_comments_number() ), 'wellthemes' ); ?>
</h3>
</div>
<div class="add-comment">
<h6><a href="#respond"><?php _e('Leave Comment', 'wellthemes');?></a></h6>
</div>
</div>
<ol class="commentlist">
<?php
/* Loop through and list the comments. Tell wp_list_comments()
* to use wellthemes_comment() to format the comments.
* If you want to overload this in a child theme then you can
* define wellthemes_comment() and that will be used instead.
* See wellthemes_comment() in functions.php for more.
*/
wp_list_comments( array( 'callback' => 'wellthemes_comment' ) );
?>
</ol>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav class="comment-nav">
<h4><?php _e( 'Comment navigation', 'wellthemes' ); ?></h4>
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'wellthemes' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'wellthemes' ) ); ?></div>
</nav>
<?php endif; // check for comment navigation ?>
<?php
/* If there are no comments and comments are closed, let's leave a little note, shall we?
* But we don't want the note on pages or post types that do not support comments.
*/
elseif ( ! comments_open() && ! is_page() && post_type_supports( get_post_type(), 'comments' ) ) :
?>
<?php endif; ?>
<?php comment_form(); ?>
</div><!-- /comments -->

محتویات function.php


<?php
require( get_template_directory() . '/framework/functions.php' );
/**
* Set the format for the more in excerpt, return ... instead of [...]
*/
function wellthemes_excerpt_more( $more ) {
return '...';
}
add_filter('excerpt_more', 'wellthemes_excerpt_more');
// custom excerpt length
function wellthemes_excerpt_length( $length ) {
return 30;
}
add_filter( 'excerpt_length', 'wellthemes_excerpt_length');
?>

ویرایش شده توسط SM-Mahdavi
لینک به ارسال

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

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

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

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

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

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

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

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

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