Keyword

How to hide the first 5 articles in k2 content module

More
13 years 5 months ago #96072 by hiwa
hi my dear friends , please help me:

Is it possible to have k2 content module start displaying from the 5nd latest article, rather than the first one.?

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #96073 by Terry Britton
Replied by Terry Britton on topic How to hide the first 5 articles in k2 content module
In the template file for the module (default.php) do the following.

 

1. Add the following near the top.

<?php $articleCount = 0; ?>

2. Right after the first foreach add the following.

<?php

$articleCount = $articleCount +1;

if ($articleCount > 5) {

?>

3. Right before the last endforeach add the following.

<?php } ?>

 

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #96074 by hiwa
hi dear terry

thanks very mcuh for your instructions

its great , Your Are BEST.

goodluck

 

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum