{"id":98,"date":"2009-01-06T15:05:25","date_gmt":"2009-01-06T15:05:25","guid":{"rendered":"http:\/\/limpengheng.com\/how-to\/?p=98"},"modified":"2009-01-13T14:49:44","modified_gmt":"2009-01-13T14:49:44","slug":"how-to-i-use-lorelle-vanfossens-tip-on-wordpress-excerpts","status":"publish","type":"post","link":"http:\/\/limpengheng.com\/how-to\/how-to\/how-to-i-use-lorelle-vanfossens-tip-on-wordpress-excerpts\/","title":{"rendered":"How to use Lorelle VanFossen&#8217;s tip on WordPress excerpts"},"content":{"rendered":"<h1>&#8220;How to use Lorelle VanFossen&#8217;s tip on WordPress excerpts&#8221;\u00a0<\/h1>\n<p>This is the two pages at Lorelle&#8217;s blog that I read, this is the <a title=\"Display Post Excerpts Only in WordPress\" href=\"http:\/\/lorelle.wordpress.com\/2006\/07\/19\/display-post-excerpts-only-in-wordpress\/\" target=\"_blank\">first page<\/a> and this is the <a title=\"Customizing the WordPress Loop for Excerpt Queries\" href=\"http:\/\/www.cameraontheroad.com\/?p=732\" target=\"_blank\">second page<\/a>.\u00a0 The code provided on the second page is listed directly here:\u00a0<\/p>\n<pre>&lt;!-- Start of the Loop --&gt;\r\n&lt;?php if (have_posts()) : ?&gt;\r\n&lt;?php while (have_posts()) : the_post(); ?&gt;\r\n&lt;?php if ( $post-&gt;post_excerpt ) : \/\/ If there is an explicitly defined excerpt ?&gt;\r\n&lt;div class=\"excerpt-post clearfix\"&gt;\r\n&lt;h2 id=\"post-&lt;?php the_ID(); ?&gt;\"&gt;\r\n&lt;a href=\"&lt;?php the_permalink() ?&gt;\" rel=\"bookmark\" accesskey=\"s\"&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;\r\n&lt;\/h2&gt;\r\n&lt;div class=\"catslist\"&gt;&lt;?php the_category(' and '); ?&gt;&lt;\/div&gt;\r\n&lt;div class=\"entry\"&gt;\r\n&lt;?php the_excerpt(); ?&gt;&lt;br \/&gt;\r\n&lt;div class=\"readmore\"&gt;\r\n&lt;a href=\"&lt;?php the_permalink(); ?&gt;\"&gt;CONTINUE READING&lt;\/a&gt;\r\n&lt;\/div&gt;\r\n&lt;\/div&gt; &lt;!--end of entry --&gt;\r\n&lt;!-- &lt;?php trackback_rdf(); ?&gt; --&gt;\r\n&lt;\/div&gt;&lt;!-- end of excerpt-post --&gt;\r\n&lt;?php else : \/\/ If there is not an explictly defined excerpt ?&gt;\r\n&lt;div class=\"excerpt-post clearfix\"&gt;\r\n&lt;h2 id=\"post-&lt;?php the_ID(); ?&gt;\"&gt;\r\n&lt;a href=\"&lt;?php the_permalink() ?&gt;\" rel=\"bookmark\"&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;\r\n&lt;\/h2&gt;\r\n&lt;div class=\"catslist\"&gt;&lt;?php the_category(' and '); ?&gt;&lt;\/div&gt;\r\n&lt;div class=\"entry\"&gt;\r\n&lt;?php the_content('&lt;span class=\"readmore\"&gt;CONTINUE READING&lt;\/span&gt;'); ?&gt;\r\n&lt;\/div&gt;&lt;!-- end of entry --&gt;\r\n&lt;!-- &lt;?php trackback_rdf(); ?&gt; --&gt;\r\n&lt;\/div&gt;&lt;!-- end of excerpt-post --&gt;\r\n&lt;?php endif; \/\/ End the excerpt vs. content \"if\" statement ?&gt;\r\n&lt;?php endwhile; else: ?&gt;\r\n&lt;h2 class=\"center\"&gt;Page Not Found&lt;\/h2&gt;\r\n&lt;p&gt;&lt;?php _e('Sorry, no posts matched your criteria.'); ?&gt;&lt;\/p&gt;\r\n&lt;p&gt;&lt;?php _e('To help you find the information you seek,\r\nwe recommend you check out our\r\n&lt;a title=\"Camera on the Road Site Map\" href=\"sitemap.php\"&gt;Site Map&lt;\/a&gt;\r\nto help track down what you are looking for.'); ?&gt;&lt;\/p&gt;\r\n&lt;?php include (TEMPLATEPATH . \"\/searchform.php\"); ?&gt;\r\n&lt;?php endif; ?&gt;\r\n&lt;!--end Loop --&gt;<\/pre>\n<p>I didn&#8217;t like the CONTINUE READING style so I swapped this line:<\/p>\n<p><span style=\"font-family: Courier New;\"><span style=\"color: #0000ff;\">&lt;a href=&#8221;&lt;?php the_permalink(); ?&gt;&#8221;&gt;CONTINUE READING&lt;\/a&gt;<\/span><\/span><\/p>\n<p>to this one:<\/p>\n<p><span style=\"font-family: Courier New;\"><span style=\"color: #ff0000;\">&lt;p align=&#8221;right&#8221;&gt;&lt;a href=&#8221;&lt;?php the_permalink(); ?&gt;&#8221;&gt;Show me the post now . . .&lt;\/a&gt;&lt;\/p&gt;<\/span><\/span><\/p>\n<p>I did the same for the other lines where CONTINUE READING is set.<\/p>\n<p><span style=\"font-family: Courier New;\"><span style=\"color: #0000ff;\">&lt;?php the_content(&#8216;&lt;span class=&#8221;readmore&#8221;&gt;CONTINUE READING&lt;\/span&gt;&#8217;); ?&gt;<\/span><\/span><\/p>\n<p>with this<\/p>\n<p><span style=\"font-family: Courier New;\"><span style=\"color: #ff0000;\">&lt;?php the_content(&#8216;&lt;p align=&#8221;right&#8221;&gt;&lt;span class=&#8221;readmore&#8221;&gt;Show me the post now . . .&lt;\/span&gt;&lt;\/p&gt;&#8217;); ?&gt;<\/span><\/span><\/p>\n<p>And for the line near the bottom that says:<\/p>\n<p><span style=\"font-family: Courier New;\"><span style=\"color: #0000ff;\">&lt;a title=&#8221;Camera on the Road Site Map&#8221; href=&#8221;sitemap.php&#8221;&gt;Site Map&lt;\/a&gt;<\/span><\/span><\/p>\n<p>I replace it with:<\/p>\n<p><span style=\"font-family: Courier New;\"><span style=\"color: #ff0000;\">&lt;a title=&#8221;Casey collection of How to&#8221; href=&#8221;sitemap.php&#8221;&gt;Site Map&lt;\/a&gt;<\/span><\/span><\/p>\n<p>Actually I have not got my site map set up yet. I&#8217;ll have to note that down on my to-do list:<\/p>\n<ol>\n<li>Add a site map here.<\/li>\n<li>Find out how to change my css so that my sidebar 1 and sidebar 2 will flank the main content rather than both sidebar 1 and sidear 2 flushed on the right.<\/li>\n<li>Find out how to bring in comment exerpts into the main display.<\/li>\n<\/ol>\n<p>So watch this space as I journey into the above learning opportunities.<\/p>\n<h2><strong><span style=\"color: #ff0000;\">DISCLAIMER:<\/span><\/strong><\/h2>\n<p>I susbscribe to Mr. T. Harv Eker\u2019s teachings, that is; Please <strong>DO NOT<\/strong> believe a word I say. The reason I say this is because what I say came from my and <strong>ONLY MY<\/strong> own experiences. It does not make it right, it does not make it wrong. You are advised to test and verify them for yourselves. If it works for you, please carry on doing it. If it does not work for you, please throw it out. If you learn something new; for which I am sure you would, please leave me a comment and contact, so that I too can learn from you.<\/p>\n<h3>Copyright 2009 (R) Casey @ <a title=\"Home of this Blog\" href=\"http:\/\/limpengheng.com\/how-to\"><span style=\"color: #8ab459;\">http:\/\/limpengheng.com\/how-to<\/span><\/a><\/h3>\n<script data-cfasync=\"false\" type=\"text\/javascript\"><\/script>\n                <!-- AddThis Settings Begin -->\n                <script data-cfasync=\"false\" type=\"text\/javascript\">\n                    var addthis_product = \"wpp-5.2.3\";\n                    var wp_product_version = \"wpp-5.2.3\";\n                    var wp_blog_version = \"6.9.4\";\n                    var addthis_plugin_info = {\"info_status\":\"enabled\",\"cms_name\":\"WordPress\",\"cms_version\":\"6.9.4\",\"plugin_name\":\"Share Buttons by AddThis\",\"plugin_version\":\"5.2.3\",\"anonymous_profile_id\":\"wp-ef645765da4e4e322fda8338a4a1faec\",\"plugin_mode\":\"WordPress\",\"select_prefs\":{\"addthis_per_post_enabled\":true,\"addthis_above_enabled\":false,\"addthis_below_enabled\":false,\"addthis_sidebar_enabled\":false,\"addthis_above_showon_home\":\"true\",\"addthis_below_showon_home\":\"true\",\"addthis_above_showon_posts\":true,\"addthis_above_showon_pages\":true,\"addthis_above_showon_archives\":true,\"addthis_above_showon_categories\":true,\"addthis_above_showon_excerpts\":true,\"addthis_below_showon_posts\":true,\"addthis_below_showon_pages\":true,\"addthis_below_showon_archives\":true,\"addthis_below_showon_categories\":true,\"addthis_below_showon_excerpts\":true,\"addthis_sidebar_showon_home\":true,\"addthis_sidebar_showon_posts\":true,\"addthis_sidebar_showon_pages\":true,\"addthis_sidebar_showon_archives\":true,\"addthis_sidebar_showon_categories\":true,\"sharing_enabled_on_post_via_metabox\":true},\"page_info\":{\"template\":false}};\n                    if (typeof(addthis_config) == \"undefined\") {\n                        var addthis_config = {\"data_track_clickback\":true,\"ui_language\":\"en\",\"ui_atversion\":300,\"ignore_server_config\":true};\n                    }\n                    if (typeof(addthis_share) == \"undefined\") {\n                        var addthis_share = {};\n                    }\n                    if (typeof(addthis_layers) == \"undefined\") {\n                        var addthis_layers = {};\n                    }\n                <\/script>\n                <script\n                    data-cfasync=\"false\"\n                    type=\"text\/javascript\"\n                    src=\"\/\/s7.addthis.com\/js\/300\/addthis_widget.js#pubid=wp-ef645765da4e4e322fda8338a4a1faec \"\n                    async=\"async\"\n                >\n                <\/script>\n                <script data-cfasync=\"false\" type=\"text\/javascript\">\n                    (function() {\n                        var at_interval = setInterval(function () {\n                            if(window.addthis) {\n                                clearInterval(at_interval);\n                                addthis.layers(addthis_layers);\n                            }\n                        },1000)\n                    }());\n                <\/script>\n                ","protected":false},"excerpt":{"rendered":"<p>Would you like to know Lorelle&#8217;s code for these excerpts ? Would you like to know what changes I made to Lorelle&#8217;s code for it to appear in the way you see it here ? Well this post listing the changes I made to Lorelle&#8217;s code.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,3],"tags":[13,14],"class_list":["post-98","post","type-post","status-publish","format-standard","hentry","category-blog","category-how-to","tag-exerpts","tag-wordpress"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/limpengheng.com\/how-to\/wp-json\/wp\/v2\/posts\/98","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/limpengheng.com\/how-to\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/limpengheng.com\/how-to\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/limpengheng.com\/how-to\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/limpengheng.com\/how-to\/wp-json\/wp\/v2\/comments?post=98"}],"version-history":[{"count":27,"href":"http:\/\/limpengheng.com\/how-to\/wp-json\/wp\/v2\/posts\/98\/revisions"}],"predecessor-version":[{"id":117,"href":"http:\/\/limpengheng.com\/how-to\/wp-json\/wp\/v2\/posts\/98\/revisions\/117"}],"wp:attachment":[{"href":"http:\/\/limpengheng.com\/how-to\/wp-json\/wp\/v2\/media?parent=98"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/limpengheng.com\/how-to\/wp-json\/wp\/v2\/categories?post=98"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/limpengheng.com\/how-to\/wp-json\/wp\/v2\/tags?post=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}