Forum Replies Created
-
AuthorPosts
-
bizzallmedia
ParticipantHi,
Am working on a local server, so can’t share any url at the moment.
Note that I have seen some themes that do show all organisers, so it must be doable.
Maybe I am using the correct thing but wrong syntax.
Dunno.Will try to find a workaround.
Thanksbizzallmedia
ParticipantOh wow, that was a clear and simple solution to add everything to list view ๐
Will continue to look and see if I can find a solution to the infinite scrolling
Thanks,
๐bizzallmedia
ParticipantThanks for the follow up Jaime,
Thereโs no need to manually add the additional organisers once imported.
All the organisers are there already because aggregator imports all the organisers.
Both in the event back-end and in the database I can find the organisers related to events with multiple organisers.
However when event calendar when displaying in the front-end, it only shows one of them.
So there should be some logic or function there that chooses to display only one of the organisers and not all of them. And as already pointed out thereโs a function that returns all organisers as in the event back-end they are all shows.Just need some kind of way to get that to work in the front-end when listing events.
bizzallmedia
ParticipantI did found this function in organizer.php that should display it…
tribe_get_organizersbut it then gives an error and shows
Array to string conversion in …… line ….
bizzallmedia
ParticipantOr a snippet so that it would show all organizers ๐
That would work as well for the moment ๐bizzallmedia
ParticipantAnything?
bizzallmedia
ParticipantHi,
Thanks the reply, and confirming that it is a bug.
As with the devs no none knows how long this might take and I would need to find a solution to this could we look the following that might be a solution. Am not a dev, but have no problem moving around some code, entering snippets, etc.So I found part in organizer.php followed by a function, not sure if this applies to how aggregator imports or if this can reclassify the organezer after the import. But is there a way to rewrite the function so that when there is multiple organisers, instead of the first organizer ID being returned for it to return the ID that imported the event?
/**
* Organizer ID
*
* Returns the event Organizer ID.
*
* @param int $postId Can supply either event id or organizer id.
* If none specified, current post is used.
* If given an event with multiple organizers,
* the first organizer ID is returned.
*
* @return int Organizer
*/
function tribe_get_organizer_id( $postId = null ) {
$postId = Tribe__Events__Main::postIdHelper( $postId );
$organizer_id = null;
if ( is_numeric( $postId ) && $postId > 0 ) {
$tribe_ecp = Tribe__Events__Main::instance();
// check if $postId is an organizer id
if ( $tribe_ecp->isOrganizer( $postId ) ) {
$organizer_id = $postId;
} else {
$organizer_id = tribe_get_event_meta( $postId, ‘_EventOrganizerID’, true );
}
}return apply_filters( 'tribe_get_organizer_id', $organizer_id, $postId ); }
- Organizer ID
*- Returns the event Organizer ID.
- @param int $postId Can supply either event id or organizer id.
- If none specified, current post is used.
- If given an event with multiple organizers,
- the first organizer ID is returned.
- @return int Organizer
bizzallmedia
ParticipantThanks for the follow up Cliff
Facebook event shows fixed dimensions, some event creators have an image matching that size, others don’t and upload something of any size in which case facebook takes part of the image to fit the dimensions they have set.Event aggregator imports the original file sizes, which is good, but I would like to display them the same way as facebook does, so not showing the whole image if the image is to big (or small) and displaying it at fixed dimensions set for the header image.
bizzallmedia
ParticipantThis reply is private.
bizzallmedia
ParticipantAnd would there be a similar snippet for list view?
Tried searching but couldn’t find one.Thx.
bizzallmedia
ParticipantThis reply is private.
bizzallmedia
ParticipantOkay, so you wrote “loading all events on the same page might increase the time it takes for the page to load”…
Is there a way, like on pinterest for example or other similar sites, where it loads xxx amount and the rest gets loaded while scrolling down?
bizzallmedia
ParticipantWow, that worked like a charm ๐
Thanks!February 7, 2018 at 5:44 am in reply to: same starting dates when using tribe_get_start_date #1446182bizzallmedia
ParticipantSorry my bad, found the issue… used n instead of j for how the date shows
bizzallmedia
ParticipantHi Willy,
Not a developer but been playing trying to play around with event calendar a bit for some projects I have and just noticed your post as I was looking for a solution for something similar.
Not something that was going to work for me but this was some work arounds I could think of that might work for you, there might be better solutions though.Option 1 (Using external plugin)
If you want to add any of the pro widgets on to you home page (or really any other widget) you can do so by using a plugin, for example: https://wordpress.org/plugins/widgets-on-pages/
And, if needed, you can style the widget as you please through css or even customise the layout of the widget with some child template coding.Option 2 (Direct)
Figure out a function that you can add to your functions.php that automatically assigns “nextwhatever” as category to your nearest upcoming events within a specific amount of days from todays date and removes it once the event has passes.
Then in your page use the event calendar shortcode to display all events with category “nextwhatever”Hope this helps.
- Organizer ID
-
AuthorPosts
