WordPress.org

Plugin Directory

Changeset 506457


Ignore:
Timestamp:
02/17/12 12:28:29 (2 years ago)
Author:
leogermani
Message:

[fix] add ignore_sticky_posts to query

File:
1 edited

Legend:

Unmodified
Added
Removed
  • post-highlights/trunk/post-highlights.php

    r503305 r506457  
    396396            $order = $this->get_option('order') ? $this->get_option('order') : 'orderby=meta_value&order=ASC'; 
    397397             
    398             $highlightedPosts = new WP_Query("post_type=any&meta_key=ph_order&$order$sel_limit"); 
     398            $highlightedPosts = new WP_Query("post_type=any&meta_key=ph_order&ignore_sticky_posts=1&$order$sel_limit"); 
    399399 
    400400            if (file_exists($this->basepath . 'themes/' . $this->theme . '/style.css')) 
Note: See TracChangeset for help on using the changeset viewer.