Categories
WordPress

[WordPress] Uploaded image is not showing! or showing as transparent field

This is one of the most common WordPress problems. Yet there is no tutorial that can describe all the cause and solution. Today I found another cause and solution, therefore I would like to share with other people who might get into this problem as well.

Categories
HTML/CSS Programming WordPress WordPress Themes

[Tutorial] Add CSS-only Dropdown Menu in WordPress Theme from scratch

Sometimes HTML version of the theme doesn’t come with dropdown menu in menu bar, here is a simple way to add dropdown menu to your HTML:

Categories
PHP Programming WordPress

[WordPress] Solution when define(‘WP_DEBUG’, false); is not working

Generally, when we added define(‘WP_DEBUG’, false); to wp-config.php, it should disable every warning & notice on the website.

Categories
WordPress

[WordPress] Fix: Cannot update WordPress to new version (Cannot create directory)

Just run this command in terminal:

chown -R www-data:www-data /var/www
find /var/www/ -type d -exec chmod 755 {} \;
find /var/www/ -type f -exec chmod 644 {} \;

Note that if your WordPress is in the other place than /var/www, make sure to change the path in command above before running.

Categories
HTML/CSS JavaScript Programming WordPress WordPress Themes

[Foundation 6 & WordPress] SyntaxError: class is a reserved identifier class

I got this error when trying to use foundation 6’s JavaScript from Essential pack (downloaded from here: http://foundation.zurb.com/sites/download.html/)

Categories
PHP Programming WordPress WordPress Themes

[WordPress] Custom URL using add_rewrite_rule

In the recent project, the clients would like to have pretty URL for good SEO in WordPress. Since the URL structure for WordPress is pretty limited, I have to try rewriting custom URL for client.

Categories
CSS PHP Programming WordPress WordPress Themes

[WordPress] Customizing with Tag Cloud Widget

Since the default tag cloud widget looks outdated, this is a simple way to style / customize tag cloud widget to fit your need.

Categories
WordPress WordPress Themes

[WordPress] Getting top posts from Jetpack API

Since WordPress’s Jetpack has done a great job for us to collect statistics on our blogs, we should use these stats to benefit our readers. It is way better than using WP-PostViews which will consume our server resources especially the database.

Categories
PHP Programming WordPress

Auto-deploy WordPress via SSH with WordMove [Update 2015]

WordMove is Ruby package for deploying WordPress from localhost to live environment. It can be found here: https://github.com/welaika/wordmove

Categories
PHP Programming WooCommerce WordPress

[WooCommerce] รวมฟังก์ชั่น get URL หน้าต่าง ๆ