LinkedIn Recommendations Slider

Q: I’m trying to exclude on a slider, recommedations that have less than 300 characters… so far my efforts have turned up empty… Here is what I have… www.cgicrew.com/about

The script just makes the recommendations with less than 300 characters return empty… I want them skipped over or gone though.

<?php if (strlen($recommendation->recommendationText) > 300): ?> <?php echo nl2br(wp_linkedin_excerpt($recommendation->recommendationText, $length)); ?><?php else: ?><?php endif; ?>
<?php if (isset($recommendation->recommender->publicProfileUrl)): ?> <?php echo $recommendation->recommender->firstName; ?> <?php echo $recommendation->recommender->lastName; ?> <?php else: ?> <?php _e('Anonymous', 'wp-linkedin'); ?> <?php endif; ?>

You have this:
[php] if (strlen($recommendation->recommendationText) > 300):[/php]

I think you mean

[php] if (strlen($recommendation->recommendationText) > 300) {

}
[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service