Putting a URL, for a preview, in a side bar

Simply placing a url isn’t going to embed a webpage within a webpage. You could use an iframe. <iframe src=”http://yoururl”></iframe> To display the page content from that url. You could also capture the page via php and scrape it for the information you need but you would have to create a custom widget for this. … Read more

Database size Widget

Add the following code to your widget code: function fileSizeInfo($filesize) { $bytes = array(‘KB’, ‘KB’, ‘MB’, ‘GB’, ‘TB’); if ($filesize < 1024) $filesize = 1; for ($i = 0; $filesize > 1024; $i++) $filesize /= 1024; $dbSizeInfo[‘size’] = round($filesize, 3); $dbSizeInfo[‘type’] = $bytes[$i]; return $dbSizeInfo; } function databaseSize() { global $wpdb; $dbsize = 0; $rows … Read more