0
我正在构建一个WordPress站点并在子页面上创建了一个博客页面。除了我无法获得上一篇/下一篇文章的工作外,一切都很好。我无法让上一页/下一篇文章链接在wordpress站点上工作
我对PHP很新,所以可能会离开这里,但已经得到了一切工作,只是无法弄清楚这一点。
感谢您的帮助!
这里是PHP:
get_header(); ?>
<div id="background">
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="blogheader">
<div id="logo"><img src="http://lynchbryan.com/clients/wp-content/themes/journalist/images/Wordmark-LBC_onwhite.s.png"></div>
</div>
<div class="main">
<?php the_content(); ?>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php
$catquery = new WP_Query('cat=4&posts_per_page=1');
while($catquery->have_posts()) : $catquery->the_post();
?>
<div id="blog">
<h3><?php the_title(); ?> | <span class="date"><?php the_time('F jS Y') ?></span></h3>
<?php the_content(); ?>
</div>
<div class="navigation"><p><?php posts_nav_link(); ?></p></div>
<?php endwhile; ?>
</div>
</div>
<?php get_footer(); ?>