Forum Replies Created
-
AuthorPosts
-
Matt
ParticipantRight on, thanks for letting me know! I will add them to drafts. Cheers.
Matt
ParticipantGeorge, that is a huge help! You are a legend, we will be fine from here. Thank you so much for your help, I love that you not only gave us pointers but also some examples. That made it a lot easier and we will be able to take it from here. Thanks so much, we really appreciate it.
Matt
-
This reply was modified 9 years, 9 months ago by
Matt.
Matt
ParticipantOh, and just to clarify, in that last screenshot (https://www.flickr.com/photos/144296472@N05/28121723483/in/dateposted-public/) I realise that I have written “the_content” inside what would effectively be published as the_content to the site, but what I am referring to by “the_content” is the main “Details” box from the Facebook event.
Thanks,
Matt
Matt
ParticipantHi George
Yes, sorry, you are right. That was a bad typo of mine, the file did indeed come from
wp-content/plugins/the-events-calendar/src/views/single-event.php
I’m sorry about that.
So with that mistake out of the way, let’s take an event that is currently on Facebook. The event we imported was from this link:
https://www.facebook.com/events/1576216962671876/
Once it has been published, it is now here:
http://www.aroundtown.co.nz/event/that-sugar-film-free-community-screening/
We are wanting to edit the content that shows between the featured image, and the + Google Calendar // + iCal Export buttons. This would be the info you can see in the following image: https://www.flickr.com/photos/144296472@N05/28121610253/in/dateposted-public/
When we did some trial and error, we added the following Facebook event:
https://www.facebook.com/events/1060477440673807/
Which then was published to our site as:
http://www.aroundtown.co.nz/event/the-gruffalo/
You can see that we removed the_content and replaced it with “This is a test”, as you would expect from the following screenshots:
https://www.flickr.com/photos/144296472@N05/28659739901/in/dateposted-public/
https://www.flickr.com/photos/144296472@N05/28452701780/in/dateposted-public/However, when editing the event we still see all the content, which makes sense, because all we did was remove it from being echo’d to the site.
https://www.flickr.com/photos/144296472@N05/28659814811/in/dateposted-public/
What we are wanting to do is one step before this process. We actually want the details like the start date, start time, venue name and location etc, to be added to the content box, not to their own meta boxes.
Kind of like this:
https://www.flickr.com/photos/144296472@N05/28121723483/in/dateposted-public/
That is, we would rather that the details weren’t published in their own meta boxes, but rather in the content box itself, and then the_content is published to the site with all the details contained inside it (as in, single-event.php would probably just have the_content, and not all the calls after it).
Obviously, each of these lines in the screenshot would actually be populated with the relevant content from the facebook event.
Does that make more sense? Sorry, I hope it’s not more confusing 🙂
Thanks a lot,
Matt
ps. I added images to flickr just so that I could guarantee the images staying connected and inline with the conversation. Hope it wasn’t annoying 🙂
Matt
ParticipantThanks a lot George, I appreciate the reply.
So I have removed default-template.php. I then made a copy of single-event.php from wp-content/plugins/the-events-calendar/single-event.php. I then put the copy into [my-theme]/tribe-events.
I started adding html markup after the function the_content() but nothing came through into the post.
I then commented out the_content() entirely so the file just had my markup in its place, but the post was still being created as per normal. That lead me to believe that perhaps the original file was still being referenced. So I renamed the original file in wp-content/plugins/the-events-calendar, but the event still loaded as it did originally.I feel like I’m missing a step or two. Have I got the right single-event.php file? And once I’ve copied it into the new folder under my theme, what do I do with the original file?
Thanks a lot,
Matt
-
This reply was modified 9 years, 9 months ago by
-
AuthorPosts
