Home › Forums › Calendar Products › Events Calendar PRO › Is there a text limit? adding links to an event suddenly vanishes
- This topic has 13 replies, 2 voices, and was last updated 13 years ago by
Jonah.
-
AuthorPosts
-
April 4, 2013 at 2:32 pm #44900
epratt
ParticipantSo I’m creating links to products via the events page. Links are for time slots to an existing race option. Each hour from 9am to 5pm. Works fine up until I link 2pm, after that the whole post doesn’t show in the event. the page is hidden so you’ll have to enter it http://kartwithrusty.net/events/
this is what the final code was if this helps
Choose a Time Slot to see available Racing PackagesApril 4, 2013 at 2:37 pm #44903epratt
Participantoops sorry didn’t mean to actually link everything there, was trying to just show you the code I had in when it stopped working
April 4, 2013 at 2:50 pm #44907Jonah
ParticipantApril 4, 2013 at 2:51 pm #44908epratt
ParticipantApril 4, 2013 at 7:33 pm #44919Jonah
ParticipantHi epratt, and where are you entering this code?
April 4, 2013 at 7:49 pm #44922epratt
ParticipantI choose edit event, select the event and in the editor the main post section above the events calendar. The typical spot you do a post in a normal wordpress page.
April 5, 2013 at 6:37 am #44957epratt
ParticipantMorning Jonah, Have you had any luck? I have to finish this site and go live next week. If the events in the calendar pro aren\’t going to be able to show the time slots with links then i\’m going to have figure out another method of showing it ASAP. Thanks in advance for any help you can give me! -Eric
April 5, 2013 at 7:23 am #44970Jonah
ParticipantHi epratt,
Putting this into a single event works fine for me if I put it in Text mode (not Visual mode). Have you tried that? I’m not sure what else to have you try, it’s not an issue with our plugin, it’s either your code or the way you’re putting it in. I would actually suggest adding this to events/posts via PHP so that you don’t need to put it in each event. You could do this by modifying the /wp-content/plugins/the-events-calendar/views/single.php file – make a copy of that and place in an ‘events’ folder in your theme. Then between lines 107-109 is where you could put your code. That way it will automatically show for all events without having to manually add it to all of them.
Does that help?
April 5, 2013 at 7:59 am #44977epratt
ParticipantIf I was to add it to the single.php how would I go about linking them to each specific product? The products are not static in the sense of it’s only those 8 race options. The product is actually the specific day and the race packages are the variables. So Each event would have different links to different products for each hour if that makes sense. If I was to edit the single.php adding that code wouldn’t the links be the same for each event? Let me know if I’m completely wrong on that.
-Eric
April 5, 2013 at 8:12 am #44978epratt
ParticipantHi Jonah, Ok so I just went the straight ahead route and added buttons with the links and that worked. There has to be something with the plugin and something i have running on here that is not working right. I was also losing the google calendar button as well. Plus in my custom field drop downs I never see the option for URL which I read should be an option. Don’t know and at this point the button option works and I’m going with that, time is not on my side 🙂
Thank you for your help!
-EricApril 5, 2013 at 9:14 am #44995epratt
ParticipantGoogle calendar import button vanishing. Weird but where is the code for that function located? I’ll manually add it to the lists page. I found the code for adding a single event on the single.php page but adding that to lists.php only allowed me to import 1 event instead of importing the whole calendar.
April 5, 2013 at 2:29 pm #45023Jonah
ParticipantHi epratt,
You’re right, adding the code to single.php would not be a viable option if you need the links to be different. There’s other ways you could still do this dynamically but that’s beyond what I can help you with here.
There is no URL field yet, it’s coming in 3.0.
Did you need any other help here?
– Jonah
April 5, 2013 at 2:37 pm #45026epratt
ParticipantThe only thing is the add to google calendar button seems to be gone at the bottom of the lists page and the calendar view page. It shows on the individual event page, but I thought I saw it on the those other pages so you could import the whole calendar into google. Am I mistaken on that and there isn’t a button for that? The button has been vanishing on me at times depending on what I put in the post part of an event. Also if I put anything in the excerpts box it makes everything I put in the post part vanish. I don’t know if it’s a bug or the excerpts has priority. It would be nice to put my buttons in the post part and some info about the event in the excerpts.
April 8, 2013 at 10:55 am #45224Jonah
ParticipantHi epratt,
No, there is no Google Calendar import for the event list or calendar pages. You would need to add this yourself. It should always show on single events though but there may be something in the code you are putting into each event that is conflicting with it. If so, I would need a specific example where you put in code and the button is not showing so I can troubleshoot.
-
AuthorPosts
- The topic ‘Is there a text limit? adding links to an event suddenly vanishes’ is closed to new replies.
