Forum Replies Created
-
AuthorPosts
-
amycarolyn
ParticipantYes, this is perfect and works great. Thank you! Have a nice day.
amycarolyn
ParticipantI found a solution in a different support ticket where the Event view is modified with a function. It looks like that person received help for a similar question so can you confirm you can’t help me? I do have a Pro license (and we’ve purchased a Community license as well under my client’s account).
//*Show All Events in Map View
add_action( ‘tribe_events_pre_get_posts’, ‘unlimit_map_view’ );
function unlimit_map_view( $query ) {
if ( defined( ‘DOING_AJAX’ ) && DOING_AJAX && $query->get(‘eventDisplay’) == ‘map’ ) {
$query->set(‘posts_per_page’, ‘-1’);
}
return $query;
}I’m thinking I can use this to pull events that don’t have a location attached but since I don’t know how it’s being queried to begin with I’m not sure how to override it. Do you know which file contains the query? I haven’t found it yet.
amycarolyn
ParticipantI am a developer I was just hoping you had the correction function on hand or could point me to the right part of the documentation as I’m having trouble finding information on it.
amycarolyn
ParticipantNo, I would like to change it to a cropped thumbnail. It’s currently not cropped. What image size is being pulled?
amycarolyn
ParticipantThanks, this helped me get the code working. Much appreciated!
amycarolyn
ParticipantYour documentation doesn’t cover this, am I crazy or looking in the wrong spot? I’ve seen you tell people on other threads to use ACF to add an image so I would assume it’s possible. Any recommendations? Who could I hire to tell me the answer?
amycarolyn
ParticipantHere is the missing snippet.
$organizerlogo = get_field(‘organizer_logo’, $postId);
echo wp_get_attachment_image($organizerlogo, ‘meta-thumb’); -
AuthorPosts
