Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get_page_excerpt() not working
#4
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 :

Code:
<?php echo getExcerpt(returnPageContent($slug), 250); ?>
Reply


Messages In This Thread
get_page_excerpt() not working - by bluzer - 2018-05-20, 12:24:06
RE: get_page_excerpt() not working - by Bigin - 2018-05-20, 16:28:16
RE: get_page_excerpt() not working - by Bigin - 2018-05-20, 16:30:07
RE: get_page_excerpt() not working - by Carlos - 2018-05-20, 16:33:23
RE: get_page_excerpt() not working - by bluzer - 2018-05-21, 00:56:24



Users browsing this thread: 1 Guest(s)