Fields such as author, URL, and so forth are attached to submitted posts as custom fields, so you can use get_post_meta() or similar to display the info as needed anywhere in the theme template. It’s all explained in the readme.txt, which I recommend reading, and also here is more information to explain how custom fields work, how to display them in your theme, and much more:
http://codex.ww.wp.xz.cn/Custom_Fields
http://codex.ww.wp.xz.cn/Function_Reference/get_post_meta
i,m using this code in single.php file for show url
<?php
$s = get_post_meta($get_the_ID, ‘Show-Url’, true);
if($s==0){
$t = get_post_meta($get_the_ID, ‘usp-url’);
echo “View the recipe <anchor href='” .$t[0].”‘> here</anchor>“;
}
?>
but it,s showing my post url not showing user submitted url
you can see in this post http://www.yummysnaps.com/dsfsefrewrew4re/
“Show-Url” looks incorrect.. I recommend checking the actual value of the custom field (located beneath the submitted post in Edit Post screen).
http://tinypic.com/view.php?pic=vrudqb&s=8
see image i,m using Show-url in custom field if i add Show-url = 0 then it will show in post else hide
In that screenshot, there are two custom fields that are at issue: the first one is the one that is added by USP, and is the correct one. Notice the capitalization — all lowercase. The second one, which it looks like you are trying to add as new, is incorrect, not added by USP, and is capitalized. I hope this clears things up.
It,s working in UPS regular plugin but not working in this UPS pro plugin.Can you give me exact code ?
Ah – that’s the issue right there.. these forums at ww.wp.xz.cn are only for plugins that are hosted in the WP Plugin Directory. So I assumed that you were referring to the free version of USP. For USP Pro, you can get help via forum or email at Plugin Planet:
http://plugin-planet.com/usp-pro-display-custom-fields/