رفتن به مطلب

مشکل در قسمت دیدگاها


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

سلام

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

لطفا کمک کنید


<?php

// Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');

if ( post_password_required() ) { ?>
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments','mythemeshop'); ?>.</p>
<?php return; } ?>
<!-- You can start editing here. -->
<?php if ( have_comments() ) : ?>
<div id="comments">
<div id="response">
<?php global $aria_req; $comments_args = array(
'title_reply'=>''.__('دیدگاه شما','mythemeshop').'',
'comment_notes_after' => '',
'label_submit' => 'ارسال متن شما',
'comment_field' => '
<p class="comment-form-comment"><label for="comment">'.__('دیدگاه:','mythemeshop').'<span class="required">*</span></label><textarea id="comment" name="comment" cols="45" rows="5" aria-required="true"></textarea></p>',
'fields' => apply_filters( 'comment_form_default_fields',
array(
'author' => '<p class="comment-form-author">'
. '<label for="author">' . __( 'نام', 'mythemeshop' ) . ':<span class="required">*</span></label>'
. ( $req ? '' : '' ) . '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>',

'email' => '<p class="comment-form-email"><label for="email">' . __( 'ایمیل', 'mythemeshop' ) . ':<span class="required">*</span></label>'
. ( $req ? '' : '' ) . '<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>',

'url' => '<p class="comment-form-url"><label for="url">' . __( 'وب سایت', 'mythemeshop' ) . ':</label>' .
'<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>'
))
);
comment_form($comments_args); ?>
</div>
<div class="heading"><i class="icon-comments-alt"></i><?php comments_number(__('بدون دیدگاه','mythemeshop'), __('یک دیدگاه','mythemeshop'), __('% دیدگاه','mythemeshop') );?></div>
<ol class="commentlist group">
<div class="navigation">
<div class="alignleft"><?php previous_comments_link() ?></div>
<div class="alignright"><?php next_comments_link() ?></div>
</div>
<?php wp_list_comments(); ?>
<div class="navigation bottomnav">
<div class="alignleft"><?php previous_comments_link() ?></div>
<div class="alignright"><?php next_comments_link() ?></div>
</div>
</ol>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments"></p>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>

<?php endif; // if you delete this the sky will fall on your head ?>
</div>

با تشکر

لینک به ارسال

درود.تست کنید


<?php
// Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if ( post_password_required() ) { ?>
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments','mythemeshop'); ?>.</p>
<?php return; } ?>
<!-- You can start editing here. -->
<?php if ( have_comments() ) : ?>
<div id="comments">
<div id="response">
<?php global $aria_req; $comments_args = array(
'must_log_in' => '<p class="must-log-in">' . sprintf('شما باید <a href="%s">وارد شوید</a> تا نظر بنویسید.' , wp_login_url( apply_filters( 'the_permalink', get_permalink( ) ) ) ) . '</p>',
'logged_in_as' => '<p class="logged-in-as">' . sprintf('وارد شده به عنوان <a href="%1$s">%2$s</a>. <a href="%3$s" title="خروج از این حساب">خروج؟</a>', admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( ) ) ) ) . '</p>',
'title_reply'=>''.__('دیدگاه شما','mythemeshop').'',
'comment_notes_after' => '',
'label_submit' => 'ارسال متن شما',
'comment_field' => '
<p class="comment-form-comment"><label for="comment">'.__('دیدگاه:','mythemeshop').'<span class="required">*</span></label><textarea id="comment" name="comment" cols="45" rows="5" aria-required="true"></textarea></p>',
'fields' => apply_filters( 'comment_form_default_fields',
array(
'author' => '<p class="comment-form-author">'
. '<label for="author">' . __( 'نام', 'mythemeshop' ) . ':<span class="required">*</span></label>'
. ( $req ? '' : '' ) . '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>',

'email' => '<p class="comment-form-email"><label for="email">' . __( 'ایمیل', 'mythemeshop' ) . ':<span class="required">*</span></label>'
. ( $req ? '' : '' ) . '<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>',

'url' => '<p class="comment-form-url"><label for="url">' . __( 'وب سایت', 'mythemeshop' ) . ':</label>' .
'<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>'
))
);
comment_form($comments_args); ?>
</div>
<div class="heading"><i class="icon-comments-alt"></i><?php comments_number(__('بدون دیدگاه','mythemeshop'), __('یک دیدگاه','mythemeshop'), __('% دیدگاه','mythemeshop') );?></div>
<ol class="commentlist group">
<div class="navigation">
<div class="alignleft"><?php previous_comments_link() ?></div>
<div class="alignright"><?php next_comments_link() ?></div>
</div>
<?php wp_list_comments(); ?>
<div class="navigation bottomnav">
<div class="alignleft"><?php previous_comments_link() ?></div>
<div class="alignright"><?php next_comments_link() ?></div>
</div>
</ol>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments"></p>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>

<?php endif; // if you delete this the sky will fall on your head ?>
</div>

لینک به ارسال

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

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

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

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

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

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

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

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

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