Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.7K
~842 People Reached
About Me
beetlejuice beetlejuice beetlejuice!
Favorite Forums
Web Development
x
2
Favorite Tags
php
x
2
{ global $wpdb; $category_id = $wpdb->get_var("SELECT term_id FROM $wpdb->terms WHERE name = '" . addslashes($category_name) . "'"); return $category_id; } function shorten($string, $wordsreturned) { $retval = $string; $array = explode(" ", $string); if (count($array)<=$wordsreturned){ $retval = $string; } else { array_splice($array, $wordsreturned); $retval = implode(" ", $array); } return $retval; … |