How to display excerpt in wpp_post filter function?
-
In a function hooked to
wpp_post
filter, the following works for displaying the entry permalink:get_the_permalink( $p->id )
One would assume that similarly, for showing excerpt this would work:
get_the_excerpt( $p->id )
but its output is just empty.
Any idea?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to display excerpt in wpp_post filter function?’ is closed to new replies.