我的wordpress有问题blog here. 一切似乎都很好,但问题是在每篇帖子后,我都会添加作者信息,如下图所示
但是当我点击
按Murali Prashanth超链接查看所有帖子
它正在将我重定向到此URLhttp://muraliprashanth.me/author/Murali%20Prashanth/ 我不知道在哪里创建作者简介页面,或者我的wordpress主题是否支持作者简介页面。请建议我在过去3个月内努力解决此问题,非常感谢您的帮助。
提前谢谢。
我的wordpress有问题blog here. 一切似乎都很好,但问题是在每篇帖子后,我都会添加作者信息,如下图所示
但是当我点击
按Murali Prashanth超链接查看所有帖子
它正在将我重定向到此URLhttp://muraliprashanth.me/author/Murali%20Prashanth/ 我不知道在哪里创建作者简介页面,或者我的wordpress主题是否支持作者简介页面。请建议我在过去3个月内努力解决此问题,非常感谢您的帮助。
提前谢谢。
您如何创建作者的链接?
如果您输入模板:
<?php the_author_posts_link(); ?>
它将写下作者的名字和当前帖子的链接。要修改作者页面的模板,wordpress将在主题文件夹中搜索以下文件(按以下顺序):
作者{nicename}。php作者{id}。php作者。php存档。php索引。php
看起来你没有作者。php文件。
确保您有作者。php文件。
示例作者。PHP代码
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<!-- This sets the $curauth variable -->
<?php
$curauth = (isset($_GET[\'author_name\'])) ? get_user_by(\'slug\', $author_name) : get_userdata(intval($author));
?>
<h2>About: <?php echo $curauth->nickname; ?></h2>
<dl>
<dt>Website</dt>
<dd><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></dd>
<dt>Profile</dt>
<dd><?php echo $curauth->user_description; ?></dd>
</dl>
<h2>Posts by <?php echo $curauth->nickname; ?>:</h2>
<ul>
<!-- The Loop -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
<?php the_title(); ?></a>,
<?php the_time(\'d M Y\'); ?> in <?php the_category(\'&\');?>
</li>
<?php endwhile; else: ?>
<p><?php _e(\'No posts by this author.\'); ?></p>
<?php endif; ?>
<!-- End Loop -->
</ul>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
我有WordPress地址http://www.example.com/blog/, 现在我希望它可以作为http://www.example.com/ 无需将wordpress移动到根目录。我已经做出了适当的决定。htaccess更改。wp配置。php:define(\"WP_HOME\", \"http://{$_SERVER[\"HTTP_HOST\"]}\"); define(\'WP_CONTENT_DIR\', $_SERVER[\"DOCUMENT_ROOT\"] . \"/blog