Title: teeli's Replies | WordPress.org

---

# teeli

  [  ](https://wordpress.org/support/users/teeli/)

 *   [Profile](https://wordpress.org/support/users/teeli/)
 *   [Topics Started](https://wordpress.org/support/users/teeli/topics/)
 *   [Replies Created](https://wordpress.org/support/users/teeli/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/teeli/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/teeli/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/teeli/engagements/)
 *   [Favorites](https://wordpress.org/support/users/teeli/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mobile Detector] Strange behaviour when using Mobile Detector](https://wordpress.org/support/topic/strange-behaviour-when-using-mobile-detector/)
 *  Thread Starter [teeli](https://wordpress.org/support/users/teeli/)
 * (@teeli)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/strange-behaviour-when-using-mobile-detector/#post-3259121)
 * After a quick test, it seems to be working now. Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mobile Detector] Strange behaviour when using Mobile Detector](https://wordpress.org/support/topic/strange-behaviour-when-using-mobile-detector/)
 *  Thread Starter [teeli](https://wordpress.org/support/users/teeli/)
 * (@teeli)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/strange-behaviour-when-using-mobile-detector/#post-3259093)
 * Apparently the problem is that the plugin does not explicitly define the cookie’s
   path, so it creates multiple wp_mobiledts_theme cookies for different paths under
   the website.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Popular Posts] [Plugin: WordPress Popular Posts] Remove "posted on" from dates.](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-remove-posted-on-from-dates/)
 *  Thread Starter [teeli](https://wordpress.org/support/users/teeli/)
 * (@teeli)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-remove-posted-on-from-dates/#post-3057213)
 * Thanks for the answer. I think I can live with it, but it would be cool if you
   could improve customization at some point 🙂
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Order & filter by multiple taxonomies & terms](https://wordpress.org/support/topic/order-filter-by-multiple-taxonomies-terms/)
 *  Thread Starter [teeli](https://wordpress.org/support/users/teeli/)
 * (@teeli)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/order-filter-by-multiple-taxonomies-terms/#post-2950221)
 * I guess I managed to solve this. Here’s the updated solution that seems to be
   working nicely:
 *     ```
       $clauses['join'] .= " INNER JOIN (SELECT {$wpdb->terms}.term_id, {$wpdb->terms}.slug, {$wpdb->term_relationships}.object_id
                           FROM {$wpdb->term_taxonomy}, {$wpdb->terms}, {$wpdb->term_relationships}
                           WHERE {$wpdb->term_taxonomy}.taxonomy = 'position'
                           AND {$wpdb->term_taxonomy}.term_id = {$wpdb->terms}.term_id
                           AND {$wpdb->term_taxonomy}.term_taxonomy_id = {$wpdb->term_relationships}.term_taxonomy_id
                           GROUP BY {$wpdb->term_relationships}.object_id
                           ) as person_position_relationship ON person_position_relationship.object_id = {$wpdb->posts}.ID";
       $clauses['groupby'] = "person_position_relationship.object_id";
       $clauses['orderby'] = " FIELD(person_position_relationship.slug, 'janitor', 'developer', 'CTO', 'COO', 'CEO') ";
       $clauses['orderby'] .= ( 'ASC' == strtoupper( $wp_query->get( 'order' ) ) ) ? 'DESC' : 'ASC';
       $clauses['orderby'] .= ", person_position_relationship.slug ";
       $clauses['orderby'] .= ( 'ASC' == strtoupper( $wp_query->get( 'order' ) ) ) ? 'ASC' : 'DESC';
       ```
   
 * When using this with posts_clauses filter, you can probably do anything you want
   with other taxonomies and this only show posts with “position” taxonomy and order
   by them. Seems to work on my case, but probably need more testing.

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