I have been trying to put html into the photo description. Specifically a form: an example of such a form is as follows:
Custom Avalanche 11x14 Poster $62
Custom Avalanche 16x24 Poster $105
Custom Avalanche 20x30 Poster $136
I noticed that a href html for links works but what about other html. Can anyone help?
Html tags are filtered out by the allowed tags option. If you really want to do this, you will have to enable all the tags you want to use. A better approach might be to use the custom data field for this. A description really is not a good place to put forms as descriptions get used all over the place.
How would I go about making a custom data field? Could you point me in the right direction? I'm using the stopdesign theme and i'd love to put a part in there for each photo for that.
I did look at the plug ins and also the tried the ezenpage but I guess for my purpose I would rather manually do it for each image. I tried to do it in the custom data field and it did the same filtering out as it did in the description. Any other ideas?
thanks! sorry for being a newbie and not knowing much about this lol. So i finally got it to work in the description but the custom data field doesn't show anything at all on the page. even if i just type in there...
Ok. So I did some digging in the them i have. and a little guess work and I also looked in the function guide. what is the custom data function? I didn't see anything my guess is that i would have to insert something like this:
where i want it to go in image.php (i have the stopdesign theme)
am i thinking correctly?
There is a function getCustomData() which will return whatever is stored in the database. If you store the complete HTML you can just use echo getCustomData();. But it seems a waste of space to store the whole form. All you really need are the variable parts. Then you insert these into the form in your page script.
No need for the function check it is a standard one. We try to make hte names of functions "speaking" so it is:
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetAlbumCustomData
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintAlbumCustomData
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetImageCustomData
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintImageCustomData
Hint for searching functions: On http://www.zenphoto.org/documentation/ click on "all elements" (top right) and use your browsers page search function.
Y'all are awesome!! I got it to work. Many thanks!!