Custom Fields and URLs
-
Hi. I’m trying to do some work with Custom Fields, but I clearly do not fully understand them and can’t really find a plug-in that does what I want. So here are my issues:
1. I have a custom field called URL which is an address I want to link to. The problem is that I want that link to wrap around an image I put in the post. So I write my post, put in a pic, enter an address in the URL custom field and then the output would be something like:
<a href="URL CUSTOM FIELD LINK"><img src="from the post" /></a>
2. The second issue I have is that I have another custom field, Via. It’s also for a web address, but what I can’t figure out how to get WordPress to automatically turn it into a functioning link. Additionally, I’d imagine the PHP would have an if/then statement so that if there is no Via in that particular post, it doesn’t try to show anything.
I hope I was able to explain that well enough. Thanks for any help.
- The topic ‘Custom Fields and URLs’ is closed to new replies.