然后在需要的地方调用自定义字段,一般是在文章最后
<?php
$f = get_post_meta($post->ID, 'postfrom', true);
$furl = get_post_meta($post->ID, 'furl', true);
if($f){
echo '文章来源:'."<a href="/$furl" target='blank' rel="nofllow noopener">$f</a>";}
else echo '文章来源:'."本站原创"
?>
