我有一个自定义帖子类型,称为投资组合。我需要一个没有插件的上一个/下一个链接。有人有解决办法吗?
示例帖子:http : //themeforward.com/demo2/archives/portfolio/boat
<?php get_header(); ?>
<!-- Begin wrap -->
<div class="clear">
<div id="full_container">
<div id="content2">
<div id="content">
<!-- Grab posts -->
<?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
<!-- Post title -->
<h1>
<?php the_title(); ?>
</h1>
<!-- The post -->
<?php the_content(); ?>
<!-- Tags -->
<h3 class="tags">
<?php the_tags('Tags ',' / ','<br />'); ?>
</h3>
<!-- End wrap -->
</div>
<!-- Next/Previous Posts -->
<div class="mp_archive2">
<div id="more_posts">
<div class="oe">
<?php previous_post_link('%link', '« Previous post', TRUE); ?>
</div>
<div class="re">
<?php next_post_link('%link', 'Next post »', TRUE); ?>
</div>
</div>
</div>
<?php endwhile; else: ?>
<p>No matching entries found.</p>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>
3
为什么讨厌插件?
—
chrisguitarguy 2011年
因为如果它是插件,则不会内置在主题中。
—
AndrettiMilas
@Lucas Wynne如果要内置它,请将一些插件代码复制/粘贴到您的themes.php文件中。
—
kaiser
@kaiser当然会假设您遵守许可和IP条件,如果要制作要出售的主题,这并不容易。
—
Phill Healey