开发者

Display next/previous post title

开发者 https://www.devze.com 2023-03-22 23:57 出处:网络
I want to display the next/previous post title as well as the image currently working HTML <div class=\"cover boxcaption\">

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

精彩评论

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