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

Widgets in PHP files?

If the 12 elements are static HTML, you can just create 12 text widgets. If they’re not, it depends on what you mean by “easy to manage”. I, for one, prefer to be able to easily manage my code via SVN. Using widgets obscures that. If you just want them to be in separate files, … Read more

How to find the exact widget details

Try installing the JetPack plugin, which includes several of the .com features for your stand-alone blog. There’s a Twitter widget in there that might be the one you were using.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)