[wp-trac] [WordPress Trac] #25191: Regarding Access of excerpt of Page
WordPress Trac
noreply at wordpress.org
Mon Sep 2 06:09:45 UTC 2013
#25191: Regarding Access of excerpt of Page
-------------------------------+------------------------------
Reporter: alpesh1988 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Comment (by alpesh1988):
Deactivation means 'deprecated' what i meant for. I explain you the
scenario.
The need is to show a excerpt for a page. To do so, I have a custom widget
in which from dropdown menu, I can select a one page out of the pages i
have built in site. For example, I selected 'About us' Page. I get the
page id using get_page(). After that I am not able to show the excerpt
using the key [post_excerpt]. It does not print anything. I guess It is
because page can not have excerpt. so the styling for 'about us' page in
given link1 is not same as in link2.
Currently I am getting content using wp_html_excerpt() with word limit.
so the question is Why [post_excerpt] does not work in get_page() ?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25191#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list