1ded6
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
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.
i am not precise enough. what i need to show is the cart orders in the admin menu.
Forum: Plugins
In reply to: [WP Posts Carousel] order by custom post type type dateThanks for the answer. Yes nicer code.
And no need to unset. Ok.Forum: Plugins
In reply to: [WP Posts Carousel] order by custom post type type dateOk 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)