You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I display when and on what channels a specific show is scheduled? I looked at cablecast_get_schedules, but I don't think I can do it with that function.
The text was updated successfully, but these errors were encountered:
Think I figured this out by creating a new function that searches the schedule by show_id
Put this in theme_functions.php or functions.php
function cablecast_get_show_schedule($show_id) {
global $wpdb;
$table = $wpdb->prefix . 'cablecast_schedule_items';
return $wpdb->get_results($wpdb->prepare("SELECT * FROM $table WHERE show_id=%d AND run_date_time >= CURDATE()",
$show_id
));
}
Put this in your own theme file or modify display.php
How can I display when and on what channels a specific show is scheduled? I looked at cablecast_get_schedules, but I don't think I can do it with that function.
The text was updated successfully, but these errors were encountered: