Dhanendran's Blog

It's all about my technology & social adventures…

Tag

wordpress

Allow iFrames and Scripts tags in WordPress Editor

When you are trying to embed iFrames and Scripts tags in your post, WordPress won’t allow you to do so. It’s mainly because of the security reason. Users might add unsecured iFrames which may show unrelated content or tries to… Continue Reading →

How to Upload Additional File Types in WordPress

It’s been always the case where we need to upload additional file types in WordPress along with the WordPress default supported file types. By Default WordPress will allow you to upload below mentioned file types to media library. Images .jpg… Continue Reading →

WordPress get_terms returns empty array for custom taxonomy

get_terms returning empty array even though there are many terms it has? Creating custom taxonomies are common when we design complex web applications. I hear your mind voice, We create custom taxonomy for simple applications as well. Yeah, that's right. Creating… Continue Reading →

Uncaught Error: Call to a member function add_cap() in Multisite

The Issue: When creating a new site in WordPress Multi-site environment, I came across this issue fatal error. Fatal error: Uncaught Error: Call to a member function add_cap() on null in /srv/www/wordpress-default/public_html/wp-content/….XXXX…. While digging deep into it, I found that… Continue Reading →

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 →

© 2018 Dhanendran's Blog — Powered by WordPress

Theme by Anders NorenUp ↑