Viewing 3 replies - 16 through 18 (of 18 total)
  • Plugin Author Ricard Torres

    (@quicoto)

    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(); ?>
    Thread Starter antijulo

    (@antijulo)

    ok just two things

    Its not a blog list page with post with comments, pagination etc?

    i change the shortcode to see : [thumbs_rating_top posts_per_page=”3″ post_type=”post” show_votes=”no”]

    but there not pagination

    Plugin Author Ricard Torres

    (@quicoto)

    The shortcode has nothing to do with the pagination, it’s part of the new code.

    Maybe if you set pagination to true:

    'pagination' => true,

    Good luck!

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Question’ is closed to new replies.