Tag Info

Hot answers tagged

2

First of all, never ever use query_posts. It breaks the main function and all plugins and functions relying on the main query object. For custom queries, use WP_Query or get_posts if aren't looking to paginate the query As for the following line 'orderby' => 'rr_recommends_count', I can tell you that rr_recommends_count is an invalid value to the ...


2

This is not that complicated, here is a code snippet that will get you started: if(is_user_logged_in()) { //We only need these products to check $products_to_check = array(81,82,83,84); $customer_bought = array(); //Get all orders made by the current user in the last 365 days $customer_orders = get_posts( apply_filters( ...



Only top voted, non community-wiki answers of a minimum length are eligible