We're merging with GenerateBlocks! Learn more here.

Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Some suggestions (you might already have solutions for?) Reply To: Some suggestions (you might already have solutions for?)

#2890
Adam
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?