2018-05-20, 16:33:23
get_page_excerpt() displays an excerpt of the current page. It doesn't work for other pages, since there's no parameter to specify another page slug.
This may work for page with slug $slug :
This may work for page with slug $slug :
Code:
<?php echo getExcerpt(returnPageContent($slug), 250); ?>