Sometimes you may want to add information to every posts but don’t want to open every single post to add that line. In this article, I will show you how to implement three use cases simply by using wordpress add_filter and the_content hook. You may add anything at the end, or at the beginning, of […]
Blog
[WordPress] How to transform post title into UPPERCASE without plugins
To transform the post title into different style, for example uppercase, you don’t need to use any plugin. In this article I will show you how to do it simply by using WordPress filter. What we are going to do is to add a filter hook, so that the title of a post will go […]
[WordPress] How to use Polylang to translate Woocommerce variable products
Using Polylang to translate Woocommerce simple products is quite straightforward. But for variable products, it is a bit tricky. In this article, you will see steps by steps how to use Polylang to translate Woocommerce variable products. Polylang and Woocommerce Polylang is a plugin to have your website in multilanguage as it lets users create […]
WordPress functions returns with var_dump (TO BE CONTINUED)
Sometimes you may want to know what a function outputs. Here is hopefully a good cheatsheat for you. get_terms Purpose: Get the term for a specific taxonomy (Developer page). Output If term found, return an array of WP_Term object If term does not exist, return WP_Error object Example use: Find top-level terms from a category […]
5 Ways to Migrate WordPress Sites
In this post, I would like to share some methods when migrating the WordPress host.
[WordPress] Difference between die() and wp_die()
WordPress uses PHP as the core language. So die() would be just fine to use. In fact, I have used it several times and did not notice any major bugs. Never wonder what is the real different between them before I tried the wp_die() yesterday. This is how it is different on the look: So, […]