Answers for "wp post view1"

PHP
0

wp post view1

if ( $blog_author || $blog_date || $show_comments_number ) {
        $meta .= '<p class="meta">';
        if ( $blog_date ) $meta .= esc_html( date_i18n( $date_format, strtotime( get_the_time( 'Y-m-d' ) ) ) ); 
        if ( $blog_date && $blog_author ) $meta .= ' — ';
        if ( $blog_author ) $meta .= '<span class="visitas">' . $blog_number_visits . ' </span>';
        if ( ( $blog_date || $blog_author ) && $show_comments_number ) $meta .= ' — ';
        if ( $show_comments_number ) $meta .= '<span class="commentCount"><a href="' . esc_url( $permalink ) . '#comments">' . $comments_number . '</a></span>';
        $meta .= '</p>';
    }
Posted by: Guest on September-14-2021

Browse Popular Code Answers by Language