// Custom Feed function add_custom_rss_feed() { add_feed('revive', 'custom_rss_feed_template'); } add_action('init', 'add_custom_rss_feed'); function custom_rss_feed_template() { get_template_part('rss', 'revive'); } // Add a custom interval for 4.5 hours function custom_cron_schedules($schedules) { $schedules['four_half_hours'] = array( 'interval' => 16200, // 4.5 hours in seconds 'display' => __('Every 4.5 Hours') ); return $schedules; } add_filter('cron_schedules', 'custom_cron_schedules'); // Schedule an event to refresh the custom RSS feed every 4.5 hours if (!wp_next_scheduled('refresh_old_posts_feed')) { wp_schedule_event(time(), 'four_half_hours', 'refresh_old_posts_feed'); } else { $timestamp = wp_next_scheduled('refresh_old_posts_feed'); wp_unschedule_event($timestamp, 'refresh_old_posts_feed'); wp_schedule_event(time(), 'four_half_hours', 'refresh_old_posts_feed'); } add_action('refresh_old_posts_feed', 'generate_old_posts_feed'); function generate_old_posts_feed() { // Rotate the post IDs in the option $stored_posts = get_option('last_3_posts'); if (!$stored_posts || count($stored_posts) < 3) { // Initialize with 3 random posts if not already set $args = array( 'post_type' => 'post', 'posts_per_page' => 3, 'orderby' => 'rand', 'date_query' => array( 'before' => date('Y-m-d H:i:s', strtotime('-1 month')) ) ); $query = new WP_Query($args); $stored_posts = wp_list_pluck($query->posts, 'ID'); update_option('last_3_posts', $stored_posts); } else { // Rotate the first post out and add a new one array_shift($stored_posts); $args = array( 'post_type' => 'post', 'posts_per_page' => 1, 'orderby' => 'rand', 'date_query' => array( 'before' => date('Y-m-d H:i:s', strtotime('-1 month')) ), 'post__not_in' => $stored_posts ); $query = new WP_Query($args); $new_post_id = $query->posts[0]->ID; $stored_posts[] = $new_post_id; update_option('last_3_posts', $stored_posts); } } // Debugging function to log feed activity function log_feed_activity($message) { $log_file = ABSPATH . 'wp-content/debug.log'; $current_time = date('Y-m-d H:i:s'); file_put_contents($log_file, "$current_time - $message\n", FILE_APPEND); } // Include the last shared post title in the log function log_last_shared_post($post_title) { log_feed_activity("Generated feed content for post: $post_title"); } Los Pingüinos de Madagascar (2014) • Osito Barrigón

Los Pingüinos de Madagascar (2014)

ob.com
2 Min Lectura

Los espías más famosos del cine animado están por adueñarse de las pantallas con Los Pingüinos de Madagascar (Penguins of Madagascar).

En esta historia llena de intriga y humor conocerás el origen de Skipper, Kowalski, Rico y Cabo, el cuarteto que acaparó los reflectores en la trilogía de Madagascar.

Desde su infancia y el inicio de su amistad, hasta su ingreso a la organización secreta Ráfaga Polar, el cuarteto viajará por todo el mundo para detener a un villano que amenaza con destruir el planeta.

Y aunque el destino de la humanidad está en sus aletas, estos personajes tienen su propia agenda: adueñarse de un histórico cargamento de Cheesy Dibbles (su botana favorita).

“Lo que hace atractivos a los pingüinos en todas las películas son sus personalidades distintivas y fuertes”, afirma el director Eric Darnell en entrevistas proporcionadas por la distribuidora.

“Son como una banda de hermanos que valoran, por sobre todo, su amistad, su código moral y el amor que se tienen entre ellos. Además, llaman mucho la atención porque son hilarantes”, añade Simon J. Smith, quien codirige el filme.

La película está hecha con el tipo de elementos que abarrotan las cintas de espionaje: suspenso, antagonistas con sed de poder, giros de tuerca, increíbles escenas de acción y locaciones exóticas, en este caso Antártida, Venecia, Shanghai y NY, entre otras.

Título Original: Penguins of Madagascar (2014)
Dirigida por: Eric Darnell, Simon J. Smith
Con: Tom McGrath, Chris Miller, Christopher Knights, Conrad Vernon, John Malkovich.
Estudio: Walt Disney Pictures
Sitio Oficial: facebook.com
Rating: PG -Guia de Padres Recomendada-
Fechas de Estreno: EE.UU. 26 – Nov, ESPAÑA 28 – Nov, MÉXICO 18 – Dic
Comparte Este Artículo
Por ob.com
Seguir:
"A tubby, little cubby all stuffed with fluff".
Deja un comentario