Привет. Как отредактировать, чтоб автор на сайте не отображался? Двиг WP. /** * Function to get author info */ add_action( 'vmag_author_info', 'vmag_author_info_hook' ); if( ! function_exists( 'vmag_author_info_hook' ) ): function vmag_author_info_hook() { global $post; $author_id = $post->post_author; $author_avatar = get_avatar( $author_id, '132' ); $author_nickname = get_the_author_meta( 'display_name' ); $vmag_author_option = get_theme_mod( 'vmag_author_info_option', 'show' ); if( $vmag_author_option != 'hide' ) { ?> <div class="vmag-author-metabox clearfix"> <div class="author-avatar"> <a class="author-image" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) );?>"><?php echo $author_avatar; ?></a> </div><!-- .author-avatar --> <div class="author-desc-wrapper"> <a class="author-title" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) );?>"><?php echo esc_html( $author_nickname ); ?></a> <div class="author-description"><?php echo get_the_author_meta('description');?></div> <a href="<?php echo esc_url( get_the_author_meta( 'user_url' ) );?>" target="_blank"><?php echo esc_url( get_the_author_meta( 'user_url' ) );?></a> </div><!-- .author-desc-wrapper--> </div><!--vmag-author-metabox--> <?php } } endif; /** Code /** * Function to get author info */ add_action( 'vmag_author_info', 'vmag_author_info_hook' ); if( ! function_exists( 'vmag_author_info_hook' ) ): function vmag_author_info_hook() { global $post; $author_id = $post->post_author; $author_avatar = get_avatar( $author_id, '132' ); $author_nickname = get_the_author_meta( 'display_name' ); $vmag_author_option = get_theme_mod( 'vmag_author_info_option', 'show' ); if( $vmag_author_option != 'hide' ) { ?> <div class="vmag-author-metabox clearfix"> <div class="author-avatar"> <a class="author-image" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) );?>"><?php echo $author_avatar; ?></a> </div><!-- .author-avatar --> <div class="author-desc-wrapper"> <a class="author-title" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) );?>"><?php echo esc_html( $author_nickname ); ?></a> <div class="author-description"><?php echo get_the_author_meta('description');?></div> <a href="<?php echo esc_url( get_the_author_meta( 'user_url' ) );?>" target="_blank"><?php echo esc_url( get_the_author_meta( 'user_url' ) );?></a> </div><!-- .author-desc-wrapper--> </div><!--vmag-author-metabox--> <?php } } endif; /** Кто подскажет, подгоню купон на рекламу в google на 2 000 рублей.
Salieri_inactive126688, Так просто методом удаления...Попробуй постепенно стирать некоторые строки... Но я раньше просто удалял все строчки и было каеф.
<a class="author-title" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) );?>"><?php echo esc_html( $author_nickname ); ?></a> <div class="author-description"><?php echo get_the_author_meta('description');?></div> <a href="<?php echo esc_url( get_the_author_meta( 'user_url' ) );?>" target="_blank"><?php echo esc_url( get_the_author_meta( 'user_url' ) );?></a> удали
всё что перечислили делал - ерроры тогда выдаёт, заного приходится грузить файл на хостинг заебался уже, минут 40 сижу, удаляю всевозможные комбинации