How to show detailed order history on woocommerce product page [closed]

The issue is that you’re showing the info for the order and not the item. You want to print the content based on the item instead, like this: echo ‘<h2>Previous Donations for this Nonprofit</h2>’; foreach (get_posts(‘post_type=shop_order&numberposts=-1&post_status=wc-completed’) as $order) { $order = new WC_Order($order->ID); foreach($order->get_items(‘line_item’) as $item) { if ($post->ID == $item[‘product_id’] || $post->ID == $item[‘variation_id’]) … Read more

Malicious Code in Index.php WordPress [closed]

This is a great article on WordPress security, loads of great advice… https://codex.wordpress.org/Hardening_WordPress. I’d follow the advice in the article above, and make sure to change all your passwords for FTP, blog login, etc so they’re all unique, long and random.

WordPress “Allowed memory size” on wp-db.php [closed]

You need to increase the php-memory-limit you can find out how much you have now with <?php phpinfo(); ?> Edit php.ini .Search “memory_limit” in your php.ini, and change the value of it. If no “memory_limit” found, add the following line at the end of php.ini memory_limit = 128M ; /* Change the 128M to your … Read more