Hi all,
Do the following steps
#1: Copy afp_shortcode()
#2: Paste it with another name and just change
$items = $wpdb->get_results(‘SELECT * FROM ‘ . $wpdb->prefix . ‘afp_items ORDER BY ‘ . $orderby .$lim);
. and initialize $lim with a value like 10 in afp.php page.
#3: Then make another shortcode.
#4: User the new shortcode where you want to show few items like 10. and the original shortcode to show all items.
Thanks and enjoy.