francisknightley wrote: I did this and it works fine except for the first post (post1) of all: it doesn't display the next one (post2) which is strange.
Something wrong in your template code. Zip and I can test it.
francisknightley wrote: I did this and it works fine except for the first post (post1) of all: it doesn't display the next one (post2) which is strange.
francisknightley wrote: @trendoman it's happening between lines 242 and 309
<cms:set cur_page=k_page_name 'global' />
<cms:set prev_page='' 'global' />
<cms:set next_page='' 'global' />
<cms:set found_cur_page='0' 'global' />
<cms:pages skip_custom_fields='1' orderby='weight' order='asc'>
<cms:if found_cur_page=='0' >
<cms:if k_page_name==cur_page >
<cms:set found_cur_page='1' 'global' />
<cms:else />
<cms:set prev_page=k_page_link 'global' />
</cms:if>
<cms:else />
<cms:if next_page==''>
<cms:set next_page=k_page_link 'global' />
</cms:if>
</cms:if>
</cms:pages>
<cms:if prev_page>
<cms:pages limit='1'>
<div class="col-lg-6 col-sm-6">
<a href="<cms:show prev_page />" class="portfolio-box">
<img src="<cms:show thumb />" class="img-responsive" alt="">
<div class="portfolio-box-caption">
<div class="portfolio-box-caption-content">
<h5>Previous Project</h5>
<h4><cms:show en_title /></h4>
</div>
</div>
</a>
</div>
</cms:pages>
</cms:if>
<cms:if next_page>
<cms:pages limit='1'>
<div class="col-lg-6 col-sm-6">
<a href="<cms:show next_page />" class="portfolio-box">
<img src="<cms:show thumb />" class="img-responsive" alt="">
<div class="portfolio-box-caption">
<div class="portfolio-box-caption-content">
<h5>Next Project</h5>
<h4><cms:show en_title /></h4>
</div>
</div>
</a>
</div>
</cms:pages>
</cms:if>
<cms:set prev_page=k_page_link 'global' /> --> <cms:set prev_page=k_page_id 'global' />
<cms:if prev_page>
<cms:pages limit='1'> --> <cms:pages limit='1' id=prev_page>
<div class="col-lg-6 col-sm-6">
<a href="<cms:show prev_page />" class="portfolio-box"> --> <a href="<cms:show k_page_link />" class="portfolio-box">