Recommended File Permissions for WordPress

What permissions should I have for the following: Root folder storing all the WordPress content wp-admin wp-content wp-includes On computer filesystems, different files and directories have permissions that specify who and what can read, write, modify and access them. This is important because WordPress may need access to write to files in your wp-content directory to enable certain functions. […]

How to Prevent SQL injection in PHP 2017

SQL injection happens when you interpolate some content into a SQL query string, and the result modifies the syntax of your query in ways you didn’t intend. It doesn’t have to be malicious, it can be an accident. But accidental SQL injection is more likely to result in an error than in a vulnerability. The […]

[Woocommerce] How to Display Products from Specific Category

These code to show product with ‘shoe’ category. You can change ‘shoe’ with any category you want. ‘orderby’ => ‘rand’ mean show the product as random. orderby (string | array) – Sort retrieved posts by parameter. Defaults to ‘date (post_date)’. One or more options can be passed. ‘none’ – No order (available since Version 2.8). […]

[Woocommerce] How to Change Buy Product Button Text

Single Product Page add_filter( 'woocommerce_product_single_add_to_cart_text', 'wc_custom_cart_button_text' ); // Woocommerce 2.1 + function wc_custom_cart_button_text() { return __( 'Buy via AliExpress', 'woocommerce' ); } Archive Page add_filter( 'woocommerce_product_add_to_cart_text', 'wc_archive_custom_cart_button_text' ); // Woocommerce 2.1 + function wc_archive_custom_cart_button_text() { return __( 'Buy via AliExpress', 'woocommerce' ); }

Finding a DropShipping Wholesaler

So now you are probably wondering how you can find and qualify a genuine wholesale drop shipper. You will need some patience and time to search through a drop shipper directory in order to find the best drop shipping companies for your particular product niche. There are many drop shipper directories available on the Internet, […]

Enabling/Installing FFmpeg Extension PHP From cPanel

FFmpeg is php extension used to manipulate videos files in PHP using the ffmpeg program. It provides classes for retrieving information from video and audio files like the duration, frame and sample rate, frame size. It can also extract individual frames from the videos and create GD image resources. It supports the all the video formats supported by ffmpeg […]

[SOLUTIONS] 500 Internal Server Error PHP

500 Internal Server Error is one of the common PHP errors that can put a PHP developer in panic mode. This article provides information on the most common causes. Why it become common PHP errors ? because you will found this error in WordPress, Prestashop, Codeigniter, Java, ASP.NET or whatever. 500 Internal Server Error is not a […]

[SOLUTIONS] 504 Gateway Timeout Nginx

504 Gateway Timeout error Nginx is generated often by a number of reasons on the backend connection that is serving content. This is pretty common error, are generated most probably by the PHP max execution time limit or by the FastCGI read timeout settings. Based on Wikipedia, 504 Gateway Timeout is the server was acting as […]

How to Hide Product Price WooCommerce

There is some method to hide product price in woocommerce, with filters, css or plugin. This is how to hide product price with CSS. Cart #cart > a > span.amount { display: none; } Sidebar div.deals-information > div.price{ display: none; } Individual Product div.widget.widget-products.products > div > div > div:nth-child(2) > div.col-md-4.col-sm-12.shopcol.last.wow.fadeInUp.product-wrapper > div > […]

[SOLUTIONS] 502 Bad Gateway Error on Nginx

If you run a Nginx web server you may have already encountered the annoying 502 bad gateway errors. This is pretty common error, are generated most probably by the PHP or  FastCGI buffer and timeouts settings. This tutorial shows you how to fix nginx 502 bad gateway on the nginx webserver. This post shows how […]