Home › Forums › Calendar Products › Community Events › Many Additional field with hyperlinks
- This topic has 15 replies, 4 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
March 12, 2013 at 7:30 pm #42490
clubbingpriest
ParticipantHi
I added 4 Additional field with hyperlinks in my form
http://theclubbingbible.net/events/community/add
At the moment all fields are displayed in public calendar, when you have only one link ie ticket link entered in the form, the 4 Additional fields are printed in the single.php page
Here the way i did my code in the single.php
http://snippi.com/s/htxya2f
I want if one field is empty, not to be displayed in single.php
What i am doing wrong?
Can you help?
Thank youMarch 12, 2013 at 7:42 pm #42491clubbingpriest
Participantas example
one event with the 4 fields entered in the event
http://theclubbingbible.net/events/ims-ibiza-grand-finale-festival-day-1/
one event with just one field entered in the event
http://theclubbingbible.net/events/ims-ibiza-grand-finale-festival-day-2-3/March 13, 2013 at 9:21 am #42560Barry
MemberHi clubbingpriest, I’m going to move this across to the Community Events forum.
March 13, 2013 at 12:28 pm #42595Casey
ParticipantClubbingpriest,
Try something like this: http://pastebin.com/w0jpTZ87It’s basically just checking that the field is not empty before it outputs it.
Let me know if that does the trick!
March 13, 2013 at 1:41 pm #42606clubbingpriest
Participantit do not work as when past into the single.php the event detail page only show the title an the rest show empty
March 13, 2013 at 2:01 pm #42609Casey
ParticipantAre you doing a template override of single.php?
I just want to make sure that this is not the single.php from your theme.
March 13, 2013 at 2:26 pm #42611clubbingpriest
Participantnot it’s the calendar event one
plugins/the-events-calendar/views/single.phpMarch 13, 2013 at 2:32 pm #42612Casey
ParticipantClubbingpriest,
Can you paste all of the code that’s in your single.php file to pastebin so I can see what’s currently there?March 13, 2013 at 4:06 pm #42617clubbingpriest
Participantdone now + a pastebin of teh single.php
http://pastebin.com/3sAUzFWsMarch 14, 2013 at 8:25 am #42643Casey
ParticipantCould you also send me a screenshot of the custom fields as they appear on the back-end? I’m just double-checking that your field names in the code are EXACTLY as you’ve entered them on the back-end.
March 14, 2013 at 10:31 am #42667clubbingpriest
Participantthe field names in the code are exactly the same on the back end
here the submission form
http://theclubbingbible.net/events/community/add
and a paste bin of the event-meta.php
http://pastebin.com/Te3Rh0mi
I put back the single.php with my mod without conditional php statement so you can see hoe it look
one event with the 4 fields entered in the event
http://theclubbingbible.net/events/ims-ibiza-grand-finale-festival-day-1/
On this event the links are perfect
one event with just one field entered in the event
http://theclubbingbible.net/events/ims-ibiza-grand-finale-festival-day-2-3/
on this one only the field Add a ticket have a link the other have not
and here a paste bin of the single.page the way i did my mod
http://pastebin.com/TQrhTLtG
When I implement your mod the page only generate the title all the rest is gone because of a php problemMarch 14, 2013 at 10:42 am #42670clubbingpriest
Participanthere the screenshot http://theclubbingbible.net/?attachment_id=1418
March 14, 2013 at 10:56 am #42672Casey
ParticipantTry this code instead and let me know if it does the trick: http://pastebin.com/DXuSxD30
March 14, 2013 at 11:35 am #42686clubbingpriest
ParticipantHI Casey,
Ace It works paerfect perfect
Thanks a millionMarch 14, 2013 at 11:36 am #42688Casey
ParticipantAwesome! Thanks for confirming that this got you sorted. Unless you disagree, I’m going to mark this thread “Answered” and close it out.
We really appreciate your support and please let us know if you need anything else in the future. If you find yourself with a few minutes and would be so kind as to give us a “Works” rating or a positive star voting on the WordPress.org repo (http://wordpress.org/extend/plugins/the-events-calendar/), or even a shoutout to your followers on Facebook or Twitter, it would mean a lot to us. Thanks again for using the plugin.
-
AuthorPosts
- The topic ‘Many Additional field with hyperlinks’ is closed to new replies.
