رفتن به مطلب

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

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

<?php

/**

 * The template for displaying Comments.

 */

?>

                       

<div id="comments">

            <?php if ( post_password_required() ) : ?>

                        <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'betheme' ); ?></p>

                        </div>

                        <?php return;

            endif; ?>

 

            <?php if ( have_comments() ) : ?>

                        <h4 id="comments-title">

                                    <?php

                                                if( get_comments_number() == 1 ){

                                                            echo get_comments_number() .' '. __('Comment','betheme');

                                                } else {

                                                            echo get_comments_number() .' '. __('Comments','betheme');

                                                }

                                    ?>

                        </h4>

 

                        <ol class="commentlist">

                                    <?php wp_list_comments('avatar_size=64'); ?>

                        </ol>

 

                        <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>

                        <nav id="comment-nav">

                                    <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'betheme' ) ); ?></div>

                                    <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'betheme' ) ); ?></div>

                        </nav>

                        <?php endif; ?>

 

            <?php

                        elseif ( ! comments_open() && ! is_page() && post_type_supports( get_post_type(), 'comments' ) ) :

            ?>

                        <p class="nocomments"><?php _e( 'Comments are closed.', 'betheme' ); ?></p>

            <?php endif; ?>

 

            <?php comment_form(); ?>

 

</div><!-- #comments -->

لینک به ارسال

این صفحه المانی برای نمایش تاریخ نیست،  شما می تونید صفحه های دیگه دنبالش باشید یا اینکه از اکسپکت المنت استفاده کنید و باکس مربوطه رو display :none کنید.

لینک به ارسال

تنها جایی که در مورد کامنت و زمان چیزی پیدا کردم تویه یک فایل بود که این هم محتواشه

<?php
/**
 * Widget Muffin Recent Comments
 *
 * @package Betheme
 * @author Muffin group
 * @link http://muffingroup.com
 */

if ( ! class_exists( 'Mfn_Recent_Comments_Widget' ) ){
    class Mfn_Recent_Comments_Widget extends WP_Widget {
    
        
        /* ---------------------------------------------------------------------------
         * Constructor
         * --------------------------------------------------------------------------- */
        function __construct(){
            
            $widget_ops = array( 'classname' => 'widget_mfn_recent_comments', 'description' => __( 'The most recent comments.', 'mfn-opts' ) );
            
            parent::__construct( 'widget_mfn_recent_comments', __( 'Muffin Recent Comments', 'mfn-opts' ), $widget_ops );
            
            $this->alt_option_name = 'widget_mfn_recent_comments';
        }
        
        
        /* ---------------------------------------------------------------------------
         * Outputs the HTML for this widget.
         * --------------------------------------------------------------------------- */
        function widget( $args, $instance ) {
    
            if ( ! isset( $args['widget_id'] ) ) $args['widget_id'] = null;
            extract( $args, EXTR_SKIP );
    
            echo $before_widget;
            
            $title = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base);
            if( $title ) echo $before_title . $title . $after_title;
            
            $comments = get_comments( apply_filters( 'widget_comments_args', array( 'number' => intval( $instance['count']), 'status' => 'approve', 'post_status' => 'publish', 'post_type' => 'post' ) ) );
            
            if(is_array($comments))
            {           
                $output = '<div class="Recent_comments">';
                    $output .= '<ul>';
                        foreach($comments as $comment)
                        {
                            $url     = get_permalink($comment->comment_post_ID).'#comment-'.$comment->comment_ID .'" title="'.$comment->comment_author .' | '.get_the_title($comment->comment_post_ID);
    
                            $output .= '<li>';
                                $output .= '<span class="date_label">'. date_i18n( get_option( 'date_format' ), strtotime( $comment->comment_date ) ) .'</span>';
                                $output .= '<p><i class="icon-user"></i> <strong>'.strip_tags($comment->comment_author) .'</strong> '. __('commented on','mfn-opts') .' <a href="'. $url .'">'. get_the_title($comment->comment_post_ID) .'</a></p>';
                            $output .= '</li>';                        
                        }
                    $output .= '</ul>';
                            
                $output .= '</div>'."\n";
            }
            echo $output;
            
            echo $after_widget;
        }
    
    
        /* ---------------------------------------------------------------------------
         * Deals with the settings when they are saved by the admin.
         * --------------------------------------------------------------------------- */
        function update( $new_instance, $old_instance ) {
            $instance = $old_instance;
            
            $instance['title'] = strip_tags( $new_instance['title'] );
            $instance['count'] = (int) $new_instance['count'];
            
            return $instance;
        }
    
        
        /* ---------------------------------------------------------------------------
         * Displays the form for this widget on the Widgets page of the WP Admin area.
         * --------------------------------------------------------------------------- */
        function form( $instance ) {
            
            $title = isset( $instance['title']) ? esc_attr( $instance['title'] ) : '';
            $count = isset( $instance['count'] ) ? absint( $instance['count'] ) : 2;
    
            ?>
                <p>
                    <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title:', 'mfn-opts' ); ?></label>
                    <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
                </p>
                
                <p>
                    <label for="<?php echo esc_attr( $this->get_field_id( 'count' ) ); ?>"><?php _e( 'Number of comments:', 'mfn-opts' ); ?></label>
                    <input id="<?php echo esc_attr( $this->get_field_id( 'count' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'count' ) ); ?>" type="text" value="<?php echo esc_attr( $count ); ?>" size="3"/>
                </p>
                
            <?php
        }
        
        
    }
}

 

لینک به ارسال

 

                                $output .= '<span class="date_label">'. date_i18n( get_option( 'date_format' ), strtotime( $comment->comment_date ) ) .'</span

این قسمت کد حذف کنید،ببینید اوکی شد؟ وگرنه آدرس سایت بدید تا راحتتر راهنماییتون کنم.

ویرایش شده توسط Mirrajabi
لینک به ارسال

ببینید راهکار ها گفته شد : 
1-comments.php باز کنید به دنبال تابعی که تاریخ نمایش بدهد بگردید و حذف کنید !

اگر نبود به درون functions.php هم بگردید و ببینید میتوانید مربوط به کامنت ها پیدا کنید یا خیر !

2-درون قالب بگردید و ایدی و یا کلاس مربوط به اون پیدا کنید و display : none قرار بدید ! 

یقینا با این موارد حل میشود ! تست کنید بعد اطلاع بدید 

لینک به ارسال

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

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

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

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

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

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

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

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

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