• Resolved teugene

    (@teugene)


    Hi there, I am customizing the output of the post and I’m trying to use my own defined post thumbnail size and set a custom age range of 6 months for the posts to show. As I understand, this is only available in version 4? If yes, I’m wondering if it’s stable enough to be used right now?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi there!

    The current version of the plugin lets you pick a predefined post thumbnail size, although this feature is available only to the WPP widget.

    As for picking a custom time range, although it’s not complete (eg. you can’t set a custom time range from the widget yet) it’s stable enough for daily use. And yes, this feature is available on WPP 4 only.

    Thread Starter teugene

    (@teugene)

    Thanks for the reply! Apologies if my comment wasn’t clear, I was referring to the Post Thumbnails that was added with add_image_size(). Can I use a thumbnail inside the output with the current version?

    Plugin Author Hector Cabrera

    (@hcabrera)

    Yes, you can 🙂 The {thumb} / {thumb_img} content tags will display whatever thumbnail you told WPP to use.

    Thread Starter teugene

    (@teugene)

    Whoops, I didn’t realise I need to save the widget settings to see the additional options!

    Also, is there anyway I can select the specific thumbnail in the template tag (post_html)?

    Plugin Author Hector Cabrera

    (@hcabrera)

    Thread Starter teugene

    (@teugene)

    Hi again, have been trying things out and I’m still a bit confused about the thumbnails. Below is a sample code in which I’m using the wpp_get_mostpopular() template tag. How do I select which thumbnail size to use in this situation?

    Secondly, does the “Ajaxify widget” option still work in this situation?

    wpp_html = '<div class="col-xs-12 col-sm-4 col-lg-4 boxy">
    	<div class="content panel panel-default">
    		<div class="panel-image">{thumb}</div>
    		<div class="panel-content">
    			<div class="panel-body">
    				<div class="panel-category">{category}</div>
    				<div class="panel-title">{title}</div>					
    				<div class="panel-excerpt">{summary}</div>
    			</div>
    		</div>
    	</div>				
    </div>';
    
    $args = array(	
    	'freshness' => 1,
    	'stats_category' => 1,
    	'post_html' => $wpp_html,
    	'post_type' => 'post'
    );
    
    wpp_get_mostpopular( $args );
    Plugin Author Hector Cabrera

    (@hcabrera)

    The current version of the plugin lets you pick a predefined post thumbnail size, although this feature is available only to the WPP widget.

    If you’re using the wpp_get_mostpopular() template tag then you won’t be able to use a predefined thumbnail size. As stated above, this is a feature only available for the widget.

    Secondly, does the “Ajaxify widget” option still work in this situation?

    Nope. It’s called Ajaxify widget for a reason 😛 This is widget-exclusive feature too.

    Thread Starter teugene

    (@teugene)

    Aww shucks… that’s what I’m afraid of :/ I’ll work with the widget instead then. Thanks so much for your replies.!

    • This reply was modified 9 years, 2 months ago by teugene.
    Plugin Author Hector Cabrera

    (@hcabrera)

    No problem 🙂

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Using post thumbnail size and custom range’ is closed to new replies.