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
JavaScript PHP Programming WordPress

[JS & PHP] How to set cookies in JavaScript and get in PHP

There is the application I built today which required to send data between JavaScript and PHP. Therefore, instead of sending AJAX request everytime data has changed, I decided to set cookies from JS and use PHP to retrieve the cookies when needed.

Categories
PHP Programming Uncategorized WordPress

[WordPress] Deployment on Amazon EC2: Solutions to Permalinks & PHP Issues

I have recently encountered 2 issues with deploying WordPress website on Amazon EC2; Permalinks not working on Amazon EC2 and old PHP version caused the code to break.

I would like to note the solutions here in order to save hours of Googling for everyone 🙂

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
WordPress WordPress Themes

[WordPress] ดึง Widget มาแสดงใน Template ด้วย PHP ง่าย ๆ

ไม่เคยรู้มาก่อนว่าเราสามารถดึง Widget ที่อยู่ใน Appearance > Widgets ต่าง ๆ มาแสดงใน Template ได้เลย โดยไม่ต้องสร้าง Sidebar มารองรับ

Categories
WooCommerce WordPress

[WooCommerce] วิธีเพิ่ม Field Checkout ใน WooCommerce

Categories
WordPress

[WordPress] วิธีแก้ปัญหา Inconsistent Permission ตอน Update WordPress ด้วย DirectAdmin

Categories
WordPress

[WordPress] วิธีแก้ปัญหา Update ไม่ได้สักทีเพราะ Permission inconsistent / denied ด้วย SSH