{"id":404,"date":"2014-09-09T08:34:13","date_gmt":"2014-09-09T08:34:13","guid":{"rendered":"http:\/\/pixert.com\/blog\/?p=404"},"modified":"2014-09-09T08:44:21","modified_gmt":"2014-09-09T08:44:21","slug":"how-to-enable-excerpt-for-pages-wordpress","status":"publish","type":"post","link":"https:\/\/pixert.com\/blog\/how-to-enable-excerpt-for-pages-wordpress\/","title":{"rendered":"WordPress : How to enable Excerpt for Pages"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2014\/09\/excerptpages.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"405\" data-permalink=\"https:\/\/pixert.com\/blog\/how-to-enable-excerpt-for-pages-wordpress\/excerptpages\/\" data-orig-file=\"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2014\/09\/excerptpages.jpg?fit=1095%2C259&amp;ssl=1\" data-orig-size=\"1095,259\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Add Excerpts to WordPress Pages\" data-image-description=\"&lt;p&gt;Add Excerpts to WordPress Pages&lt;\/p&gt;\n\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2014\/09\/excerptpages.jpg?fit=1024%2C242&amp;ssl=1\" class=\"aligncenter size-large wp-image-405\" src=\"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2014\/09\/excerptpages-1024x242.jpg?resize=620%2C146\" alt=\"Add Excerpts to WordPress Pages\" width=\"620\" height=\"146\" srcset=\"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2014\/09\/excerptpages.jpg?resize=1024%2C242&amp;ssl=1 1024w, https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2014\/09\/excerptpages.jpg?resize=300%2C70&amp;ssl=1 300w, https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2014\/09\/excerptpages.jpg?w=1095&amp;ssl=1 1095w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a>WordPress gives us the ability to manually create excerpts for your <strong>Posts<\/strong> by entering text into an Excerpt box just below the main editing screen on the Write\/Edit page. But Excerpt is not available for <strong>Pages<\/strong> .There is \u00a0no option to add\/enable excerpts for pages through the WordPress admin panel. <!--more-->We need to add following code to functions.php of active theme to enable Excerpt for Pages<\/p>\n<pre class=\"brush: plain; title: Code Block; notranslate\" title=\"Code Block\">&lt;?php\r\nadd_action('init', 'add_excerpt_pages');\r\nfunction add_excerpt_pages() {\r\nadd_post_type_support( 'page', 'excerpt' );\r\n}\r\n?&gt;<\/pre>\n<p>After that, edit a page and click Screen Options at the top right, it&#8217;s underneath Howdy,&#8230;.<\/p>\n<p>You&#8217;ll see Excerpt checkbox there.\u00a0The excerpt box appeared when you check\/mark Excerpt<\/p>\n<p>There is a plugin name <a title=\"Page Excerpt\" href=\"https:\/\/wordpress.org\/plugins\/page-excerpt\/\">Page Excerpt<\/a> in WordPress.org repository that create a manual excerpt box without you add code to functions.php<\/p>\n<p>Once we typed hand-crafted summaries of our content into Excerpt box, the theme get excerpt by using this code: the_excerpt() or echo get_the_excerpt()<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress gives us the ability to manually create excerpts for your Posts by entering text into an Excerpt box just below the main editing screen on the Write\/Edit page. But Excerpt is not available for Pages .There is \u00a0no option to add\/enable excerpts for pages through the WordPress admin panel.<\/p>\n","protected":false},"author":1,"featured_media":405,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[5],"tags":[99,139,6],"class_list":["post-404","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-excerpt","tag-page","tag-wordpress-2"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2014\/09\/excerptpages.jpg?fit=1095%2C259&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1pvi1-6w","jetpack-related-posts":[{"id":224,"url":"https:\/\/pixert.com\/blog\/remove-podpress-code-from-the-excerpt\/","url_meta":{"origin":404,"position":0},"title":"WordPress : Remove Podpress code from the_excerpt","author":"Pixel Insert \/ Pixert","date":"April 24, 2012","format":false,"excerpt":"Add the following to functions.php [php] add_action('pre_get_posts', 'remove_podpress_from_automatic_excerpts'); function remove_podpress_from_automatic_excerpts() { \/* This function removes podPress elements from post content on the homepage of the blog. It helps especially if the home page shows only excerpts of the posts.*\/ if ( is_home() ) { global $podPress; if ( TRUE=== isset($podPress)\u2026","rel":"","context":"In &quot;Code Snippet&quot;","block_context":{"text":"Code Snippet","link":"https:\/\/pixert.com\/blog\/category\/code-snippet\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":87,"url":"https:\/\/pixert.com\/blog\/share-wordpress-posts-or-pages-via-email-link\/","url_meta":{"origin":404,"position":1},"title":"Share WordPress Posts or Pages via Email link","author":"Pixel Insert \/ Pixert","date":"April 28, 2011","format":false,"excerpt":"A simple link that open users default email client to send that WordPress Post or Page as an email to a friend or colleague. It displays an excerpt in the email body [php] <a href=\"mailto:type email address here?subject=I wanted to share this post with you from <?php bloginfo('name'); ?>&body=<?php the_title('','',true);\u2026","rel":"","context":"In &quot;Code Snippet&quot;","block_context":{"text":"Code Snippet","link":"https:\/\/pixert.com\/blog\/category\/code-snippet\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":162,"url":"https:\/\/pixert.com\/blog\/web-page-compression-enable-gzip-encoding-and-caching\/","url_meta":{"origin":404,"position":2},"title":"Web Page Compression: Enable gzip Encoding and Caching","author":"Pixel Insert \/ Pixert","date":"November 10, 2011","format":false,"excerpt":"Website load is one factor Google been considered to rank websites in their search engine. The next tutorial explain a step to improve loading time in your website.\u00a0This step is focusing on gzip encoding and caching, it compress the content from your server to the client browser. The reduced file\u2026","rel":"","context":"In &quot;CentOS&quot;","block_context":{"text":"CentOS","link":"https:\/\/pixert.com\/blog\/category\/centos\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":393,"url":"https:\/\/pixert.com\/blog\/add-facebook-like-box-change-language-local\/","url_meta":{"origin":404,"position":3},"title":"How to add Facebook Like Box and change language to local","author":"Pixel Insert \/ Pixert","date":"September 21, 2014","format":false,"excerpt":"Facebook Like Box\u00a0allows website owners to provide their visitors with an easy way to join their facebook community and get updates right in their Facebook news feed with a click to like from\u00a0their website. It\u00a0is\u00a0a good\u00a0way\u00a0to promote a \u00a0Facebook Page. Facebook Like Box only works for Facebook Pages, this isn't\u2026","rel":"","context":"In &quot;WordPress&quot;","block_context":{"text":"WordPress","link":"https:\/\/pixert.com\/blog\/category\/wordpress\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2014\/09\/facebooklikebox.jpg?fit=447%2C547&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":289,"url":"https:\/\/pixert.com\/blog\/full-screen-background-on-wp-login-page\/","url_meta":{"origin":404,"position":4},"title":"Full Screen Background on WP Login Page","author":"Pixel Insert \/ Pixert","date":"March 5, 2013","format":false,"excerpt":"The following function add full screen background on WP Login page 1. Open functions.php in your theme directory 2. Add this function to functions.php [text] \/\/ LOGIN - full background function my_login_style() { ?> <style type=\"text\/css\"> body.login { background:url('http:\/\/yourwebsiteaddress.com\/wp-content\/uploads\/wploginbg.jpg') no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size:\u2026","rel":"","context":"In &quot;Code Snippet&quot;","block_context":{"text":"Code Snippet","link":"https:\/\/pixert.com\/blog\/category\/code-snippet\/"},"img":{"alt_text":"WordPress - the logo","src":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/03\/wordpresslogo-300x68.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":290,"url":"https:\/\/pixert.com\/blog\/override-css-property-right-to-left\/","url_meta":{"origin":404,"position":5},"title":"Override CSS property right to left","author":"Pixel Insert \/ Pixert","date":"March 4, 2013","format":false,"excerpt":"\u00a0 This case is an example on how to override CSS property right to left We have this AdSense banner floating on the right side of the screen. What if you want to change it to the left Recently, I installed Floating AdSense plugin for WordPress. It's very helpful to\u2026","rel":"","context":"In &quot;Code Snippet&quot;","block_context":{"text":"Code Snippet","link":"https:\/\/pixert.com\/blog\/category\/code-snippet\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/posts\/404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/comments?post=404"}],"version-history":[{"count":0,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/posts\/404\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/media\/405"}],"wp:attachment":[{"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/media?parent=404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/categories?post=404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/tags?post=404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}