Forum Replies Created
-
AuthorPosts
-
May 29, 2015 at 2:04 am in reply to: Countdown timer widget: Change font size and centre countdown numbers #965945RyanParticipantMay 28, 2015 at 1:36 am in reply to: Countdown timer widget: Change font size and centre countdown numbers #965572RyanParticipant
Sorry I meant to say that I also tried the following for centring the numbers:
.widget.tribe-events-countdown-widget { width: 100%; margin: 0 auto; }
May 25, 2015 at 1:31 am in reply to: Undefined variable postmeta_table in /tribe-event-query.class.php on line 948 #964775RyanParticipantHi Brian,
Our theme developer came up with a solution to this issue. See his message below
——————————————–
I think i found their error, they are missing a case to return a value. I just added an else statement.
// check if are any meta queries
if ( ! empty( $qv[‘meta_key’] ) ) {
$postmeta_table = ‘tribe_event_postmeta’;
} else {
if ( isset( $qv[‘meta_query’] ) ) {
if (
( is_array( $qv[‘meta_query’] ) && ! empty( $qv[‘meta_query’] ) ) ||
( is_a( $qv[‘meta_query’], ‘WP_Meta_Query’ ) && ! empty( $qv[‘meta_query’]->queries ) )
) {
$postmeta_table = ‘tribe_event_postmeta’;
} else {
$postmeta_table = $wpdb->postmeta;
}
} else {
$postmeta_table = $wpdb->postmeta; //Added this else statement
}
}
return $postmeta_table;In this file: \wp-content\plugins\the-events-calendar\lib\tribe-event-query.class.php
Approx line 948 ( Depending on the version )
———————————————–
I implemented this and worked on my end.
Please investigate.
-
AuthorPosts