Title: 1ded6's Replies | WordPress.org

---

# 1ded6

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

 *   [Profile](https://wordpress.org/support/users/1ded6/)
 *   [Topics Started](https://wordpress.org/support/users/1ded6/topics/)
 *   [Replies Created](https://wordpress.org/support/users/1ded6/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/1ded6/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/1ded6/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/1ded6/engagements/)
 *   [Favorites](https://wordpress.org/support/users/1ded6/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: [[Simple Shopping Cart] Cart order not showing if i am not logged as an administrator](https://wordpress.org/support/topic/cart-order-not-showing-if-i-am-not-logged-as-an-administrator/)
 *  Thread Starter [1ded6](https://wordpress.org/support/users/1ded6/)
 * (@1ded6)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/cart-order-not-showing-if-i-am-not-logged-as-an-administrator/#post-8242139)
 * Sorry i have not seen you answered. I want the cart orders to show up even if
   you’re not logged in with the administrator status. The users of the website 
   will not be logged in as administrator but as editor.
 * And under this status, the cart orders do not appear.
 * Best regards.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Shopping Cart] Cart order not showing if i am not logged as an administrator](https://wordpress.org/support/topic/cart-order-not-showing-if-i-am-not-logged-as-an-administrator/)
 *  Thread Starter [1ded6](https://wordpress.org/support/users/1ded6/)
 * (@1ded6)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/cart-order-not-showing-if-i-am-not-logged-as-an-administrator/#post-8202279)
 * i am not precise enough. what i need to show is the cart orders in the admin 
   menu.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Posts Carousel] order by custom post type type date](https://wordpress.org/support/topic/order-by-custom-post-type-type-date/)
 *  Thread Starter [1ded6](https://wordpress.org/support/users/1ded6/)
 * (@1ded6)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/order-by-custom-post-type-type-date/#post-7546460)
 * Thanks for the answer. Yes nicer code.
    And no need to unset. Ok.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Posts Carousel] order by custom post type type date](https://wordpress.org/support/topic/order-by-custom-post-type-type-date/)
 *  Thread Starter [1ded6](https://wordpress.org/support/users/1ded6/)
 * (@1ded6)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/order-by-custom-post-type-type-date/#post-7546347)
 * Ok did it this way and it works.
 *     ```
       function afri_wpc_query( $query_args ) {
   
       	   if( $query_args['post_type'][0] == 'evenement' ) {
   
       		unset($query_args['orderby']);
       		$query_args['orderby'] = 'meta_value_num';
       		$query_args['meta_key'] = 'date_evt2';	 
   
       		}
   
       		if( $query_args['post_type'][0] == 'revue' && $query_args['post_type'][1] == 'ouvrage') {
   
       		unset($query_args['orderby']);
       		$query_args['orderby'] = 'meta_value_num';
       		$query_args['meta_key'] = 'date_publication';	 
   
       		}
   
       		var_dump($query_args);	
   
       	return $query_args;
   
       }
       add_filter('wpc_query', 'afri_wpc_query', 1, 1);
       ```
   

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