add_action( 'after_setup_theme', 'blankslate_setup' ); function blankslate_setup() { add_theme_support( 'title-tag' ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'post-thumbnails' ); add_theme_support( 'html5', array( 'search-form' ) ); register_nav_menus( array( 'main-menu' => esc_html__( 'Main Menu', 'blankslate' ) ) ); add_image_size( 'thumb_size', 80, 80, true ); add_image_size( 'related_size', 225, 280, true ); } // REMOVE WP EMOJI remove_action('wp_head', 'print_emoji_detection_script', 7); remove_action('wp_print_styles', 'print_emoji_styles'); remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); remove_action( 'admin_print_styles', 'print_emoji_styles' ); // Add the posts and pages columns filter. They can both use the same function. add_filter('manage_posts_columns', 'add_post_admin_thumbnail_column', 2); // Add the column function add_post_admin_thumbnail_column($thumb_columns){ $thumb_columns['crunchify_thumb'] = __('Featured Image'); return $thumb_columns; } // Let's manage Post and Page Admin Panel Columns add_action('manage_posts_custom_column', 'show_post_thumbnail_column', 5, 2); // Here we are grabbing featured-thumbnail size post thumbnail and displaying it function show_post_thumbnail_column($thumb_columns, $thumb_id){ switch($thumb_columns){ case 'crunchify_thumb': if( function_exists('the_post_thumbnail') ) echo the_post_thumbnail(array('80','80')); else echo 'hmm... your theme doesn\'t support featured image...'; break; } } //This will prepend your WordPress RSS feed content with the featured image function wcs_post_thumbnails_in_feeds( $content ) { global $post; if( has_post_thumbnail( $post->ID ) ) { $content = '

' . get_the_post_thumbnail( $post->ID ) . '

' . $content; } return $content; } add_filter( 'the_excerpt_rss', 'wcs_post_thumbnails_in_feeds' ); add_filter( 'the_content_feed', 'wcs_post_thumbnails_in_feeds' ); // Function to handle the thumbnail request function get_the_post_thumbnail_src($img) { return (preg_match('~\bsrc="([^"]++)"~', $img, $matches)) ? $matches[1] : ''; } function wpvkp_social_buttons($content) { global $post; if(is_singular() || is_home()){ $sb_url = urlencode(get_permalink()); $sb_title = str_replace( ' ', '%20', get_the_title()); $sb_thumb = get_the_post_thumbnail_src(get_the_post_thumbnail()); if(!empty($sb_thumb)) { $pinterestURL = 'https://pinterest.com/pin/create/button/?url='.$sb_url.'&media='.$sb_thumb.'&description='.$sb_title; } else { $pinterestURL = 'https://pinterest.com/pin/create/button/?url='.$sb_url.'&description='.$sb_title; } $twitterURL = 'https://twitter.com/intent/tweet?text='.$sb_title.'&url='.$sb_url; $facebookURL = 'https://www.facebook.com/sharer/sharer.php?u='.$sb_url; $whatsappURL = 'whatsapp://send?text='.$sb_title . ' ' . $sb_url; $content .= '
'; $content .= ' '; $content .= ' '; $content .= ' '; $content .= ' '; $content .= '
'; return $content; }else{ return $content; } }; add_shortcode('social','wpvkp_social_buttons'); // INFINITE LOAD add_action('rest_api_init', function () { register_rest_route( 'foretheme/v1', 'featured-posts',array( 'methods' => 'GET', 'callback' => 'get_post_by_ajax_featured' )); }); function get_post_by_ajax_featured(){ $paged = $_GET['featured_last_post']; //you missed this line $postsPerPage = 5; $postOffset = $paged * $postsPerPage; $category_name = $GLOBALS['first_category']; $args = array( 'posts_per_page' => $postsPerPage, 'category_name' => $category_name, 'offset' => $postOffset, 'post_type' => 'post', 'no_found_rows' => true ); $myposts = get_posts($args); foreach($myposts as $key=> $post){ $myposts[$key]->image = get_the_post_thumbnail($post->ID); $myposts[$key]->category = get_the_category( $post->ID)[0]; } echo json_encode(['status'=>true, 'data'=>$myposts]); } add_action('rest_api_init', function () { register_rest_route( 'foretheme/v1', 'trending-posts',array( 'methods' => 'GET', 'callback' => 'get_post_by_ajax_trending' )); }); function get_post_by_ajax_trending(){ $paged = $_GET['trending_last_post']; //you missed this line $postsPerPage = 5; $postOffset = $paged * $postsPerPage; $post_cat = wp_get_post_categories($post->ID); $args = array( 'posts_per_page' => $postsPerPage, 'offset' => $postOffset, 'cat__in' => array($post_cat[0]->term_id), 'post_type' => 'post', 'no_found_rows' => true, 'orderby' => 'rand', 'order' => 'DESC' ); $myposts = get_posts($args); foreach($myposts as $key=> $post){ $myposts[$key]->image = get_the_post_thumbnail($post->ID); $myposts[$key]->category = get_the_category( $post->ID)[0]; } echo json_encode(['status'=>true, 'data'=>$myposts]); } add_action('rest_api_init', function () { register_rest_route( 'foretheme/v1', 'new-posts',array( 'methods' => 'GET', 'callback' => 'get_post_by_ajax_new' )); }); function get_post_by_ajax_new(){ $paged = $_GET['new_last_post']; //you missed this line $postsPerPage = 5; $postOffset = $paged * $postsPerPage; $category_name = $GLOBALS['second_category']; $args = array( 'posts_per_page' => $postsPerPage, 'category_name' => $category_name, 'offset' => $postOffset, 'post_type' => 'post', 'no_found_rows' => true ); $myposts = get_posts($args); foreach($myposts as $key=> $post){ $myposts[$key]->image = get_the_post_thumbnail($post->ID); $myposts[$key]->category = get_the_category( $post->ID)[0]; } echo json_encode(['status'=>true, 'data'=>$myposts]); } add_action('rest_api_init', function () { register_rest_route( 'foretheme/v1', 'more-posts/(?P\d+)',array( 'methods' => 'GET', 'callback' => 'get_post_by_ajax_more' )); }); function get_post_by_ajax_more($request){ $paged = $request['post_id']; $postsPerPage = 3; $postOffset = $paged * $postsPerPage; $do_not_duplicate = array(); $category_name = $GLOBALS['first_category']; $args = array( 'posts_per_page' => $postsPerPage, 'offset' => $postOffset, 'post__not_in' => array($do_not_duplicate), 'category_name' => $category_name, 'post_type' => 'post', 'no_found_rows' => true, 'order' => 'DESC' ); $myposts = get_posts( $args ); foreach($myposts as $key=> $post){ array_push($do_not_duplicate,$myposts[$key]->ID); $myposts[$key]->image = get_the_post_thumbnail($post->ID); $myposts[$key]->category = get_the_category( $post->ID)[0]; } echo json_encode(['status'=>true, 'data'=>$myposts]); } add_action('rest_api_init', function () { register_rest_route( 'foretheme/v1', 'cache', array( 'methods' => 'GET', 'callback' => 'wp_cache_flush', 'permission_callback' => function () { return current_user_can( 'edit_others_posts' ); } ) ); } );

