3ответ(ов) в теме
Здравствуйте ! Помогите убрать список статей автора в ЛК
Вы не можете просматривать опубликованные ссылки
. Выводиттся внизу ЛК, абсолютно не нужен, т.к. он уже есть во вкладке "Публикации". Мой файл author.php :
<?php get_header(); ?>
<div id="content" class="cf">
<div id="author-<?php the_author_meta( 'ID' ); ?>">
<div class="author-info-box">
<div class="author-info">
<div class="author-avatar">
<?php echo get_avatar( get_the_author_meta('ID'), 96 ); ?>
<div class="author-post-count"><?php _e('Posts:', 'frontier'); ?> <?php the_author_posts(); ?></div>
</div>
<div class="author-description">
<h4><?php the_author_meta('display_name'); ?></h4>
<a href="<?php esc_url( the_author_meta('user_url') ); ?>"><?php the_author_meta('user_url'); ?></a>
<div><?php echo get_the_author_meta('description'); ?></div>
</div>
</div>
</div>
<div class="author-latest-posts">
<h4 class="author-latest-posts-title"><?php _e('Latest Posts by the Author', 'frontier'); ?></h4>
<?php
$postsQuery = new WP_Query( array(
'posts_per_page' => 20,
'author' => get_the_author_meta( 'ID' ),
'orderby' => 'date',
'suppress_filters' => 0 )
);
if ( $postsQuery->have_posts() ) :
?>
<?php if(function_exists('wp_recall')&&is_author()) wp_recall(); ?>
<ol class="author-latest-posts-list">
<?php while ( $postsQuery->have_posts() ) : $postsQuery->the_post(); ?>
<li><a href="<?php the_permalink(); ?>"><?php echo get_the_title() != '' ? get_the_title() : __('Untitled', 'frontier'); ?></a></li>
<?php endwhile; ?>
</ol>
<?php endif; wp_reset_postdata(); ?>
</div>
</div>
</div>
<?php
switch ( frontier_option('column_layout', 'col-cs') ) {
case 'col-sc' :
get_sidebar('left');
break;
case 'col-cs' :
get_sidebar('right');
break;
case 'col-ssc' :
case 'col-scs' :
case 'col-css' :
get_sidebar('left');
get_sidebar('right');
break;
}
?>
<?php get_footer(); ?>Подскажите пожалуйста , какие строчки нужно удалить ?
Fatal error: Uncaught Error: Call to undefined function ads_get_box() in /var/www/www-root/data/www/codeseller.ru/wp-content/themes/codeseller/includes/adv.php:15 Stack trace: #0 /var/www/www-root/data/www/codeseller.ru/wp-includes/class-wp-hook.php(310): add_adv_content_after_first_forum_post('pfm-single-post...', '/var/www/www-ro...') #1 /var/www/www-root/data/www/codeseller.ru/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array) #2 /var/www/www-root/data/www/codeseller.ru/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /var/www/www-root/data/www/codeseller.ru/wp-content/plugins/wp-recall/functions/files.php(57): do_action('rcl_include_tem...', 'pfm-single-post...', '/var/www/www-ro...') #4 /var/www/www-root/data/www/codeseller.ru/wp-content/plugins/wp-recall/add-on/prime-forum/functions-templates.php(117): rcl_include_template('pfm-single-post...', '/var/www/www-ro...') #5 /var/www/www-root/data/www/codeseller.ru/wp-content/plugins/wp-recall/add-on/prime-forum/themes/prime-first/templates/pfm in /var/www/www-root/data/www/codeseller.ru/wp-content/themes/codeseller/includes/adv.php on line 15