Home › Forums › Calendar Products › Events Calendar PRO › The output from the additional fields of the type "URL" seems to be broken
- This topic has 7 replies, 2 voices, and was last updated 8 years, 5 months ago by
Nicole.
-
AuthorPosts
-
October 30, 2017 at 4:42 am #1371278
Nicole
ParticipantThe output from the additional fields of the type “URL” seems to be broken.
Please see “Where to book” on this page: http://www.sunburychc.org.au/event/home-schooling-regulations-roadshow-outer-north/
This is an additional field of the type URL and all that is entered in this field is the actual URL https://www.eventbrite.com/e/home-schooling-regulations-roadshow-strathmore-heights-session-tickets-38860815746
October 31, 2017 at 6:55 am #1372063Jaime Marchwinski
KeymasterHi Nicole,
Thanks so much for reaching out!
Would you mind walking me through how you are importing this event? I see that it is an Eventbrite event and it is possible that you may not be able to import this event without the Evenbrite Tickets add-on.
In the meantime, let’s try to rule out if there is some type of conflict at play.
This is usually because of:1. A conflict with another plugin
2. A conflict with your WordPress theme
3. A template customization for the Events Calendar that requires updating
When it comes to that type of issue, it is preferable to troubleshoot in a staging environment if you have one.
A first quick test is to simply temporarily revert back to a default WordPress theme such as twenty-sixteen to see if the issue persists.
The next step would be to go through our testing for conflicts procedure and let us know what you find out.
Basically the goal here is to revert back to a bare WordPress installation to see if the problem persists. It also allows us to pinpoint what the cause of the issue is.
But, before you do that, there are 2 things I would advise:
1. Make a backup of your database
2. Consider activating a “Maintenance Page” plugin if you are doing this on your live site (to minimize impact on your visitors)
Let me know how that goes!
Thanks,
Jaime
November 1, 2017 at 7:59 pm #1373428Nicole
ParticipantThanks for your response however you seem to have misunderstood the issue.
This is not related to an event import.
This issue is present for all manually added events in the wordpress admin. I can create a new event manually and add a link to the custom field type URL and the same problem is present.
This is not a conflict. It’s a bug in the plugin code. I could look at the code myself and work out why the output for the custom field type URL is displaying all the HTML however I rather not make changes to the core so I was hoping you could provide a tracked fix.
Best Regards,
NicoleNovember 2, 2017 at 5:53 am #1373619Jaime Marchwinski
KeymasterHi Nicole,
I apologize for misunderstanding. Now I see that you are adding a link in a custom field, and that link is not displaying properly. Would you mind sharing with me how you are displaying that link?
If you go to Event Settings < Additional Fields, you can add a field for a URL there. I tested out that process with the link that you provided with a default theme, and it works properly for me. Here is information about that process to review:
https://theeventscalendar.com/knowledgebase/pro-additional-fields/
Let me know how it goes!
Thanks,
Jaime
November 5, 2017 at 5:33 pm #1375708Nicole
ParticipantHi Jaime,
Yes that is how I am created the additional field by going to events > settings > additional fields.
The field label is “Where to book” the field type is URL.
There are no other options to choose.
Then when I create an event and add a URL in this field the output is not html it just shows the html code and tags as plain text. This output is the default as generated by the plugin for a single event. I believe the file is single-event.php and the section is event meta which calls modules/meta.php. We have not edited this file in any way. I understand the pro version is then adding the additional fields via events-calendar-pro\src\views\pro\modules\additional-fields.php. The code says:<?php foreach ( $fields as $name => $value ): ?> <dt> <?php echo esc_html( $name ); ?> </dt> <dd class="tribe-meta-value"> <?php // This can hold HTML. The values are cleansed upstream echo $value; ?> </dd> <?php endforeach ?>So why is this not outputting the html correctly?
Best Regards,
NicoleNovember 6, 2017 at 5:19 am #1375941Jaime Marchwinski
KeymasterHi Nicole,
I’m sorry to hear that you are still having this issue!
The field label is “Where to book” the field type is URL.
There are no other options to choose.Just to clarify, are you saying that there are no other options to choose under field type? If so, please provide me with a screenshot so I can see what you are seeing.
Also, would you mind telling me exactly what you are entering in that field? In other words, are you entering just a URL, or additional HTML as well?
Another option is to add the URL into the Event Website field on an Add Event page. You can customize the look of this URL by following this tutorial:
https://theeventscalendar.com/knowledgebase/url-as-word-button/
If the above suggestion is not what you are looking for, since I am not able to reproduce this issue, I would recommend running through our testing for conflicts procedure, if you haven’t already done so, just to rule out any conflicts.
Let me know how it goes!
Thanks,
Jaime
November 28, 2017 at 8:36 am #1393773Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘The output from the additional fields of the type "URL" seems to be broken’ is closed to new replies.
