Integrating Spotify and WordPress


While there is no direct way to currently embed spotify into your WordPress blog there is a workaround using Last.FM

  • Configure Spotify (Edit/Preferences/Last.fm/Enable scrobbling to last.fm and enter your Last.fm details)
  • Install the Last.fm media player  and keep both Spotify and Last.fm running
  • Install the Last.fm for WordPress plugin
  • Configure the plugin in your WordPress blog (Appearance/Widgets)
  • Set up your WordPress template to show the widget in ie the sidebar
  • The played tracks should show up

Password Protecting WordPress


I found a great tutorial on how to password protect WordPress at this site. Just folow the steps below:

  1. Go to Users ? Authors & Users sub-panel.
  2. Add a new user in the Add New User section. This login will be used to access your WordPress by other user. Or go to Settings ? General ? Membership and check “Anyone can register”.
  3. Add the following lines to your Theme’s template functions.php file (For example, functions.php file for a Theme named “default” would probably reside in the directory wp-content/themes/default/functions.php) or create it as a Plugin by filling the additional Standard Plugin Information:
    function password_protected() {
    	if ( !is_user_logged_in() ) {
    add_action('template_redirect', 'password_protected');
    add_action('do_feed', 'password_protected');
  4. Go to Settings ? Discussion sub-panel. Under Default article settings, uncheck “Attempt to notify any blogs linked to from the article (slows down posting.)”.
  5. Finally, go to Settings ? Privacy and set “Blog Visibility to I would like to block search engines, but allow normal visitors”. Click Save Changes.

Now visitors will be asked to log in using WordPress login form to view your WordPress blog / site. This is very suitable for someone that wanted privacy or owned a private WordPress blog / site.

Stuck in Maintenance Mode


So this has happened to me a few times when updating WordPress. Basically, my folder permissions weren’t set up correctly and my WordPress upgrade fails for one reason or another. I fix the permissions and then try to upgrade again, only I’m greeted with a white screen with the message ‘Briefly unavailable for scheduled maintenance. Check back in a minute.’ Not too much of an issue except there’s no way out of it. After a quick Google search I found a few helpful posts stating that all I had to do was ftp into the account, navigate to the root folder of my web directory and delete a file called: .maintenance

Also fairly simple to do….except, I could never find the damn file! After some more Googling, I came across another helpful post stating that the file was hidden.

Depending on the mood I’m either on a Windows machine or my iMac. This time I was on my iMac, using CyberDuck. In order to see hidden files on CyberDuck you have to click on View up on the menu bar and then choose Show Hidden Files.  Voila….the .maintenance file showed it’s ugle head.   Once deleted, everything worked perfectly.

Go to Top