reazah 255 ارسال شده در بهمن 92 گزارش بازنشر ارسال شده در بهمن 92 چطوری می تونم باکس نظرات بالای نظرات ارسالی نسون بدم ؟ممنون نقل قول لینک به ارسال
Parsa 23463 ارسال شده در بهمن 92 گزارش بازنشر ارسال شده در بهمن 92 در حال حاظر بعد از نظرات هست؟کد فرم را به قبل از تابع نظرها منتقل کنید در فایل comment.php 3 نقل قول لینک به ارسال
reazah 255 ارسال شده در بهمن 92 مالک گزارش بازنشر ارسال شده در بهمن 92 من <?php if ('open' == $post->comment_status) : ?> قسمت نظرات و که میارم بالا میرزه بهم میشه بگین کدوم تابع باید تغییر بدم<?php/*** @package WordPress* @subpackage Default_Theme*/// Do not delete these linesif (!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.','stylesheet'); ?></p><?php return;}?><!-- You can start editing here. --><?php if ( have_comments() ) : ?><h3 id="mcomments"><?php comments_number(__('0 نظر','stylesheet'), __('1 نظر','stylesheet'), __('(%) نظر','stylesheet'));?> <?php _e('برای','stylesheet'); ?> “<?php the_title(); ?>”</h3><div class="navigation"> <div class="alignleft"><?php previous_comments_link() ?></div> <div class="alignright"><?php next_comments_link() ?></div></div><ol class="commentlist"><?php wp_list_comments(); ?></ol><div class="navigation"> <div class="alignleft"><?php previous_comments_link() ?></div> <div class="alignright"><?php next_comments_link() ?></div></div><?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"><?php _e('نظرات بسته شده است.','stylesheet'); ?></p><?php endif; ?><?php endif; ?><?php if ('open' == $post->comment_status) : ?><div id="respond"><h3 id="comment-h3"><?php comment_form_title(__('شما چی فکر می کنید؟','stylesheet'),__('Leave a Reply to %s')); ?></h3><div class="cancel-comment-reply"><small><?php cancel_comment_reply_link(); ?></small></div><?php if ( get_option('comment_registration') && !$user_ID ) : ?><p><?php _e('برای ارسال نظر لطفا ','stylesheet'); ?><a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php _e('ثبت نام','stylesheet'); ?></a><?php _e(' کنید','stylesheet'); ?></p><?php else : ?><form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"><?php if ( $user_ID ) : ?><p><?php _e('وارد شده اید ','stylesheet'); ?><a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account"><?php _e('خارج شدن »','stylesheet'); ?></a></p><br /><?php else : ?><p><input type="text" name="author" id="author" placeholder="نام و نام خانوادگی" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /><!--<label for="author"><small><?php _e('نام و نام خانوادگی','stylesheet'); ?></small></label></p>--><p><input type="text" name="email" placeholder="ایمیل" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /><!--<label for="email"><small><?php _e('ایمیل','stylesheet'); ?></small></label></p>--><p><input type="text" name="url" id="url" placeholder="سایت" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /><!--<label for="url"><small><?php _e('سایت','stylesheet'); ?></small></label></p>--><?php endif; ?><!--<p><small><strong>XHTML:</strong> می توانید از این تگ ها استفاده کنید: <code><?php echo allowed_tags(); ?></code></small></p>--><p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p><p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('ارسال نظر','stylesheet'); ?>" /><?php comment_id_fields(); ?></p><?php do_action('comment_form', $post->ID); ?></form><?php endif; // If registration required and not logged in ?></div><?php endif; // if you delete this the sky will fall on your head ?> نقل قول لینک به ارسال
reazah 255 ارسال شده در بهمن 92 مالک گزارش بازنشر ارسال شده در بهمن 92 (ویرایش شده) با تشکر از پارسا درست شد بالاخره این کد و<?php wp_list_comments(); ?> به مکان دلخواه تغییر میدیم (اگر کسی چنین مشکلی داشت مث من دو روز گیر نکنه ) ویرایش شده بهمن 92 توسط reazah نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .