[Suggestion] expand "Limit" field
-
Hi,
It would be very helpfull if you could expand field “limit” so we can set it as for example “5, 5” (so 5 rows, starting from 5th row). I had to divide wpp_get_mostpopular to two columns, and it was the easiest way to do it. I just removed “__is_numeric($limit)” validator from your code and now it works perfectly for me.
Now this is how I use it:
$args = array( 'post_type' => 'faq,video,infographic,manual', 'range' => 'weekly', 'limit' => 5, 'wpp_start' => '<div class="col"><ul class="list-unstyled">', 'wpp_end' => '</ul></div>', 'post_html' => '<li class="faq"><a class="faq-title" href="{url}" title="{text_title}">{text_title}</a></li>'); wpp_get_mostpopular($args); $args['limit'] = '5, 5'; wpp_get_mostpopular($args);
Cheers!
https://www.ads-software.com/plugins/wordpress-popular-posts/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Suggestion] expand "Limit" field’ is closed to new replies.