开发者

Display next/previous post title

I want to display the next/previous post title as well as the image currently working

HTML

<div class="cover boxcaption">  
                <?php $nextImg = get_post_meta($nextPost->ID, "project-thumb", $single = true); ?>
                <a href="<?php echo $nextURL; ?>" class="view-project"><?php开发者_StackOverflow中文版 echo str_replace('src', 'width="128px" height="78px" src', $nextImg); ?>View Project</a>
            </div>


if i understood you i think its just like a NEXT and PREV paging functionality. you just need to display next post title on NEXT button and previous post title on PREV button. i dont think its bit of hard task..

Thanks.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