<link rel=”stylesheet” href=”iphone.css” media=”only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2)” /> OR <link media=”handheld, screen and (max-device-width:…
Limiting or Truncating strings using PHP Truncation at word breaks Truncation at sentence breaks http://www.the-art-of-web.com/php/truncate/
$str = get_the_content(); $charset = ‘utf-8’; $len = iconv_strlen($content, $charset); $max_len = 97; $max_cut_len = 10; if ($len > $max_len)…