Захожу на страницу с записью и смотрю на автора. Думаю, дай как перейду на его страницу. Тыкаюсь в аватарку и бестолку. В итоге вижу что слеваесть фраза "ник: имя автора" . Иногда промахивался мимо ссылки, нажимая на ник само слово ник. Покатался в коде предлагаю сделать такие изменения небольшие:
//Выводим инфу об авторе записи в конце поста
function author_info_recall($content){
global $post;
global $wpdb;
if($post->post_type!='page'&&is_single()&&$post->post_type!='products'){
$author = $post->post_author;
$out = "<div class='block_author'>
<a href='".get_author_posts_url($author)."'>
<div style='float:left;margin-right:10px;'>".get_avatar($author,60)."</div>
<div></a>
<h3 style='clear: none;'>Информация об авторе</h3>
<p><b></b> <a href='".get_author_posts_url($author)."'>Ник: ".get_the_author_meta( 'display_name', $author )."</a>
<b> Общий рейтинг:</b> ".get_all_rayt_user($author)."</p>
</div>
</div>";
return $content.$out;
} else {
return $content;
}
}
В итоге Аватарка становится ссылкой на автора и само слово "ник" я занес в ссылку. Это увеличит комфортность пользования плагина.) спасибо Андрею за столь чудесный плагин!
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