wordpress 2.0 beta 혹은 rc1 설치시 K2테마의 theloop.php에서 오류가 일어나더군요…
해결법이 포럼에 나와서 정리해 둡니다.
theloop.php파일의
1 |
<?php /* If there is more than one author, show author's name */ $count_users = $wpdb-]get_var("SELECT COUNT(*) FROM $wpdb->users WHERE user_level > 1"); if ($count_users > 1) { ?> by <?php the_author_posts_link(); } ?> |
부분을
1 |
<?php /* If there is more than one author, show author's name */ $count_users=$wpdb-]get_var("SELECT COUNT(*) FROM $wpdb->usermeta WHERE meta_value REGEXP 'contributor|author|editor|administrator'");if($count_users>1){ ?> by <?php the_author_posts_link();} ?> |
로 바꿉니다. 75라인, 110라인부근 두군데 모두 바꿔줘야 합니다.
출처 :: K2 테마 포럼