2012-12-22 31 views
-1

我自己在這裏的WordPress博客的一個問題(http://muraliprashanth.me)似乎一切都工作正常,但問題是每個職位我正在追加作者信息,如下面WordPress的作者的個人資料頁URL

Murali Prashanth

後的圖像

但是當我通過穆拉利普拉香特超鏈接上

點擊查看所有文章

它將我重定向到此網址http://muraliprashanth.me/author/Murali%20Prashanth/ 我不知道在哪裏創建作者個人資料頁面,或者我的WordPress主題是否支持作者個人資料頁面請建議我我努力從過去3個月解決此問題,幫助是非常感激。

在此先感謝。

+0

它重定向到作者的帖子頁面,在這種情況下,它不存在。給出404錯誤。 WP slug就像'murali-prashanth',沒有空格,所以這個鏈接有問題。你在哪裏得到它?無論如何,請確保您的所有帖子都是作者。關於個人資料,只需使用它創建一個模板頁面。 –

+0

有一個專門用於Wordpress的Stack Exchange站點:http://wordpress.stackexchange.com/ –

回答

1

這兩個鏈接有關於作者配置文件鏈接以及模板信息的詳細信息。看一看,看看你是否能夠解決它。

http://codex.wordpress.org/Author_Templates http://codex.wordpress.org/Function_Reference/the_author_url

+0

Thnx arun我會檢查這個 –

+0

,但是當我訪問直接的author.php文件時,它會拋出一個錯誤http://muraliprashanth.me /wp-content/themes/admired/author.php –

+0

第8行有一些錯誤。請看這是什麼或粘貼它,以便我可以看到它 –

0

試試吧。我已經給我的author.php文件使用。

<?php 
/** 
* The template for displaying Author Archive pages. 
* 
* @package WordPress 
*/ 

get_header(); ?> 

<?php 
    if (have_posts()) 
     the_post(); 
?> 

       <h1><?php printf(__('Author Archives: %s'), "<span class='vcard'><a class='url fn n' href='" . get_author_posts_url(get_the_author_meta('ID')) . "' title='" . esc_attr(get_the_author()) . "' rel='me'>" . get_the_author() . "</a></span>"); ?></h1> 

<?php 
// If a user has filled out their description, show a bio on their entries. 
if (get_the_author_meta('description')) : ?> 
       <?php echo get_avatar(get_the_author_meta('user_email'), apply_filters('avatar_size', 60)); ?> 
       <h2><?php printf(__('About %s', 'theme'), get_the_author()); ?></h2> 
       <?php the_author_meta('description'); ?> 
<?php endif; ?> 

<?php 
    rewind_posts(); 

    get_template_part('loop', 'author'); 
?> 

<?php get_sidebar(); ?> 
<?php get_footer(); ?>