If you want to create a floating element (such as button) to your WordPress website but do not want to install any plugin, follow this article. In this post, I will show you one simple method to add a call-to-action element (buttons, or text, or anything) stay fixed on the web page no matter how […]
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 […]
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 […]
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 […]
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, […]
The purpose of this article is to provide some methods to customize a WordPress theme.