Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // expected function get_the_excerpt($post_id) is deprecated
- function get_post_excerpt_by_id($id) {
- global $post;
- $post = get_post($id);
- setup_postdata($post);
- $the_excerpt = get_the_excerpt();
- wp_reset_postdata();
- return $the_excerpt;
- }
Add Comment
Please, Sign In to add comment