![]() |
Code Help
hey guys, i need some help with some code. what code would i use if i only wanted to show "Cumshots" when there is a value entered? i tired:
<?php if((get_post_meta($post->ID, "shots", true)) ) { ?> but it didn't work. <td><span>Name:</span> <? echo $name ?></td> <td><span>Video:</span> <? echo $video ?></td> <td><span>Pictures:</span> <? echo $pics ?></td> <td><span>Cumshots:</span> <? echo $shots ?></td> |
I assume you're talking about WordPress.
I don't know what are the $name, $video and $pics variables in your code, but if you have a custom field named 'shots' and you want to display it's value if it exists, then this works: PHP Code:
|
awesome, thanks for your help. i'll give this a try.
|
All times are GMT -7. The time now is 01:30 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123