Hi,
I am using EE v2.5.3,on news overview page I have to show group of 4 news items each with pagination.It works fine when I fetch all news items but my requirement is to filter out news items based on publish date and archive date.I am using if condition after the channel entry expression like this
{exp:channel:entries channel="nieuws" orderby="date" sort="desc" paginate="bottom" status="nl|{exp:transcribe:language_abbreviation}" dynamic="no" limit="4"}
{if current_time >= news_publish_date AND news_archive_date > current_time}
<article>
<div class="container">
{nieuws_images limit="1" sort="asc"}
{exp:imgsizer:size src="{nieuws_image}" width="97" height="97"}
<div class="img_container">
{sized}
</div>
{/exp:imgsizer:size}
{/nieuws_images}
<div class="content_container">
<h1>{title}</h1>
{exp:trunchtml chars="400" exact="yes"}
{nieuws_short_description}
{/exp:trunchtml}
{if status == "nl"}
<a href="http://{path=nieuws/artikel/{url_title}}class=full_block_click">Lees hier verder ></a>
{if:elseif status == "en"}
<a href="http://{path=news/article/{url_title}-}">Read More >></a>
<a href="http://{path=news/article/{url_title}-}class=full_block_click"> </a>
{/if}
</div>
</div>
</article>
{/if}
{paginate}
<div class="pagination">
{pagination_links}
</div>
{/paginate}
{/exp:channel:entries}
and due to if condition few news items are omitted,now pagination is showing 2 items on first page,4 items on second ,1 item on third page and so on.basically the whole pagination is messed up.
I would appreciate if anyone can help me out
Thanks