Dhanendran's Blog

It's all about my technology & social adventures…

Category

PHP

Using get_template_part within Shortcode

The get_template_part is a one of the most useful function for the theme developers. It prints/includes the template content inside another template. It is used as an alternative to include or require. We can make use of this function within the… Continue Reading →

Hide PHP Warnings and Notices in WordPress

I recently came across some wired issue, were PHP warnings and notices are shown on the website even when we set WP_DEBUG to false in wp_config.php file. This happens mostly with the cheap shared hosts, were this settings won’t be respected and… Continue Reading →

Custom media button creation with wp.media

All most every WordPress users will use media in their posts, pages and comments. So media files playing a vital role in our WordPress world. WordPress will provide you an option to add media files in to your post by… Continue Reading →

Goodbye `get_terms`, Welcome `WP_Term_Query`

From WordPress 4.6, we have a new class called ​WP_Term_Query which will help us in querying the taxonomies easily. This class will give us more flexibility and ease of use like other classes like WP_Query,WP_User_Query, and WP_Comment_Query in WordPress. The main… Continue Reading →

WordPress REST API and OAuth 1.0a

WordPress REST API and OAuth is a perfect combination for many applications which runs WordPress as a backend. But for the beginners OAuth handshaking will be a bit complex one to understand. If you are is this category, don’t worry… Continue Reading →

WordPress: Post/Page creation workflow

Developing WordPress site for client or your own site? Then you should know the basic workflow of Post/Page creation hooks. Okay! Let’s get started with the hooks. What is hooks? Hooks are just a functions, which will help us to… Continue Reading →

How to create custom filter in WordPress?

Basically WordPress hooks are categorised into two types; Action hooks Filter hooks Action hooks: As name says, these hooks are called when an action is performed. Action hooks allow you to execute your custom functions which are referred to as actions…. Continue Reading →

WordPress: Permalink setting redirecting to 404?

You have installed everything on server apache, WordPress, brand new theme, all plugins… But your permalink setting not working at all? Is it throwing you 404 page? You have set .htaccess file as per WordPress suggestion? If YES, then consider… Continue Reading →

Installing PHPUnit on OSX

well, before installing PHPUnit into your system, you need to check for some prerequisites. Prerequisite: PHP 5.6 or >5.6 PEAR (optional) Installing PHP 5.6 To install PHP 5.6, I am going to use curl which comes out of the box with… Continue Reading →

© 2018 Dhanendran's Blog — Powered by WordPress

Theme by Anders NorenUp ↑