WordPress 4.3 WP_Widget PHP Notice

WordPress 4.3 “Billie” was just released.

Some plugins that use WordPress widgets may try to access the WP_Widget class method directly in it’s own class method like this:

$this -> WP_Widget()

As a result, WordPress gives the following PHP notice:

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use __construct() instead

The solution is to change…

$this -> WP_Widget()



WordPress Hosting | Tribulant Software Blog

WordPress Hosting

WordPress optimized hosting!

It is important to have fast, secure and easy hosting for your websites. At Tribulant Software, we provide you with the best quality shared hosting available.

The hosting is WordPress optimized but not restricted to WordPress. Free WordPress installation is included with all packages or you can use the automatic WordPress installer to do it yourself if you prefer, it is included in your hosting control panel.

Host your websites now

Source: WordPress Hosting | Tribulant Software Blog

WordPress Check If Is Dashboard

There is no specific function in WordPress to check if the current screen is the Dashboard screen. So best is to use

To check if it is currently the admin panel, the Dashboard as a whole, you can use the is_admin() function which returns a boolean true | false. Please note that wp_ajax_ requests will also return true on is_admin() though.

Source: Function Reference/get current screen « WordPress Codex

W3 Total Cache – Fragment Caching

W3 Total Cache is a great plugin for speeding up your WordPress website with page cache, database cache, minifying JS and CSS, object cache, content delivery network and more.

A problem could arise with dynamic code and a certain part of code might be cached with W3 Total Cache which you don’t want to cache. You can use the MFUNC fragment caching in your code to prevent this.

Continue reading

WordPress: Dashboard Columns Option

WordPress used to have a “Number of Columns” setting on the dashboard under “Screen Layout” which I believe was removed in WordPress 3.8.

I’m not exactly sure why but I assume it is for WordPress to rather control and ensure the correct layout for you based on your screen resolution/browser size. Test it out: If you have a small screen like a tablet, you have one column and if you have a larger screen like a laptop, you will see two columns but on a much larger screen you would automatically see three columns.

Continue reading

Install a WordPress blog in CakePHP

If you’re using CakePHP, you may want to install WordPress for your blog.

CakePHP rewrites and serves public files out of app/webroot/

So let’s assume that your domain is and you want your blog to be then you’ll create a /blog/ folder inside app/webroot/ so you have app/webroot/blog/

Then go ahead and install WordPress files into the app/webroot/blog/ folder and inside that folder edit the existing .htaccess file or create a .htaccess file and put the following rewrite rules into it:

Continue reading

© 2021 Contrid

Theme by Anders NorénUp ↑

Pin It on Pinterest