Home › Forums › Calendar Products › Events Calendar PRO › Venue Website Display
- This topic has 9 replies, 2 voices, and was last updated 11 years, 6 months ago by
Brian.
-
AuthorPosts
-
October 9, 2014 at 8:04 am #798691
Jordan Polon
ParticipantThe website venue display in single event views is displaying like this:
Website: ctconventions.comI’ve just gone through a bunch of uopgrades abnd downgrades with this plugin to fix a major error, (3.6 seemed to solve alot of the issues I had with.7 and .8) but if you could tell me what I can correct to make it go back to displaying just the website I’d appreciate it. Is this an easy fix?
October 10, 2014 at 7:07 am #800696Brian
MemberHi Tara,
Sorry for the troubles of having to upgrade and downgrade. What issues were you having with the new versions of the plugins?
You would like to display the website without it being a link, correct?
Here is how to do that the link is created in this file here:
\the-events-calendar\views\modules\meta\venue.php
You can follow our themer’s guide to move it to your theme and modify it there.
You will want to replace the coding that looks like this:
<?php echo $website ?>
with this:
<?php echo tribe_get_event_meta( tribe_get_venue_id(), ‘_VenueURL’, true ); ?>
Let me know if that is what you are looking for or you would like some more help.
Thanks
October 10, 2014 at 8:32 am #800864Jordan Polon
ParticipantHi Brian. Thanks for responding, it’s been awful. I imported a bunch of my events to a different site. (Which helps to show what I mean because they’re the same exact event.)
This is what I want:
http://envisionfesthartford.com/event/free-second-saturdays-for-families-at-the-wadsworth-atheneum-2/2014-01-11/
This is what I have:
http://www.hartford.com/event/free-second-saturdays-for-families-at-the-wadsworth-atheneum-2/2014-10-11/Is that definitely themers guide related?
October 10, 2014 at 12:02 pm #801314Brian
MemberI see what you mean about the link. That is strange that it is not reading the link tags as html.
I took a look and it looks like the Pageline Theme has a custom stylesheet for the Events Calendar. Did you add that or was it included?
Do you have any custom templates for the Events Calendar in your theme? If so, what is in this file?
tribe-events\modules\meta\venue.php
Maybe that function has changed for the Event Website and is causing the issue.
Let me know what you find out.
Thanks
October 10, 2014 at 2:42 pm #801668Jordan Polon
ParticipantI did have a custom folder in there.
I deleted it and this is what it looked like: http://www.hartford.com/wp-content/uploads/2014/10/Screen-Shot-2014-10-10-at-5.34.30-PM.pngI reuploaded it, and now its back to this. http://www.hartford.com/wp-content/uploads/2014/10/Screen-Shot-2014-10-10-at-5.36.00-PM.png
So, that’s not the issue (I don’t think). Do you have any other suggestions? The site I showed you earlier as a comparison is on 3.71. I could try upgrading to that but I’m a little afraid.(I really want to be on 3.8, but this is what that did: http://www.hartford.com/wp-content/uploads/2014/10/Screen-Shot-2014-10-08-at-3.46.27-PM.png & http://www.hartford.com/wp-content/uploads/2014/10/Screen-Shot-2014-10-08-at-7.59.59-AM.png, and a bunch of other madness.)
October 13, 2014 at 7:11 am #807377Brian
MemberThanks for providing all that information, I apologize for the continued troubles.
I am still not sure of the exact issue. It is strange that this is the only function that does not show correctly.
I came up with a quick fix to bypass that function.
See if by editing this file in your theme:
\the-events-calendar\views\modules\meta\venue.php
You can replace this:
<?php echo $website ?>
with this:
“><?php echo tribe_get_event_meta( tribe_get_venue_id(), ‘_VenueURL’, true ); ?>
That is taking the link in the url and creating a hyperlink out of it.
If that does not solve it then there is a conflict taking place causing the issue.
Let me know if that works for you or we can go from there to the next step.
Updating
Not sure why the Events start duplicating like that in the Month view. I have seen that once before, but in that case it turned out to be a theme conflict that caused the issue. Your could be different.Thanks
October 13, 2014 at 2:47 pm #808397Jordan Polon
ParticipantThis is so weird. <?php echo $website ?> isn’t even there.
This is what I’m seeing in the \the-events-calendar\views\modules\meta\venue.php
http://pastebin.com/KKxM0NY7
Any other ideas?Re Update:
I’d like to try and go up to 8 again from an older backup on a test site and see what happens. Is there a way, from a complete backup, just to locate the event entries? And, Should I start a new thread when I do that?You guys rule, thanks so much.
October 14, 2014 at 7:20 am #810173Brian
MemberThanks for providing the coding in a pastebin. It is so much easier for us to read!
I found the issue this line here:
<?php esc_html_e( $website ) ?>
See if you can replace that with
<?php echo $website ?>
This function esc_html_e is escaping the html and causing the issues. That is generally used to escape the url directly not a link.
Re Update:
I’d like to try and go up to 8 again from an older backup on a test site and see what happens. Is there a way, from a complete backup, just to locate the event entries? And, Should I start a new thread when I do that?
The Events, Venues, and Organizers are all custom post types so you could use WordPress’s Exporter and Importer. If you do not export all the content of the site though the Featured Images and maybe other information does not transfer on importing. Unfortunately, that is a limitation of WordPress. If you need some help on this, please create a new ticket as we can provide better support that way.
Let me know if removing esc_html_e fixes the issue for you.
Thanks
October 14, 2014 at 12:40 pm #810855Jordan Polon
ParticipantThanks so much for your assistance. It did! I will start a new thread for the update.
October 14, 2014 at 12:51 pm #810885Brian
MemberGreat, glad it helps, I am going to go ahead and close this ticket, but if you need any other on something else please post a new ticket.
Thanks!
-
AuthorPosts
- The topic ‘Venue Website Display’ is closed to new replies.
