Osclass forums
Support forums => General help => 3.7.x => Topic started by: d3sign3r on January 29, 2018, 01:49:42 pm
-
Hi, i m using this code to display the items of a specific user.
if( osc_count_custom_items() == 0) { ?>
<div class="empty">NO ITEMS </div>
<?php } else { ?>
//MY CODE HERE
bla bla bla
This way i can display the items that this user has posted on a custom page i built.
My problem is that now it displays all the items that this user has posted. How can i limit the number of items showing lets say to 3?
I tried to use this code...
<?php if(osc_count_custom_items() >=3 ) break; ?>
but doesnt work :( Any solution ?