CINXE.COM

Excerpt or Content Word Limit in WordPress: Redux | bavotasan.com

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml" dir="ltr" lang="en-US"> <head><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("https://web.archive.org/web"); __wm.wombat("http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/","20101120001120","https://web.archive.org/","web","/_static/", "1290211880"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta name="googlebot" content="index,archive,follow,noodp"/> <meta name="robots" content="all,index,follow"/> <meta name="msnbot" content="all,index,follow"/> <meta name="description" content="This is just a revamp of a function I wrote a while back to add the ability to limit the number of words displayed when you call the excerpt or content. As..."/> <meta name="keywords" content="ability,Array,code,content,Content Word,count,excerpt,Function,img,limit,Lt,number,pop,Preg,Programmers,programming,return,the_excerpt,way,while,Word Limit,WordPress,WordPress hack,"/> <title>Excerpt or Content Word Limit in WordPress: Redux | bavotasan.com</title> <link rel="stylesheet" href="https://web.archive.org/web/20101120001120cs_/http://bavotasan.com/wp-content/themes/bavotasan-2010/style.css?ver=1.0.8" type="text/css" media="screen"/> <link rel="shortcut icon" href="https://web.archive.org/web/20101120001120im_/http://bavotasan.com/favicon.ico"/> <link rel="pingback" href="http://bavotasan.com/xmlrpc.php"/> <link rel="alternate" type="application/rss+xml" title="bavotasan.com 禄 Feed" href="https://web.archive.org/web/20101120001120/http://bavotasan.com/feed/"/> <link rel="alternate" type="application/rss+xml" title="bavotasan.com 禄 Comments Feed" href="https://web.archive.org/web/20101120001120/http://bavotasan.com/comments/feed/"/> <link rel="alternate" type="application/rss+xml" title="bavotasan.com 禄 Excerpt or Content Word Limit in WordPress: Redux Comments Feed" href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/feed/"/> <script type="text/javascript" src="https://web.archive.org/web/20101120001120js_/http://bavotasan.com/wp-includes/js/jquery/jquery.js?ver=1.4.2"></script> <link rel="index" title="bavotasan.com" href="http://bavotasan.com/"/> <link rel="start" title="Removing Images from a WordPress Post: Redux" href="http://bavotasan.com/tutorials/removing-images-from-a-wordpress-post/"/> <link rel="prev" title="Removing Images from a WordPress Post: Redux" href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/removing-images-from-a-wordpress-post/"/> <link rel="next" title="Excerpt and Content Word Limit WordPress Plugin" href="https://web.archive.org/web/20101120001120/http://bavotasan.com/downloads/excerpt-and-content-word-limit-wordpress-plugin/"/> <link rel="canonical" href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/"/> <link rel="shortlink" href="https://web.archive.org/web/20101120001120/http://bit.ly/90JpsA"/> <script type="text/javascript" src="https://web.archive.org/web/20101120001120js_/http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script> <meta property="fb:page_id" content="137456822940271"/> <meta property="fb:admins" content="586505548"/> <meta property="og:site_name" content="bavotasan.com"/> <meta property="og:title" content="Excerpt or Content Word Limit in WordPress: Redux"/> <meta property="og:description" content="This is just a revamp of a function I wrote a while back to add the ability to limit the number of words displayed when you call the excerpt or content. As it stands, the max number of words for the excerpt is 55. There is a new function with WP 2.9 to increase this [...]"/> <meta property="og:type" content="article"/> <meta property="og:image" content="https://web.archive.org/web/20101120001120im_/http://bavotasan.com/wp-content/uploads/2009/02/endexcerpt.jpg"/> </head> <body class="single single-post postid-269"> <div id="bodywrap"> <!-- BuySellAds.com Ad Code --> <script type="text/javascript"> (function(){ var bsa = document.createElement('script'); bsa.type = 'text/javascript'; bsa.async = true; bsa.src = '//web.archive.org/web/20101120001120/http://s3.buysellads.com/ac/bsa.js'; (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa); })(); </script> <!-- END BuySellAds.com Ad Code --> <!-- begin header --> <div id="header"> <div id="topmenu" class="menu-top-menu-container"><ul id="menu-top-menu" class="menu"><li id="menu-item-2254" class="menu-item menu-item-type-custom menu-item-2254"><a href="https://web.archive.org/web/20101120001120/http://themes.bavotasan.com/">Themes by bavotasan.com</a></li> <li id="menu-item-2255" class="menu-item menu-item-type-custom menu-item-2255"><a href="https://web.archive.org/web/20101120001120/http://themes.bavotasan.com/support/">Support Forum</a></li> <li id="menu-item-2259" class="menu-item menu-item-type-custom menu-item-2259"><a href="https://web.archive.org/web/20101120001120/http://themes.bavotasan.com/affiliates">Affiliates</a></li> <li id="menu-item-2256" class="menu-item menu-item-type-post_type menu-item-2256"><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/about/">About</a></li> <li id="menu-item-2257" class="menu-item menu-item-type-post_type menu-item-2257"><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/services/">Services</a></li> <li id="menu-item-2258" class="menu-item menu-item-type-post_type menu-item-2258"><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/contact/">Contact</a></li> </ul></div> <div id="title"> <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/"> <img src="https://web.archive.org/web/20101120001120im_/http://bavotasan.com/wp-content/themes/bavotasan-2010/images/bavotasan.png" alt="bavotasan.com" width="400" height="70"/> <span id="desc"></span></a> </div> <div id="follow"> <span></span> <a href="https://web.archive.org/web/20101120001120/http://twitter.com/bavotasan" class="twitter"></a> <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/feed/" class="rss"></a> </div> <div id="navigation" class="menu-main-menu-container"> <ul id="menu-main-menu" class="menu"> <li id="menu-item-2264"><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/"><span></span>Home</a></li> <li id="menu-item-2266"><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/category/articles/"><span></span>Articles</a></li> <li id="menu-item-2265" class="current-menu-item"><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/category/tutorials/"><span></span>Tutorials</a></li> <li id="menu-item-2267"><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/category/downloads/"><span></span>Downloads</a></li> </ul> </div> </div> <!-- end header --> <div id="mainwrapper"> <div id="leftcontent"> <div class="posttop"> <div class="thedate"><div class="month">Feb</div><div class="day">16</div><div class="year">2009</div></div> <h1>Excerpt or Content Word Limit in WordPress: Redux</h1> <br class="clear"/> <p>This is just a revamp of a function I wrote a while back to add the ability to limit the number of words displayed when you call the excerpt or content. As it stands, the max number of words for the excerpt is 55. There is a new function with WP 2.9 to increase this number. Check out <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/?p=1393">Quick &#038; Easy Excerpt Mods Coming in WordPress 2.9</a> for more on that subject.<br/> <span id="more-269"></span><br/> Add the following code to your functions.php file.</p> <div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td class="line_numbers"><pre>1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 </pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> excerpt<span style="color: #009900;">&#40;</span><span style="color: #000088;">$limit</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$excerpt</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> get_the_excerpt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$limit</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$excerpt</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;=</span><span style="color: #000088;">$limit</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #990000;">array_pop</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$excerpt</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$excerpt</span> <span style="color: #339933;">=</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$excerpt</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'...'</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$excerpt</span> <span style="color: #339933;">=</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$excerpt</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000088;">$excerpt</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'`\[[^\]]*\]`'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span><span style="color: #000088;">$excerpt</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">return</span> <span style="color: #000088;">$excerpt</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> &nbsp; <span style="color: #000000; font-weight: bold;">function</span> content<span style="color: #009900;">&#40;</span><span style="color: #000088;">$limit</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> get_the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$limit</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;=</span><span style="color: #000088;">$limit</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #990000;">array_pop</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'...'</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/\[.+\]/'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> apply_filters<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_content'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">']]&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">']]&amp;gt;'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">return</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span></pre></td></tr></table></div> <p>Now, instead of using the_content() or the_excerpt in your loop, use excerpt($limit) or content($limit). </p> <p>If you want to limit your excerpt to 25 words the code would look like this:</p> <div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> excerpt<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">25</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></td></tr></table></div> <p>I also created a plugin for this that you can download at <a href="https://web.archive.org/web/20101120001120/http://wordpress.org/extend/plugins/content-and-excerpt-word-limit/">http://wordpress.org/extend/plugins/content-and-excerpt-word-limit/</a>.</p> <div class="buttonbox"> </div> </div> <div class="post"> <div class="socialleft">If you liked this, please share it.</div> <ul class="addtoany_list"> <li><a href="https://web.archive.org/web/20101120001120/http://twitter.com/share?url=http%3A%2F%2Fbit.ly%2F90JpsA&amp;counturl=http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/" class="twitter-share-button" data-count="vertical" data-via="bavotasan">Tweet</a><script type="text/javascript" src="https://web.archive.org/web/20101120001120js_/http://platform.twitter.com/widgets.js"></script></li> <li><a href="https://web.archive.org/web/20101120001120/http://www.facebook.com/sharer.php?u=http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/&amp;t=Excerpt or Content Word Limit in WordPress: Redux" title="Click to send this page to Facebook!" target="_blank" rel="nofollow" class="facebook-icon"></a></li> <li><a href="https://web.archive.org/web/20101120001120/http://digg.com/submit?phase=2&amp;url=http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/&amp;title=Excerpt or Content Word Limit in WordPress: Redux&amp;bodytext=This is just a revamp of a function I wrote a while back to add the ability to limit the number of words displayed when you call the excerpt or content. As it stands, the max number of words for the excerpt is 55. There is a new function with WP 2.9 to increase this [...]" title="Digg" rel="nofollow" target="_blank" class="digg-icon"></a></li> <li><a href="https://web.archive.org/web/20101120001120/http://www.delicious.com/save" onclick="window.open('https://web.archive.org/web/20101120001120/http://www.delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent('https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/')+'&amp;title='+encodeURIComponent('Excerpt or Content Word Limit in WordPress: Redux'),'delicious', 'toolbar=no,width=550,height=550'); return false;" class="delicious-icon"></a></li> <li><a href="https://web.archive.org/web/20101120001120/http://www.stumbleupon.com/submit?url=http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/&amp;title=Excerpt or Content Word Limit in WordPress: Redux" title="StumbleUpon" rel="nofollow" target="_blank" class="stumbleupon-icon"></a></li> <li><iframe src="https://web.archive.org/web/20101120001120if_/http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fbavotasan.com%2Ftutorials%2Flimiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress%2F&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowtransparency="true"></iframe></li> </ul> </div> <div class="post"> <p class="tags">Tags: <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/ability/" rel="tag">ability</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/array/" rel="tag">Array</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/code/" rel="tag">code</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/content/" rel="tag">content</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/content-word/" rel="tag">Content Word</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/count/" rel="tag">count</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/excerpt/" rel="tag">excerpt</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/function/" rel="tag">Function</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/img/" rel="tag">img</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/limit/" rel="tag">limit</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/lt/" rel="tag">Lt</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/number/" rel="tag">number</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/pop/" rel="tag">pop</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/preg/" rel="tag">Preg</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/programmers/" rel="tag">Programmers</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/programming/" rel="tag">programming</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/return/" rel="tag">return</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/the_excerpt/" rel="tag">the_excerpt</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/way/" rel="tag">way</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/while/" rel="tag">while</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/word-limit/" rel="tag">Word Limit</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/wordpress/" rel="tag">WordPress</a>, <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tag/wordpress-hack/" rel="tag">WordPress hack</a></p> <p class="tags">Short URL: <a href="https://web.archive.org/web/20101120001120/http://bit.ly/90JpsA" title="Excerpt or Content Word Limit in WordPress: Redux">http://bit.ly/90JpsA</a></p> </div> <div class="post"> <div id="crp_related"> <h3>Similar Posts</h3> <ul> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/articles/magazine-premium-is-out/" rel="bookmark" title="Permanent Link to Magazine Premium v1.1.5 is Out!">Magazine Premium v1.1.5 is Out!</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/articles/a-new-look-for-themes-by-bavotasan-com/" rel="bookmark" title="Permanent Link to A New Look for Themes by bavotasan.com">A New Look for Themes by bavotasan.com</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/meta-descriptions-wordpress/" rel="bookmark" title="Permanent Link to Meta Descriptions for WordPress">Meta Descriptions for WordPress</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/adding-tweet-button-wordpress/" rel="bookmark" title="Permanent Link to Adding a Tweet Button to WordPress">Adding a Tweet Button to WordPress</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/developing-themes-for-wordpress-options/" rel="bookmark" title="Permanent Link to Developing Themes for WordPress: Part 4">Developing Themes for WordPress: Part 4</a></li> </ul> </div> <a href="https://web.archive.org/web/20101120001120/http://www.netfirms.com/web-hosting/web-hosting-business/?a_aid=4c8bb52b19602&amp;a_bid=8f049e07" target="_top" style="float:right;"><img src="https://web.archive.org/web/20101120001120im_/http://www.webhostrevenue.com/accounts/default1/banners/300x250-us.gif" alt="Netfirms Business Hosting Plan" title="Netfirms Business Hosting Plan" width="250" height="208"/></a><img style="border:0" src="https://web.archive.org/web/20101120001120im_/http://www.webhostrevenue.com/scripts/imp.php?a_aid=4c8bb52b19602&amp;a_bid=8f049e07" width="1" height="1" alt=""/> </div> <div class="post"> <a href="#comment_list"></a> <div id="comments"> <h3 id="comments-title">Discussion <small> 72 Comments</small> </h3> <div class="navigation"> <div class="fl"></div> <div class="fr"><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/comment-page-2/#comments">Newer Comments &rarr;</a></div> </div> <ol class="commentlist"> <li class="comment even thread-even depth-1" id="li-comment-589"> <div id="comment-589"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/df5e040a0473a1286109e543bf99c814?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname">Thassager</span> <span class="commentdate"> on March 8, 2009 at 12:55 pm</span> </div> <div class="comment-text"> <p>Hi,<br/> Magazine Basic a very nice template, but I&#8217;d like to remove the excerpt/word limit funktion, but I&#8217;m not sure how to do this.<br/> I&#8217;d like to be able to show the full post rather than the excerpt. Is this possible? And secondly &#8211; I&#8217;m not too familiar with coding, so would it be possible to get info on as to what I should change.<br/> Thanks!</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=589#respond" onclick="return addComment.moveForm(&quot;comment-589&quot;, &quot;589&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> <ul class="children"> <li class="comment byuser bypostauthor odd alt depth-2" id="li-comment-604"> <div id="comment-604"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/ba043b2af6a355787f1b6fd1b1ea3eda?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://tinkerpriestmedia.com/" rel="external " class="url">c.bavota</a></span> <span class="commentdate"> on March 9, 2009 at 5:22 pm</span> </div> <div class="comment-text"> <p>Hello Thassager,</p> <p>In the newest version of the theme (2.3), just go to index.php and look for theme_excerpt() and getImage(). There should be three instances. Delete getImage() and replace theme_excerpt() with the_content() and that should do it.</p> </div> </div> </li> </ul> </li> <li class="comment even thread-odd thread-alt depth-1" id="li-comment-1619"> <div id="comment-1619"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://0.gravatar.com/avatar/0287679ff5005c89b7737ca2d7405e40?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://www.bare.bz/" rel="external " class="url">Chris</a></span> <span class="commentdate"> on April 8, 2009 at 9:31 am</span> </div> <div class="comment-text"> <p>Ah very good, was looking all over how to do this. Can a link to the content in question be included ?</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=1619#respond" onclick="return addComment.moveForm(&quot;comment-1619&quot;, &quot;1619&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> </li> <li class="comment odd alt thread-even depth-1" id="li-comment-1676"> <div id="comment-1676"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://0.gravatar.com/avatar/47cd2e69bec0bd0b7afd44ca24f02917?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname">Peter</span> <span class="commentdate"> on April 9, 2009 at 11:06 pm</span> </div> <div class="comment-text"> <p>Hi, is there anyway to increase the limit higher than 55?</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=1676#respond" onclick="return addComment.moveForm(&quot;comment-1676&quot;, &quot;1676&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> <ul class="children"> <li class="comment even depth-2" id="li-comment-2239"> <div id="comment-2239"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://0.gravatar.com/avatar/841e3e3bb1e83f7d05c80ccdb2618c52?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://www.100and8.com/" rel="external " class="url">Shane</a></span> <span class="commentdate"> on May 6, 2009 at 7:44 pm</span> </div> <div class="comment-text"> <p>I&#8217;m also curious if there is a way to increase the limit. Also, is it possible to include the entire post for the &#8220;Latest Story&#8221; and put a limit on the older posts?</p> </div> </div> </li> <li class="comment odd alt depth-2" id="li-comment-2986"> <div id="comment-2986"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/57b3a9fcff9db18e4e4585923ef130ef?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname">Jason</span> <span class="commentdate"> on June 20, 2009 at 2:13 am</span> </div> <div class="comment-text"> <p>First, thanks for a great theme &#8211; excellent job!</p> <p>I, too, am interested in increasing the excerpt limit from 55 to something a bit higher. I have gone through the php code, and made several changes to no avail (now backed out) in an attempt to raise the value. I have also tried replacing theme<em>excerpt() with the</em>content() in index.php as suggested above (to Thassager) just to remove the excerpts entirely (seems the underscore characters in this paragraph might be being filtered, FYI).</p> <p>I&#8217;m just wanting the entire post to appear when a category is selected from the menu without having to click twice. I&#8217;m running 2.3.3 at present. Should I stay with this version or update to 2.4.9 and try to make the changes to that instead?</p> <p>Any thoughts/help/guidance appreciated. Again, thanks.</p> <p>Regards,<br/> Jason</p> </div> </div> </li> </ul> </li> <li class="comment even thread-odd thread-alt depth-1" id="li-comment-2064"> <div id="comment-2064"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/f5a3649e6c6c6a9aee13d32b3d30e01b?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://www.get-involved.org/" rel="external " class="url">Andrew MacRae</a></span> <span class="commentdate"> on April 22, 2009 at 3:09 pm</span> </div> <div class="comment-text"> <p>Fantastic work on this, however, I have not got it to work yet. Could I get a little more advice as to where this needs to go in the functions.php theme file?</p> <p>Regards</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=2064#respond" onclick="return addComment.moveForm(&quot;comment-2064&quot;, &quot;2064&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> <ul class="children"> <li class="comment byuser bypostauthor odd alt depth-2" id="li-comment-2094"> <div id="comment-2094"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/ba043b2af6a355787f1b6fd1b1ea3eda?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://tinkerpriestmedia.com/" rel="external " class="url">c.bavota</a></span> <span class="commentdate"> on April 23, 2009 at 11:23 am</span> </div> <div class="comment-text"> <p>Place it anywhere between <code>&lt;?php</code> and <code>?&gt;</code>.</p> </div> </div> </li> </ul> </li> <li class="comment even thread-even depth-1" id="li-comment-2207"> <div id="comment-2207"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/1fa6e0152b61f4ddb410ce8d109757d3?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname">David</span> <span class="commentdate"> on May 1, 2009 at 11:17 am</span> </div> <div class="comment-text"> <p>You&#8217;re a genius! Brilliant plugin.</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=2207#respond" onclick="return addComment.moveForm(&quot;comment-2207&quot;, &quot;2207&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> </li> <li class="comment odd alt thread-odd thread-alt depth-1" id="li-comment-2382"> <div id="comment-2382"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/527878d219dce938a1e44591a157c4a6?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname">Christina</span> <span class="commentdate"> on May 22, 2009 at 12:13 pm</span> </div> <div class="comment-text"> <p>Very cool plugin! Just as cool as Magazine Columns. Unfortunately they seem not to work together. Is there a way to merge both functions? I would really appreciate your advice because these plugins combined would save my current project&#8230; Help! Pleeease!!!!</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=2382#respond" onclick="return addComment.moveForm(&quot;comment-2382&quot;, &quot;2382&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> </li> <li class="comment even thread-even depth-1" id="li-comment-2563"> <div id="comment-2563"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://0.gravatar.com/avatar/e6e847eaea075a403a78260d0ebc5813?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://www.udyr.com/" rel="external " class="url">Patrick</a></span> <span class="commentdate"> on June 1, 2009 at 4:14 pm</span> </div> <div class="comment-text"> <p>How do i also exclude the &lt; b &gt; (bold) tag from posts?</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=2563#respond" onclick="return addComment.moveForm(&quot;comment-2563&quot;, &quot;2563&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> </li> <li class="comment odd alt thread-odd thread-alt depth-1" id="li-comment-3210"> <div id="comment-3210"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://0.gravatar.com/avatar/ad3dc4a920ed4d2a9b6157e799bc67ae?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://www.brokencode.com/" rel="external " class="url">brokencode</a></span> <span class="commentdate"> on July 4, 2009 at 6:17 pm</span> </div> <div class="comment-text"> <p>that&#8217;s simple? thank you so much. Thought I need a plugin before. Wave the plugin now, it&#8217;s just need 17 lines <img src="https://web.archive.org/web/20101120001120im_/http://bavotasan.com/wp-includes/images/smilies/icon_biggrin.gif" alt=":D" class="wp-smiley"/> </p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=3210#respond" onclick="return addComment.moveForm(&quot;comment-3210&quot;, &quot;3210&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> </li> <li class="comment even thread-even depth-1" id="li-comment-3315"> <div id="comment-3315"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/113d15a9fd0682e2599a79cbeed91b1f?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://www.intuitivedesigns.net/" rel="external " class="url">Naomi Niles</a></span> <span class="commentdate"> on July 13, 2009 at 2:59 am</span> </div> <div class="comment-text"> <p>Nice! I tried the <a href="https://web.archive.org/web/20101120001120/http://codex.wordpress.org/Template_Tags/the_excerpt">method on the WordPress site</a> to shorten the excerpt and it didn&#8217;t work. I love how you can control each one individually this way too. Thanks!!</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=3315#respond" onclick="return addComment.moveForm(&quot;comment-3315&quot;, &quot;3315&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> <ul class="children"> <li class="comment odd alt depth-2" id="li-comment-3438"> <div id="comment-3438"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/18d8e903635c29bdc1dcc31f448bbb8d?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://www.intuitivedesigns.net/" rel="external " class="url">Naomi Niles</a></span> <span class="commentdate"> on July 23, 2009 at 5:38 pm</span> </div> <div class="comment-text"> <p>Argh, it was working until I updated to WP 2.8.2 . Anyone know of a way to work around that?</p> </div> </div> </li> <li class="comment byuser bypostauthor even depth-2" id="li-comment-3467"> <div id="comment-3467"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/ba043b2af6a355787f1b6fd1b1ea3eda?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://tinkerpriestmedia.com/" rel="external " class="url">c.bavota</a></span> <span class="commentdate"> on July 27, 2009 at 7:55 am</span> </div> <div class="comment-text"> <p>Hmm. I am using a version I have modified slightly on 2.8.x and it still works. Try this.</p> <div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> theme_excerpt<span style="color: #009900;">&#40;</span><span style="color: #000088;">$num</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">55</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$link</span> <span style="color: #339933;">=</span> get_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$limit</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$num</span><span style="color: #339933;">;</span> <span style="color: #000088;">$excerpt</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span>get_the_excerpt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$limit</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$excerpt</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;=</span><span style="color: #000088;">$limit</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #990000;">array_pop</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$excerpt</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$excerpt</span> <span style="color: #339933;">=</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$excerpt</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'...'</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$excerpt</span> <span style="color: #339933;">=</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$excerpt</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000088;">$excerpt</span> <span style="color: #339933;">=</span> apply_filters<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_content'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$excerpt</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$excerpt</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'`\[[^\]]*\]`'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span><span style="color: #000088;">$excerpt</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;p&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$excerpt</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/p&gt;'</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span></pre></div></td></tr></table></div> </div> </div> </li> </ul> </li> <li class="comment odd alt thread-odd thread-alt depth-1" id="li-comment-3495"> <div id="comment-3495"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/5fa6665d6b1cb987604e22aa13871574?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://folkspants.com/" rel="external " class="url">ross chapman</a></span> <span class="commentdate"> on July 28, 2009 at 6:24 pm</span> </div> <div class="comment-text"> <p>so anyway to keep formatting tags (ie <code>&lt;p&gt;&lt;/p&gt;</code>) in the new output? thanks for the advice. i&#8217;m using your plugin on 2.8.</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=3495#respond" onclick="return addComment.moveForm(&quot;comment-3495&quot;, &quot;3495&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> </li> <li class="comment even thread-even depth-1" id="li-comment-3796"> <div id="comment-3796"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://0.gravatar.com/avatar/0a0719e34ad670aaec2f438310cfbfc3?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname">sze jia</span> <span class="commentdate"> on August 12, 2009 at 1:31 pm</span> </div> <div class="comment-text"> <p>How do i limit the words in my content in WP 2.8.2? </p> <p>The plugin doesn&#8217;t seem to be working for me! <img src="https://web.archive.org/web/20101120001120im_/http://bavotasan.com/wp-includes/images/smilies/icon_sad.gif" alt=":(" class="wp-smiley"/> </p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=3796#respond" onclick="return addComment.moveForm(&quot;comment-3796&quot;, &quot;3796&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> </li> <li class="comment odd alt thread-odd thread-alt depth-1" id="li-comment-4066"> <div id="comment-4066"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/55267083cf9fec1da06170f8ef4b0853?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname">Baban</span> <span class="commentdate"> on August 29, 2009 at 3:58 pm</span> </div> <div class="comment-text"> <p>Sorry. Trying again. In WP 2.8.4, use </p> <p><strong>theme&#95;excerpt</strong> and not just <strong>excerpt</strong></p> <p>in the code <code>&lt;? php excerpt('25'); ?&gt;</code></p> <p>It worked for me.</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=4066#respond" onclick="return addComment.moveForm(&quot;comment-4066&quot;, &quot;4066&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> <ul class="children"> <li class="comment even depth-2" id="li-comment-5879"> <div id="comment-5879"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/14a0b06fbe38282014ded52f23562ac7?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname">Matt</span> <span class="commentdate"> on November 3, 2009 at 10:10 am</span> </div> <div class="comment-text"> <p>Remove the space between &lt;? and php</p> </div> </div> </li> </ul> </li> <li class="comment odd alt thread-even depth-1" id="li-comment-6574"> <div id="comment-6574"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://0.gravatar.com/avatar/2812ce44b0d18d561a42bc5b1ac60980?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://travisfarnes.com/" rel="external " class="url">Travis Farnes</a></span> <span class="commentdate"> on December 2, 2009 at 6:55 pm</span> </div> <div class="comment-text"> <p>I too would like to know how I can keep the paragraph formatting tags.</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=6574#respond" onclick="return addComment.moveForm(&quot;comment-6574&quot;, &quot;6574&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> <ul class="children"> <li class="comment even depth-2" id="li-comment-6667"> <div id="comment-6667"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://0.gravatar.com/avatar/282d2a0f1986986f912f2eb3d66ecee7?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://webtolerant.com/" rel="external " class="url">Amey</a></span> <span class="commentdate"> on December 8, 2009 at 6:12 am</span> </div> <div class="comment-text"> <p>Just ad around the</p> </div> </div> </li> <li class="comment odd alt depth-2" id="li-comment-6668"> <div id="comment-6668"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://0.gravatar.com/avatar/282d2a0f1986986f912f2eb3d66ecee7?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://webtolerant.com/" rel="external " class="url">Amey</a></span> <span class="commentdate"> on December 8, 2009 at 6:13 am</span> </div> <div class="comment-text"> <p>just had the paragraph tag around the code</p> </div> </div> </li> </ul> </li> <li class="comment even thread-odd thread-alt depth-1" id="li-comment-6883"> <div id="comment-6883"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/5fd42017656fe50a60ced98710d0dbd6?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://bmddesigns.com/" rel="external " class="url">BMD</a></span> <span class="commentdate"> on December 22, 2009 at 5:21 pm</span> </div> <div class="comment-text"> <p>Just would like to say after trying a bunch of codes for the functions file and none of them working, yours worked the first time and I love it! Thanks!!</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=6883#respond" onclick="return addComment.moveForm(&quot;comment-6883&quot;, &quot;6883&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> </li> <li class="comment odd alt thread-even depth-1" id="li-comment-6940"> <div id="comment-6940"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/f5e789b2b75c42b109dab265927045ff?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://www.talgalili.com/" rel="external " class="url">Tal Galili</a></span> <span class="commentdate"> on December 31, 2009 at 3:46 pm</span> </div> <div class="comment-text"> <p>Hi there,<br/> I love your code, but would like your help:<br/> I wish to display only X number of words, but to keep ALL the formatting around them (e.g: the <b> and so on)</p> <p>Using</p> <p>Wouldn&#8217;t do it.</p> <p>Any other advice?<br/> Thanks !</p> <p>(p.s: consider adding the plugin &#8220;subscribe to comments&#8221;<br/> Best,<br/> Tal)</b></p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=6940#respond" onclick="return addComment.moveForm(&quot;comment-6940&quot;, &quot;6940&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> </li> <li class="comment even thread-odd thread-alt depth-1" id="li-comment-6997"> <div id="comment-6997"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://0.gravatar.com/avatar/048fca33204ee35d6834137aed770281?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname">Charmed</span> <span class="commentdate"> on January 6, 2010 at 1:15 am</span> </div> <div class="comment-text"> <p>Hello, this function is terrific.</p> <p>I am interested this additional question:</p> <p>Is there a way to replace the [...] with a permalink to the post?</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=6997#respond" onclick="return addComment.moveForm(&quot;comment-6997&quot;, &quot;6997&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> <ul class="children"> <li class="comment odd alt depth-2" id="li-comment-6998"> <div id="comment-6998"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://0.gravatar.com/avatar/048fca33204ee35d6834137aed770281?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname">Charmed</span> <span class="commentdate"> on January 6, 2010 at 1:28 am</span> </div> <div class="comment-text"> <p>I figured out a work around to my question, simply by removing the &#8230; from the function, so line 15 looks like:</p> <p>$content = implode(&#8221; &#8220;,$content).&#8221; &#8220;; </p> <p>and using the permalink in the template instead. Thanks!</p> </div> </div> </li> <li class="comment byuser bypostauthor even depth-2" id="li-comment-7064"> <div id="comment-7064"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/ba043b2af6a355787f1b6fd1b1ea3eda?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/" rel="external " class="url">c.bavota</a></span> <span class="commentdate"> on January 11, 2010 at 11:33 am</span> </div> <div class="comment-text"> <p>Also check out the new functions in WordPress 2.9 that allow you to modify the excerpt core function.</p> <p><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/quick-easy-excerpt-mods-coming-in-wordpress-2-9/">http://bavotasan.com/tutorials/quick-easy-excerpt-mods-coming-in-wordpress-2-9/</a></p> </div> </div> </li> </ul> </li> <li class="comment odd alt thread-even depth-1" id="li-comment-7233"> <div id="comment-7233"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/b1e5a6bbba1f069546e60aca15614ed4?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname">Stuart</span> <span class="commentdate"> on January 22, 2010 at 10:22 am</span> </div> <div class="comment-text"> <p>Thanks for the info&#8230;works perfectly for what I need!</p> <p>Cheers<br/> Stu</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=7233#respond" onclick="return addComment.moveForm(&quot;comment-7233&quot;, &quot;7233&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> </li> <li class="comment even thread-odd thread-alt depth-1" id="li-comment-7256"> <div id="comment-7256"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/bc2cef6829ab2b342dfa5a652de05a65?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://www.paulburddesign.com/" rel="external " class="url">paul</a></span> <span class="commentdate"> on January 24, 2010 at 12:09 am</span> </div> <div class="comment-text"> <p>AWESOME! Thank you so much. The code works great in WP 2.9.1. It&#8217;s way better than the new function WP provides as it allows you to have different word counts on different pages.</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=7256#respond" onclick="return addComment.moveForm(&quot;comment-7256&quot;, &quot;7256&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> </li> <li class="comment odd alt thread-even depth-1" id="li-comment-7291"> <div id="comment-7291"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/5fea71e035a5365915ad84f625ada07e?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://danielstrongwater.com/" rel="external " class="url">Dan</a></span> <span class="commentdate"> on January 25, 2010 at 8:39 pm</span> </div> <div class="comment-text"> <p>Here&#8217;s a function based off of c.bavota&#8217;s to limit the number of characters as opposed to words. Example below is to return a shortened title. Should you want to shorten the excerpt or content by character count as opposed to word count just replace all the &#8216;title&#8217; with &#8216;content&#8217; or &#8216;excerpt&#8217; respectively.</p> <p>Also added in an if clause so it doesn&#8217;t add the &#8230; if its not longer than your specified character length.</p> <p>Works in wordpress 2.9.1</p> <p>Enjoy!</p> <div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> short_title<span style="color: #009900;">&#40;</span><span style="color: #000088;">$num</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$limit</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$num</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #000088;">$title</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_split</span><span style="color: #009900;">&#40;</span>get_the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$length</span> <span style="color: #339933;">=</span> <span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$title</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$length</span><span style="color: #339933;">&gt;=</span><span style="color: #000088;">$num</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$title</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array_slice</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$title</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$num</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$title</span> <span style="color: #339933;">=</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$title</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;...&quot;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$title</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span></pre></div></td></tr></table></div> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=7291#respond" onclick="return addComment.moveForm(&quot;comment-7291&quot;, &quot;7291&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> <ul class="children"> <li class="comment byuser bypostauthor even depth-2" id="li-comment-7320"> <div id="comment-7320"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/ba043b2af6a355787f1b6fd1b1ea3eda?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/" rel="external " class="url">c.bavota</a></span> <span class="commentdate"> on January 27, 2010 at 1:27 am</span> </div> <div class="comment-text"> <p>Very nice. Thanks for the code snippet.</p> </div> </div> </li> </ul> </li> <li class="comment odd alt thread-odd thread-alt depth-1" id="li-comment-7344"> <div id="comment-7344"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://0.gravatar.com/avatar/e895d6c1a7fc464a1cd3a29551279897?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://unsungcinema.com/" rel="external " class="url">Cody</a></span> <span class="commentdate"> on January 27, 2010 at 8:56 pm</span> </div> <div class="comment-text"> <p>I know very little about PHP, and probably shouldn&#8217;t be messing with the code, but I really want to get this feature working on the site I&#8217;m building.</p> <p>The thing I&#8217;m worried about is that the excerpt I&#8217;m trying to limit is not from the default text submission. I&#8217;m using the &#8220;Tubular&#8221; theme from StudioPress, and only the embedded video goes into the main &#8220;Edit Post&#8221; text box. The text goes into a custom text editor which appears below the main one when writing a new post. So my question is: what can I do to make this code work for this custom thingie. Here&#8217;s the snippet of code that&#8230;erm&#8230;echoes?&#8230;the content I&#8217;m trying to limit:</p> <p><a href="https://web.archive.org/web/20101120001120/http://img39.imageshack.us/img39/201/codee.jpg">http://img39.imageshack.us/img39/201/codee.jpg</a></p> <p>After I add the code to the functions document, do I just replace this code with something? If you go to my site, (don&#8217;t judge, it&#8217;s a work in progress), you can see how the &#8220;Newsies&#8221; review absolutely needs to be limited. Thanks for any help. <img src="https://web.archive.org/web/20101120001120im_/http://bavotasan.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley"/> </p> <p>(FYI, the name of the custom text thingie is video description, which is why I assumed this was the part of the code I would have to replace.)</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=7344#respond" onclick="return addComment.moveForm(&quot;comment-7344&quot;, &quot;7344&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> <ul class="children"> <li class="comment byuser bypostauthor even depth-2" id="li-comment-7358"> <div id="comment-7358"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/ba043b2af6a355787f1b6fd1b1ea3eda?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/" rel="external " class="url">c.bavota</a></span> <span class="commentdate"> on January 28, 2010 at 3:28 pm</span> </div> <div class="comment-text"> <p>You can replace this line:</p> <div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$excerpt</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> get_the_excerpt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$limit</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></td></tr></table></div> <p>with this:</p> <div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$excerpt</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;_video_description&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$limit</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></td></tr></table></div> <p>And that should work for you.</p> </div> </div> </li> </ul> </li> <li class="comment odd alt thread-even depth-1" id="li-comment-7362"> <div id="comment-7362"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/dc34f37b6469442d461808b1092c7fe1?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname">archer</span> <span class="commentdate"> on January 28, 2010 at 7:16 pm</span> </div> <div class="comment-text"> <p>really need to get this working..<br/> if a number of words in the content is less than the limit set.. it last word is being cut off. </p> <p>For the instance, if my full content is &#8220;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc nunc lorem, interdum viverra pretium&#8221;<br/> the result is &#8220;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc nunc lorem, interdum viverra&#8230;&#8221;</p> <p>how would i solve this. anyone? really need a quick help..</p> <p>btw&#8230; thanks for the function.. its awesome.. just have to fix this one issue</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=7362#respond" onclick="return addComment.moveForm(&quot;comment-7362&quot;, &quot;7362&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> <ul class="children"> <li class="comment byuser bypostauthor even depth-2" id="li-comment-7368"> <div id="comment-7368"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/ba043b2af6a355787f1b6fd1b1ea3eda?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/" rel="external " class="url">c.bavota</a></span> <span class="commentdate"> on January 29, 2010 at 1:24 am</span> </div> <div class="comment-text"> <p>I just revamped it above, so check it out.</p> </div> </div> </li> </ul> </li> <li class="comment odd alt thread-odd thread-alt depth-1" id="li-comment-7423"> <div id="comment-7423"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/752225205a9b6a525ea2fa8e524ece58?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname">Mark</span> <span class="commentdate"> on January 31, 2010 at 12:02 am</span> </div> <div class="comment-text"> <p>How do I display a read more link that I can also style using CSS?</p> <p>I&#8217;ve tried a few things and it hasn&#8217;t worked. </p> <p>I hope to find the advice i need thanks everyone.</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=7423#respond" onclick="return addComment.moveForm(&quot;comment-7423&quot;, &quot;7423&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> <ul class="children"> <li class="comment byuser bypostauthor even depth-2" id="li-comment-7433"> <div id="comment-7433"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/ba043b2af6a355787f1b6fd1b1ea3eda?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/" rel="external " class="url">c.bavota</a></span> <span class="commentdate"> on January 31, 2010 at 9:23 am</span> </div> <div class="comment-text"> <p>The default read more link has a class of more-link which you can use in your CSS.</p> </div> </div> </li> <li class="comment odd alt depth-2" id="li-comment-12686"> <div id="comment-12686"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://0.gravatar.com/avatar/693d258aafe5b420850f65b352e6b057?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname">Mr.Tirtakusuma</span> <span class="commentdate"> on July 11, 2010 at 11:17 pm</span> </div> <div class="comment-text"> <p>I&#8217;ve try to make a little modification to show the readmore link, and here is the code:</p> <div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> content<span style="color: #009900;">&#40;</span><span style="color: #000088;">$limit</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$permalink</span> <span style="color: #339933;">=</span> get_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> get_the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$limit</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;=</span><span style="color: #000088;">$limit</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #990000;">array_pop</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;...&lt;a href='<span style="color: #006699; font-weight: bold;">$permalink</span>' rel=&quot;</span>nofollow<span style="color: #0000ff;">&quot;&gt;more information&amp;nbsp;&amp;raquo;&lt;/a&gt;&quot;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/\[.+\]/'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> apply_filters<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_content'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">']]&amp;gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">']]&amp;gt;'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">return</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span></pre></div></td></tr></table></div> </div> </div> </li> </ul> </li> <li class="comment even thread-even depth-1" id="li-comment-7435"> <div id="comment-7435"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/752225205a9b6a525ea2fa8e524ece58?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname">Mark</span> <span class="commentdate"> on January 31, 2010 at 10:03 am</span> </div> <div class="comment-text"> <p>Thank you but how do I get the more link to appear when using this &lt;?php echo excerpt(25)&quot;</p> <p>Thanks.</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=7435#respond" onclick="return addComment.moveForm(&quot;comment-7435&quot;, &quot;7435&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> <ul class="children"> <li class="comment byuser bypostauthor odd alt depth-2" id="li-comment-7466"> <div id="comment-7466"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/ba043b2af6a355787f1b6fd1b1ea3eda?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/" rel="external " class="url">c.bavota</a></span> <span class="commentdate"> on February 1, 2010 at 11:55 am</span> </div> <div class="comment-text"> <p>Check out the forum:</p> <p><a href="https://web.archive.org/web/20101120001120/http://support.bavotasan.com/topic/2-problems-need-solutions-thanks#post-737">http://support.bavotasan.com/topic/2-problems-need-solutions-thanks#post-737</a></p> </div> </div> </li> </ul> </li> <li class="comment even thread-odd thread-alt depth-1" id="li-comment-7475"> <div id="comment-7475"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/752225205a9b6a525ea2fa8e524ece58?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname">Mark</span> <span class="commentdate"> on February 1, 2010 at 4:26 pm</span> </div> <div class="comment-text"> <p>I tried that too but I&#8217;m not understanding what you are asking me to do with that code. As it is different function name and would have no idea how to call it onto my page.</p> <p>Thanks.</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=7475#respond" onclick="return addComment.moveForm(&quot;comment-7475&quot;, &quot;7475&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> <ul class="children"> <li class="comment byuser bypostauthor odd alt depth-2" id="li-comment-7484"> <div id="comment-7484"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://1.gravatar.com/avatar/ba043b2af6a355787f1b6fd1b1ea3eda?s=60&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/" rel="external " class="url">c.bavota</a></span> <span class="commentdate"> on February 2, 2010 at 11:36 am</span> </div> <div class="comment-text"> <p>I changed it now so that the function name is the same. It is the exactly same code as above, with the read more link added. So you can add it to your functions.php file exactly how you had originally done it with the code above.</p> </div> </div> </li> </ul> </li> <li class="comment even thread-even depth-1" id="li-comment-7585"> <div id="comment-7585"> <div class="comment-avatar"> <img alt="" src="https://web.archive.org/web/20101120001120im_/http://0.gravatar.com/avatar/84857d5acbe105d119467c6e35774288?s=60&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D60&amp;r=G" class="avatar avatar-60 photo" height="60" width="60"/> </div> <div class="comment-author"> <span class="authorname"><a href="https://web.archive.org/web/20101120001120/http://www.jasonbobich.com/" rel="external " class="url">Jason</a></span> <span class="commentdate"> on February 7, 2010 at 6:56 pm</span> </div> <div class="comment-text"> <p>wow thank you so much! I&#8217;m doing a billion things at once.. and I was so glad to come across your post&#8230; just attach the function and I&#8217;m off! thanks again!</p> </div> <div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/?replytocom=7585#respond" onclick="return addComment.moveForm(&quot;comment-7585&quot;, &quot;7585&quot;, &quot;respond&quot;, &quot;269&quot;)">Reply</a> </div> </div> </li> </ol> <div class="navigation"> <div class="fl"></div> <div class="fr"><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/comment-page-2/#comments">Newer Comments &rarr;</a></div> </div> <a name="respond"></a> <div id="respond"> <h3 id="reply-title">Leave a Reply <small><a rel="nofollow" id="cancel-comment-reply-link" href="/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/#respond" style="display:none;">Cancel reply</a></small></h3> <form action="https://web.archive.org/web/20101120001120/http://bavotasan.com/wp-comments-post.php" method="post" id="commentform"> <p class="comment-notes">Your email address will not be published. Required fields are marked <span class="required">*</span></p> <p class="comment-form-author"><label for="author">Name</label> <span class="required">*</span><br/><input id="author" name="author" type="text" value="" size="30"/></p> <p class="comment-form-email"><label for="email">Email</label> <span class="required">*</span><br/><input id="email" name="email" type="text" value="" size="30"/></p> <p class="comment-form-url"><label for="url">Website</label><br/><input id="url" name="url" type="text" value="" size="30"/></p> <p>To enter code in the comment box, please place it between <strong>&lt;pre lang="php"&gt; &lt;/pre&gt;</strong> tags. You don't have to convert any characters to their hex/HTML code. Just add your code the way you would to any code editor.</p> <p class="comment-form-comment"><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p> <p class="form-submit"> <input name="submit" type="submit" id="submit" value="Post Comment"/> <input type="hidden" name="comment_post_ID" value="269" id="comment_post_ID"/> <input type="hidden" name="comment_parent" id="comment_parent" value="0"/> </p> </form> </div><!-- #respond --> </div><!-- #comments --> </div> </div> <!-- begin sidebar --> <div id="sidebar"> <div id="search"> <form method="get" id="searchform" action="https://web.archive.org/web/20101120001120/http://bavotasan.com/"> <div> <input type="text" class="search_input" value="Search" name="s" id="s" onfocus="if (this.value == 'Search') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search';}"/> <input type="hidden" id="searchsubmit" value="Search"/> </div> </form> <div class="arrow"></div> </div> <div id="sideads"> <!-- BuySellAds.com Zone Code --> <div id="bsap_1237633" class="bsarocks bsap_8982c17d635c33dbe23a7ef930777c37"></div> <!-- END BuySellAds.com Zone Code --> <br class="clear"/> <!-- BuySellAds.com Zone Code --> <div id="bsap_1237624" class="bsarocks bsap_8982c17d635c33dbe23a7ef930777c37"></div> <!-- END BuySellAds.com Zone Code --> </div> <br class="clear"/> <div class="line"></div> <div class="side-widget"> <h4>Most Popular Posts</h4> <ul class="wppp_list"> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/creating-a-jquery-mouseover-fade-effect/" title="Creating a Mouseover Fade Effect with jQuery ">Creating a Mouseover Fade Effect with jQuery </a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/a-simple-mouseover-hover-effect-with-jquery/" title="A Simple Mouseover Hover Effect with jQuery">A Simple Mouseover Hover Effect with jQuery</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/downloads/full-sizebackground-image-jquery-plugin/" title="Full Size Background Image jQuery Plugin">Full Size Background Image jQuery Plugin</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/downloads/magazine-basic-free-wordpress-theme/" title="Magazine Basic v2.6 WordPress Theme">Magazine Basic v2.6 WordPress Theme</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/processing-multiple-forms-on-one-page-with-php/" title="Processing Multiple Forms on One Page with PHP">Processing Multiple Forms on One Page with PHP</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/downloads/6-free-vinyl-record-vectors/" title="6 Free Vinyl Record Vectors">6 Free Vinyl Record Vectors</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/how-to-create-a-twitter-feed-on-your-web-site/" title="How to Create a Twitter Feed on Your Web Site">How to Create a Twitter Feed on Your Web Site</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/php-code-to-redirect-mobilehandheld-users/" title="PHP Code to Redirect Mobile/Handheld Users">PHP Code to Redirect Mobile/Handheld Users</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/" title="Excerpt or Content Word Limit in WordPress: Redux">Excerpt or Content Word Limit in WordPress: Redux</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/adding-extra-fields-to-the-wordpress-user-profile/" title="Adding Extra Fields to the WordPress User Profile">Adding Extra Fields to the WordPress User Profile</a></li> </ul> </div> <div id="affiliates-ads"> <a href="https://web.archive.org/web/20101120001120/http://themes.bavotasan.com/" class="themes"></a> <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/downloads/delete-duplicate-posts-pro-wordpress-plugin/" class="deletedupes"></a> <a href="https://web.archive.org/web/20101120001120/https://secure1.inmotionhosting.com/cgi-bin/gby/clickthru.cgi?id=tinkerpriest&amp;page=7" class="inmotion"></a> </div> <div class="line"></div> <div class="side-widget redlink"> <h4>Get a Premium Theme for FREE</h4> <p><a href="https://web.archive.org/web/20101120001120/https://secure1.inmotionhosting.com/cgi-bin/gby/clickthru.cgi?id=tinkerpriest" class="wordpress-logo"></a>Don't have a Web site? How would you like to have WordPress and a <a href="https://web.archive.org/web/20101120001120/http://themes.bavotasan.com/category/premium-themes">Themes by bavotasan.com</a> Premium theme installed and configured for <em>FREE</em>? All you need to do is <a href="https://web.archive.org/web/20101120001120/https://secure1.inmotionhosting.com/cgi-bin/gby/clickthru.cgi?id=tinkerpriest">sign up with InMotion Hosting through this link</a>. <br/> <br/> <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/free-premium-theme/" class="fr"><em>Click here for more information &raquo;</em></a> </p> </div> <div class="side-widget"> <h4>Support c.bavota</h4> <p>If you would like to support <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/">c.bavota</a> and <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/">bavotasan.com</a>, please use the donate link below. Any amount, even $1.00, is appreciated (a man's gotta eat, ya know).</p> <a href="https://web.archive.org/web/20101120001120/https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=5745952" id="donate" class="fr">Donate</a> </div> </div> <!-- end sidebar --></div> </div> <!-- begin footer --> <div class="whiteline"></div> <div id="footer"> <div id="bottombar"> <a href="javascript:void(0)" class="backtotop">Back to Top<span></span></a> <div class="col col1"> <h4 class="one"><span></span>Stay in Touch</h4> <a href="https://web.archive.org/web/20101120001120/http://twitter.com/bavotasan" class="footer-twitter"><span></span>Follow me on Twitter</a><br/> <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/feed/" class="footer-rss"><span></span>Subscribe to my RSS Feed</a> <br class="clear"/> <h4 class="two"><span></span>Stay in Tune</h4> <div class="tweets"></div> </div> <div class="col col2"> <h4 class="three"><span></span>Downloads</h4> <ul> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/downloads/my-first-vanilla-plugin/">My First Vanilla Plugin</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/downloads/delete-duplicate-posts-pro-wordpress-plugin/">Delete Duplicate Posts Pro WordPress Plugin</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/downloads/feed-me-seymour-free-wordpress-theme/">Feed Me, Seymour 1.2</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/downloads/magazine-basic-free-wordpress-theme/">Magazine Basic v2.6 WordPress Theme</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/downloads/sliderota-jquery-plugin/">Sliderota jQuery Plugin</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/downloads/full-sizebackground-image-jquery-plugin/">Full Size Background Image jQuery Plugin</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/downloads/easy-overlay-modal-window-jquery-plugin/">Easy Overlay Modal Window jQuery Plugin</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/downloads/snowblind-free-wordpress-theme/">Snowblind v1.1.2 Free WordPress Theme</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/downloads/8-free-colorful-background-textures-for-designers/">8 Free Colorful Background Textures for Designers</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/downloads/stationery-premium-wordpress-theme/">Stationery Premium WordPress Theme</a></li> </ul> </div> <div class="col col3"> <h4 class="four"><span></span>Tutorials</h4> <ul> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/add-a-copyright-notice-to-copied-text/">Add a Copyright Notice to Copied Text</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/meta-descriptions-wordpress/">Meta Descriptions for WordPress</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/turning-on-php-errors/">Turning On PHP Errors</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/using-css-resets/">Using CSS Resets</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/a-sleek-navigation-menu-with-css3/">A Sleek Navigation Menu with CSS3</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/a-basic-jquery-slideshow/">A Basic jQuery Slideshow</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/text-rotation-css3/">Text Rotation with CSS3</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/adding-tweet-button-wordpress/">Adding a Tweet Button to WordPress</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/developing-themes-for-wordpress-make-money/">Developing Themes for WordPress: Part 5</a></li> <li><a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/tutorials/developing-themes-for-wordpress-options/">Developing Themes for WordPress: Part 4</a></li> </ul> </div> </div> </div> <div id="copyright"> <div id="copyright-wrapper"> Copyright &copy; 2010 <a href="https://web.archive.org/web/20101120001120/http://bavotasan.com/">bavotasan.com</a>. All Rights Reserved. Powered by <a href="https://web.archive.org/web/20101120001120/http://www.wordpress.org/">WordPress</a>. </div> </div> <!--stats_footer_test--><script src="https://web.archive.org/web/20101120001120js_/http://stats.wordpress.com/e-201046.js" type="text/javascript"></script> <script type="text/javascript"> st_go({blog:'5317602',v:'ext',post:'269'}); var load_cmc = function(){linktracker_init(5317602,269,2);}; if ( typeof addLoadEvent != 'undefined' ) addLoadEvent(load_cmc); else load_cmc(); </script> <script type="text/javascript" src="https://web.archive.org/web/20101120001120js_/http://bavotasan.com/wp-content/themes/bavotasan-2010/js/coolstuff.js"></script> <script type="text/javascript"> hs.graphicsDir = 'https://web.archive.org/web/20101120001120/http://bavotasan.com/images/graphics/'; hs.outlineType = 'rounded-white'; hs.outlineWhileAnimating = true; hs.showCredits = false; </script> <!-- Bavota San 2010 theme designed by c.bavota, http://bavotasan.com --> </body> </html> <!-- Dynamic page generated in 1.577 seconds. --> <!-- Cached page generated by WP-Super-Cache on 2010-11-17 12:20:25 --> <!-- super cache --><!-- FILE ARCHIVED ON 00:11:20 Nov 20, 2010 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 04:43:50 Nov 29, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 0.546 exclusion.robots: 0.04 exclusion.robots.policy: 0.03 esindex: 0.01 cdx.remote: 4.859 LoadShardBlock: 136.896 (3) PetaboxLoader3.datanode: 72.425 (4) load_resource: 137.429 PetaboxLoader3.resolve: 88.515 -->

Pages: 1 2 3 4 5 6 7 8 9 10