Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-05-11 02:54:12
- TracyRe
- Member
- Registered: 2005-10-09
- Posts: 20
Custom field doesn't display
I have installed Textpattern 4.03. Hosting is through GoDaddy.
I created three custom fields: Event_time, Event_cost, Event_teacher
I am using them in a form called special_event:
<code>
<h2><txp:posted format=”%A, %b %d” /></h2>
<h3><txp:custom_field name=“Event_time”> • <txp:custom_field name=“Event_cost” /></h3>
<h3><txp:title /></h3>
<h3><txp:custom_field name=“Event_teacher” /></h3>
<txp:body />
</code>
My problem is that the custom field Event_time is not displaying on my page:
http://www.harmonyyogaportland.com/
Look in the “Special Events” sidebar on the right. I faked the time by putting the text “2-5pm – $50” into the custom field Event_cost. If Event_time displayed, that line would now look like
2-5pm • 2-5pm – $50
When I first created the form the value of Event_time displayed. Then I moved fields around and played with my style sheet to get it to look how I wanted. At some point the value of Event_time disappeared. I think it was when I put Event_time and Event_cost together within <h3>
and put • between them.
I have tried removing the •, putting the custom fields in their own <h3>
s, but nothing seems to work. I definitely have a value in the field for this article. I can’t see any misspellings. I checked the capitalization of the custom field names.
Any help is gratefully appreciated.
Offline
#2 2006-05-11 06:46:56
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Custom field doesn't display
<txp:custom_field name="Event_time" />
You forgot to close the tag.
Offline
#3 2006-05-11 14:11:06
- TracyRe
- Member
- Registered: 2005-10-09
- Posts: 20
Re: Custom field doesn't display
Ah, it’s always the simple things. Works like a champ now. Thank you for the fresh set of eyes.
Offline
Pages: 1