Louisa
  • Member for 5 years, 6 months
  • Last seen more than 2 years ago
Stopping media file redirects
-2 votes

This fixes the problem: remove_action('template_redirect', 'redirect_canonical');

View answer
Create an array with a string key from wpdb->get_results
5 votes

Found the solution: $currentProducts = $wpdb->get_results("SELECT feedid, id, size, price FROM products WHERE shopid = $shopid", OBJECT_K); The OBJECT_K parameter makes an associative array with ...

View answer