{"id":30615,"date":"2010-04-18T18:12:27","date_gmt":"2010-04-18T22:12:27","guid":{"rendered":"http:\/\/wpmu.org\/?p=30615"},"modified":"2013-04-24T23:33:01","modified_gmt":"2013-04-25T03:33:01","slug":"daily-tip-replace-default-wordpress-excerpt-ellipsis-with-read-more-link","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/daily-tip-replace-default-wordpress-excerpt-ellipsis-with-read-more-link\/","title":{"rendered":"Replace Default WordPress Excerpt Ellipsis With Read More Link"},"content":{"rendered":"<p>Add this to your <em>functions.php<\/em> file. It will replace the default [&#8230;] at the end of your excerpt with a &#8220;<a href=\"https:\/\/wpmudev.com\/blog\/wordpress-read-more-plugin\/\" target=\"_blank\">Read More<\/a> \u2192&#8221; link.<\/p>\n<pre>function replace_excerpt($content) {\r\nreturn str_replace('[...]',\r\n'&lt;a href=\"'. get_permalink() .'\"&gt;Read More \u2192&lt;\/a&gt;',\r\n$content\r\n);\r\n}\r\nadd_filter('the_excerpt', 'replace_excerpt');<\/pre>\n<h2>Want to Submit a Daily Tip to WPMU DEV?<\/h2>\n<p>If you&#8217;ve got a great tip for WordPress, WordPress Multisite, or BuddyPress users, send it our way on Twitter: <a href=\"http:\/\/twitter.com\/wpmudev\" target=\"_blank\">@wpmudev<\/a> and we&#8217;ll happily credit you. Create a tweetable title and let us know if you have more info or an article you&#8217;d like to link it to.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Add this to your functions.php file. It will replace the default [&#8230;] at the end of your excerpt with a &#8220;Read More \u2192&#8221; link. function replace_excerpt($content) { return str_replace(&#8216;[&#8230;]&#8217;, &#8216;&lt;a href=&#8221;&#8216;. get_permalink() .'&#8221;&gt;Read More \u2192&lt;\/a&gt;&#8217;, $content ); } add_filter(&#8216;the_excerpt&#8217;, &#8216;replace_excerpt&#8217;); Want to Submit a Daily Tip to WPMU DEV? If you&#8217;ve got a great tip [&hellip;]<\/p>\n","protected":false},"author":4099,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[1],"tags":[],"tutorials_categories":[],"class_list":["post-30615","post","type-post","status-publish","format-standard","hentry","category-news-community"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/30615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/4099"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=30615"}],"version-history":[{"count":3,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/30615\/revisions"}],"predecessor-version":[{"id":181620,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/30615\/revisions\/181620"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=30615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=30615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=30615"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=30615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}