我创建了一个wordpress网站,我希望它有一个博客页面,使用wordpress功能,可以轻松获取博客文章.我已经设置了博客页面.BLOG POST 1的一个例子是:
BLOG POST 1
*Posted January 17, 2012*
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam...Continue reading ?
Run Code Online (Sandbox Code Playgroud)
当我点击继续阅读时,它转到了baseUrl/slug(已发布的博客),但显示的是我的主页...; 网址是正确的,但显示不是.它应显示所选的博客帖子,但它会显示我的主页.我需要在我的前端(CMS界面)或我的模板文件或我的博客上配置什么?
您尚未提供创建链接的代码.所以我不能给你准确的解决方案.但您可以尝试以下代码进行修改.它可能会帮助你
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>" class="more">Read full article</a>
Run Code Online (Sandbox Code Playgroud)
请记住,此代码在循环中.
| 归档时间: |
|
| 查看次数: |
81 次 |
| 最近记录: |