Created
May 1, 2017 10:15
-
-
Save barrykooij/8eec0474f420aa39457692095cae4ec8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $excerpt = wp_trim_words( strip_tags( strip_shortcodes( ( ( '' != $related_post->post_excerpt ) ? $related_post->post_excerpt : $related_post->post_content ) ) ), $excerpt_length ); ?> | |
<p><?php | |
global $post; | |
$o_post = $post; | |
$post = $related_post; | |
echo apply_filters( 'rp4wp_post_excerpt', $excerpt, $related_post->ID ); | |
$post = $o_post; | |
?></p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment