Forum Replies Created
-
AuthorPosts
-
Jonah
ParticipantHi Peter, we’re still working on getting better code pasting in the forum. For now please post code snippets to http://pastie.org/pastes/new or your place of choice.
Jonah
ParticipantHey Hamish,
Can you paste a link to your website so we can see what the problem looks like?
March 19, 2012 at 9:35 am in reply to: on list view, can I add code to make a "read more" link below each excerpt? #16909Jonah
ParticipantHi Lynn, this should do it for you: https://gist.github.com/31a7cff9675d27093f96
Jonah
ParticipantHi Dan,
Sorry but I can’t offer up a solution for you. You’ll need to figure out how to hack the core yourself, which I wouldn’t recommend anyway because your changes will be lost the next time you update, or find a developer who can help you.
Good luck!
– Jonah
Jonah
ParticipantHi Jason,
Just to cover the basic things first – do you have the latest version of the plugins (v2.0.4 for both PRO and the base) installed? Have you tried deactivating all other plugins to rule out a conflict? Have you made any customizations to the plugin that could be causing a problem? Have you tried flushing your permalinks by going to Settings > Permalinks? Let’s start with these things and go from there…
Thanks,
JonahMarch 18, 2012 at 9:45 am in reply to: Question on attaching Venue meta data to standard posts. #16898Jonah
ParticipantSounds good Gaelan!
Jonah
ParticipantWanna email me FTP details and I’ll take a look at what you’ve got? Email to jonah [at] tri [dot] be
Thanks,
JonahJonah
ParticipantHi Dave, the code you provided works for me when I put it in my themes list.php override. Not sure why it’s not working for you. Have you tried another browser?
Jonah
ParticipantAhhh so that’s the problem. It’s not getting the location name and since there’s no address the location is blank. Unfortunately I’m not sure how to modify this myself but I think in any case you’d need to modify the core in order to get the venue name in there.
This is definitely something we should do so I’ll add a feature request to our system but it probably won’t make it in until 2.1 or 2.2. No promises…
For now you’ll need to tweak the code yourself or hire a developer to help you.
Jonah
ParticipantIs this a copy of list.php in an ‘events’ folder you’re working with? Can you paste what you’ve got again?
Jonah
ParticipantHey Duncan, sorry I can’t offer anything else here. You’ll need to either find a different theme or hire a developer to take a look at this for you.
Jonah
ParticipantHi Peter, is it wrapped in PHP tags?
Jonah
ParticipantHi Dan, Google cal locations are working for me. I’m not seeing the Venue name show up but this was likely either an oversight or by design. How is it not working for you?
Jonah
ParticipantHi Patti, glad you got it figured out! Yeah it’s not setup to be dynamic for the event pages but will revert to using the_title() for any other pages. Sounds like you tweaked the code to your needs though. Let me know if you need anything else with this.
Jonah
ParticipantHey Robert, sure I can offer you some more pointers to get you going in the right direction. So, to separate out the date components what you’ll want to do is use separate calls to tribe_get_start_date() and pass in only the date chunk you want to display for that piece.
So for example, to just display the day:
echo tribe_get_start_date($post->ID, false, 'j');
To just display the month:
echo tribe_get_start_date($post->ID, false, 'M');
To just display the year:
echo tribe_get_start_date($post->ID, false, 'Y');
…and so on. In each case you’ll probably want to wrap the function in whatever markup and class/ID you want to be able to target it in CSS.
you can find more info in the tribe_get_start_date() function here: https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-date-functions/#functiontribe_get_start_date – and you find more info about PHP date parameters here: http://php.net/manual/en/function.date.php
Does that help?
-
AuthorPosts
