wordpress

Migrating WordPress to Drupal

Right now two of the most popular open source content management systems are WordPress and Drupal. WordPress is very simplistic and easy to roll out, which is why there is nearly 80,000,000 websites using WordPress. Then you have Drupal which is a more robust content management system that needs a little bit more love to get things moving.

Facebook Albums 2.0.5

After a few months I decided to give Facebook Albums some love. With 2.0.4 I implemented WordPress's caching mechanism to cache Facebook API responses for better performance. Will it never occurred to me about clearing said cache if the widget or that post updates.

So now if you update your Facebook Album widget, it will clear the cache and reflect your changes (such as image limit.) Ditto goes for posts, anytime a post saves the plugin checks for the shortcode (<3.6.0 compliant ;)) and clears that albums cached output.

Responsive Facebook Like Box

We've all been there - create this awesome responsive design for a client's website and then you have to try and slap a Facebook Like Box in there..somehow..without breaking your responsive work. Sucks, doesn't it? But it doesn't have to. Using a little jQuery you can cause the Facebook Like Box to re-render on window load or resize allowing it to become responsive versus hardcoded.

 

Facebook Album: Caching and Localization

My Facebook Album for WordPress has one major issue: performance. Each time a the plugin is loaded it polls the Facebook API for a response to parse the photos feed. I am going to integrate the caching method WordPress's RSS widgets use for caching Facebook's API response. By default the cache will set to one day, but I will be sure to add a setting that allows adjustment. Secondly I want to localize the plugin since there is such a wide variety of users from different countries. I'm going to start localizing the plugin based off of the demographics analytics of the plugin's page.

Flush WordPress rewrite rules through phpMyAdmin

I migrate a lot of WordPress installs from a localhost to the beta server and then to production. It's easy enough to update the URLs in _options and guids in _posts, but the one thing that irritated the hell out of me was the rewrite rules. WordPress caches the rewrite rules within _options; if you've migrated a WordPress you'll notice links are broken even though .htaccess is fine. Simply find "rewrite_rules" in _options table and clear out it's value - badda bing.