Recent Movies You Should Read More About


[social]
best recent movies

Each film has its own special appeal and the one you like is bound to be in theaters right away. So how do you get into the best recent releases? It all starts with knowing what kind of movie you’re looking for. The first step to finding the best recent movies is to narrow down what genre you want to watch. There are several genres that produce films in October and November. The top two are action and thriller with the first one being a tie between The Amazing Spider-Man and The Dark Knight Rises. The next three on the list include comedy and drama with the fourth category coming in at number five, which is directed by none other than Hollywood’s most beloved director, Harry Potter.

Plot Twist

A woman holding a dog

One of the most important criteria when narrowing down the best recent movies for anyone is the storyline. When it comes to choosing the winners, there isn’t a huge amount of leeway given to creativity. No plot twist or character development will do. The filmmakers must stick with what they have in mind. Some have the advantage of creating their own stories but the audience is limited to how far they can go. So if you find yourself craving a touch of originality, it’s best to stick with the Oscar-winning original works.

Featuring Best Actors And Actress

A young man holding a frisbee

This point brings up one of the most important aspects of finding great films: attending an award ceremony. Most film festivals in October are hosted by major studio directors. This means they have already wrapped up their filming and are now focused on finding the best casts and writers for their films. If your favorite actor or actresses are up for a best actress award, you should definitely attend the ceremony as well. Be sure to get tickets well in advance because many theaters are selling out quickly. Last year’s Academy Awards was a big boost for the Oscar industry, so it pays to know which films are up for consideration.

Art Films

Another factor that goes into narrowing down the best recent movies to watch is the director. Not all films directed by known filmmakers make the cut. Usually, the best films are made by up-and-coming helmers with a fresh slate of projects. This includes Adam Driver’s “Manchester” and Tom Ford’s “Wildfire.”

Charming Movies

One of the more surprising choices for a best film recently was the arty and charming “Spotlight.” Despite the fact that the movie didn’t receive much attention when it was released, it easily lived up to its hype, winning the Oscar for Best Picture. Directed by Taylor Swift, the film cast including Robert Downey JrJimmy Jansson, and Ben Kingsley, helped “Spotlight” become the talk of the town. Of course, no Oscar would be complete without the wonderful performances of Daniel Day Lewis and Eddie Murphy.

Time Travel Movies

If you love the idea of time travel, but don’t want the entire concept blown out of proportion, there are plenty of fantastic time travel movies coming out this year. One of the most exciting of these time travel flicks is reportedly set to be “The Fantastic Four,” which reunites the entire ” FF” crew after they get separated during a mission. Other possible picks include “Chronicle” and “Elysium.”

Wrapping Up

With the release dates nearing for the majority of the big movie surprises, now is a great time to read more about the cast and the directors of some of your favorite upcoming movies. Knowing who will be joining either The Wolf of Wall Street or Captain America will be very exciting. Who knows, they could even break the spell that movie casting has been in for the last few years. But for now, we’ll just have to wait and see.

[social]
Subscribe to our monthly Newsletter
Subscribe to our monthly Newsletter