By the way, you gotta try to use the “code” function when you paste code. Otherwise it’s harder to read!
Here’s the custom page code again with the code I believe will print the image:
<?php
/*
Template Name: My Custom Page
*/
get_header(); ?>
<div class="container main-content">
<div class="row">
<div id="post-area" class="col span_9">
<?php
$args = array (
'post_type' => any, // or post or page
'post_status' => 'publish',
'cat' => '',
'pagination' => false,
'posts_per_page' => 10,
'cache_results' => true,
'meta_key' => _thumbs_rating_up, // or _thumbs_rating_down
'orderby' => 'meta_value'
);
$thumbs_ratings_top_query = new WP_Query($args);
if($thumbs_ratings_top_query->have_posts()){
while($thumbs_ratings_top_query->have_posts()){
$thumbs_ratings_top_query->the_post();
echo "<h2>" . get_the_title() . "</h2>";
$post_id = get_the_ID();
echo get_the_post_thumbnail($post_id, 'full', array('title' => ''));
}
}
wp_reset_postdata();
?>
</div><!--/span_9-->
<div id="sidebar" class="col span_3 col_last">
<?php get_sidebar(); ?>
</div><!--/span_9-->
</div><!--/row-->
</div><!--/container-->
<?php get_footer(); ?>