“OFFSET” value in options
-
Before the 4.x version of the code I had made a minor update to allow my queries to use an offset in the sql.
After 4.x it appears that this may be available. The file class-wordpress-popular-posts-query.php has the logic looking for (e.g. $this->options[‘offset’]) — however I don’t see the way to hook into this feature.
Here’s our shortcode logic where I’d like to use offset:
do_shortcode(‘[wpp thumbnail_width=150 offset=”3″ thumbnail_height=85 wpp_start=”‘.$wpp_start.'” wpp_end=”‘.$wpp_end.'” post_html=”‘.$wpp_html_pattern .'” limit=”4″ offset=”3″ order_by=”views” range=”all” stats_views=”‘. $views .'” stats_comments=”0″ cat=”‘ .$current .'”]’);Is this supported in another manner? Do I have to use query manually:
eg.: $popular_posts = new WPP_Query( array(‘range’ => ‘last7days’, ‘order_by’ => ‘views’, ‘limit’ => 5, ‘offset’ => 3) );
- The topic ‘“OFFSET” value in options’ is closed to new replies.