Tagged: wp Toggle Comment Threads | Keyboard Shortcuts

  • saif 8:49 am on April 27, 2012 Permalink | Reply
    Tags: excerpt, how to, pages, wp   

    Add Page Excerpt Option in WordPress Admin Panel 

    WordPress is not a blogging platform now, has many other features, options, resources, plugins to fulfill your requirements.

    In some wp version(like 3.1), for ‘pages’, no ‘excerpt’ option, even not option in ‘Screen Options’ to display it . So an easy way to add this to your wp admin panel, follow below steps:

    add the following code to your functions.php file.

     //Add Excerpts to Pages 
    function themeprefix_add_page_excerpt_support() {
     add_post_type_support( 'page', 'excerpt' ); 
    } 
    add_action('init', 'themeprefix_add_page_excerpt_support'); 

    We have done this excerpt option by a wordpress hook. At first we used add_post_type_support function to use a specific post type option then we packed within a function. And this function called by a worpress hook/filter to make it available for admin panel.

    Functions.php is found in “wp-content\themes\[your-currently-active-theme]\”.

    Cheers 🙂

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel
%d bloggers like this: