我使用以下代码来显示自定义值。自定义值为“网站”
<?php
$custom_fields = get_post_custom($post_id); //Current post id
$my_custom_field = $custom_fields[\'website\']; //key name
foreach ( $my_custom_field as $key => $value )
echo $key . " => <a href=\'" . $value . "\'>Click Here</a><br />";
?>
但是,在“单击此处”之前,我想包括另一个自定义值,thumb。因此,输出将是:
Value of custom field thumb
Value of custom field website
谢谢。