Home › Forums › Pro Support › Some suggestions (you might already have solutions for?) › Reply To: Some suggestions (you might already have solutions for?)
November 1, 2017 at 3:11 pm
#2890
Participant
To my great surprise, this worked! (I have no idea if this is good code or not, but seems to be working as I want!)
function wpsp_excerpt( )
{
global $post;
$content = get_post_meta( get_the_ID(), $key = 'wpsp_excerpt', $single = true );
echo $content;
}
I had to edit the functions.php file though, as it kept returning fatal error cannot redefine function when I added it to Code Snippets. Is there another way around this so that I can add the fix in Code Snippets instead of editing plugin files?