Mashable changed its platform from WordPress to Ruby on Rails

Mashable New Look

Mashable New LookMashable, the latest in social media, tech, world news, business, entertainment related blog was based upon wordpress cms. Recently it has changed its look and feel with completely new style and fully responsive layout. Ruby on Rails with Backbone JS and Handlebarsare the platforms used to built the new site. Features like Adaptive Design, “Next Big Thing” and “Velocity” sections, Infinite scroll features inplace of old pagination and Microcontent facilty to share thing on the socual web have been added.

To see the design and layout of Mashable visit: Masahable

From Quora:
Read Quote of Chris Heald’s answer to Mashable: Is Mashable still using WordPress as the cms/platform ? What are the technologies behind this new look and feel? on Quora

Mashable is now running on a custom technology stack. The public-facing bits are a Ruby on Rails backend, with a lot of the templating work pushed to the front-end with Handlebars and Backbone. We’ll be doing a full writeup on the build in the near future.

Learn, Grow & Build @ Wordcamp 2012, Mumbai

Second time in a year 2012, Yes!! after successful Wordcamp at Cuttack, India… its Mumbai (also known as Bombay, the most populous city in India) where the next Wordcamp 2012 is going to be held.

If you are passionate and knowledgeable about WordPress โ€“ from novice user basics to custom plugin/theme development, then this is the right place and right time to for you. Wordcamp Mumbai is bringing together the best in local designers, developers, business owners, and bloggers from across India and beyond under one roof, for blasting two days.

People like: Philip Moore (Theme Wrangler at Autmattic) and contributor to the starter theme “_s” (, Soumya Pratihari a professional blogger with over 25 blogs from Odisha and many others will be speaking during this two days event.

For Wordcamp Mumbai, 2012 details, visit:

So, Learn. Grow. Build. ๐Ÿ™‚ ๐Ÿ™‚



WordPress 3.5 (Beta 1) and Twenty Twelve theme is released

WordPress 3.5 Beta 1 is now available to download with lots of improvements. Another great news is the default theme which will be inside the WordPress 3.5 is also released and can be downloaded now separately for use. Have a look here: Twenty Twelve theme preview
Download it from

Loading facebook social plugin into AJAX generated dynamic content. [Solved]

To include Facebook social plugins(ex: Facebook Comments into our site, we use some java-script and some HTML structure provided by facebook. It works fine until you have AJAXified your pages. If your site refreshes each page on each request then facebook social plugins work perfect.
Problem occurs when the HTML structure is loaded via AJAX and the script used for FB is not called again after the ajax response. This happens because Facebook parses the page only on initial load and so doesn’t pick up the dynamic content. To make it work on AJAXified content, we need to explicitly tell it to re-parse the entire page, or just the new content.

Recently, I used a plugin called “Ajaxify WordPress Site” which makes a wordpress website completly AJAXified semlessly. Really nice plugin to ajaxify WP sites without any hassel, but one problem I faced with this was Facebook Comments not being rendered after AJAX response for which the answer is “FB.XFBML.parse()” function call.


1. JavaScript SDK which needs to be included once on the page.

2. HTML code to be placed wherever we want facebook plugin to appear on your page.

So, in our case, say this bit of HTML code comes dynamically with AJAX not on page refresh. So how can we display the facebook comments ?

Answer is simple: Call the ” FB.XFBML.parse() ” explicitly inside the AJAX success function, which will re-parse the html and render the Facebook comments section. ๐Ÿ™‚

3. Code for AJAX success block with “FB.XFBML.parse()” call.

Hope this will help someone solving facebook social plugin issue with AJAX content.. ๐Ÿ™‚

List of parameters that can be pass through WP_Query constructor to create a new query object in wordpress

WP_Query – the heart of wordpress is nothing but a class defined to fetch data from DB and make global objects that can be used in wordpress.
To create a new wordpress query object we can pass the parameters accordingly and get the required data. Here is a list of parameters with description in one place which can be passed through the WP_Query constructor.



WordPress 3.4 upgradation creates new problems, issues !!

wordpress 3.4

Now that WordPress 3.4 Green is out, everybody can see a upgrade notification on the top of admin backend. Before clicking that link for auto update, let’s see some of the problems, bugs, issues those are reported by users who has already upgraded.

If you Google a bit, you can find that: wordpress 3.4

  • Header problems after Upgrade to WP 3.4 and Weaver 1.1
  • WordPress 3.4 – Image align problem
  • Trying to troubleshot image caption issue
  • Incompatibility with qTranslate plugin
  • WordPress upgrade 3.4 and now no Akismet stats
  • WP upgrade 3.4 broke my page templates
  • WordPress 3.4 Upgrade Error with Database Reloaded Plugin
  • SleekPhoto Slider Not Working After WordPress 3.4 update
  • Can’t login after upgrade WP 3.4
  • Mail problem After wp 3.4

And lot more like these…..

Is the new WordPress Green has Bugs,defects ??(Ans: may be , may be not) Why is it breaking my site’s design, site’s functionalities ??

So the answer to all these above problems is precautions and backups before upgrading the WordPress to latest. WordPress always warns you to โ€œplease back up your database and filesโ€ before upgrading to the latest version of WordPress. Out of 100%, let’s say.. 1% or less is the chance that the new WP version might have problems, others are due to incompatibility with plugins and themes.

Remember these points before upgrading to newer version of WordPress.

WordPress Before Upgrade Checklist:

1- Check your Theme and Plugins for compatibility with WordPress 3.4

Try to ensure that your current theme and plugins are compatible with the newer version of WordPress. Visit these links to check Theme Compatibility and Plugins Compatibility. If the theme and plugins are not compatible, then update to latest versions of Theme and Plugins.

2- Disable and/or Remove Old Plugins:

Go through your Plugins list and get rid of the Plugins you donโ€™t use any more. Remove them from your server. If there are Plugins which are not compatible with the new version, check for updates and install them. If there are no updates, look for alternatives.

3- Validate your Theme:

If you have been tweaking with your WordPress Theme, take time to run it through a validator to ensure that it still works and there is nothing left broken. See the Validating a Website article in the WordPress Codex for help.

4- Take Backup of everything:

  • Backup your database using tools like PhpMyAdmin, Adminer etc.. Several plugins can be used to backup: WP DB Manager , X-Cloner Backup
  • Back up ALL of your files in your WordPress directory and your .htaccess file. Typically, this process involves using an FTP program to download ALL your WordPress files from your host to your local computer. Use  BackWPUp plugin to backup your whole site.
  • Ensure that the backups are usable and kept in a safe,secure place.
  • Never Delete these files:

    • wp-config.php file;
    • wp-content folder; Special Exception: the wp-content/cache and the wp-content/plugins/widgets folders should be deleted.
    • wp-images folder;
    • wp-includes/languages/ folder — if you are using a language file do not delete that folder;
    • .htaccess file — if you have added custom rules to your .htaccess, do not delete it;
    • robots.txt file–if your blog lives in the root of your site (ie. the blog is the site) and you have created such a file, do not delete it.

5- Now, if everything is in place, go and upgrade wordpress to version 3.4 Green.

Check the whole site if everything is working fine. ๐Ÿ™‚ However, this does not mean everything is guaranteed to go smoothly. Even if most of the sites experience no issues with an upgrade, there is always some sites that can experience small problems.

For troubleshooting

, check your theme files, plugins files.

  • Try disabling the current theme and enable TwentyEleven theme.
  • Disable plugins and enable one by one to check which plugin is causing issue.
  • Visit respective plugin support forums on WordPress website. WordPress Support Forum

    Latest news !! WordPress 3.4.1 is out with lots of fixes and patches

    On June 27, 2012, WordPress 3.4.1 was released to the public. This is a maintenance and security update.

    This maintenance release addresses 18 bugs with version 3.4, including:

    • Fixes an issue where a themeโ€™s page templates were sometimes not detected.
    • Addresses problems with some category permalink structures.
    • Better handling for plugins or themes loading JavaScript incorrectly.
    • Adds early support for uploading images on iOS 6 devices.
    • Allows for a technique commonly used by plugins to detect a network-wide activation.
    • Better compatibility with servers running certain versions of PHP (5.2.4, 5.4) or with uncommon setups (safe mode, open_basedir), which had caused warnings or in some cases prevented emails from being sent.

    Additionally: Version 3.4.1 fixes a few security issues and contains some security hardening. These issues were discovered and fixed by the WordPress security team:

    • Privilege Escalation/XSS. Critical. Administrators and editors in multisite were accidentally allowed to use unfiltered_html for 3.4.0.
    • CSRF. Additional CSRF protection in the customizer.
    • Information Disclosure: Disclosure of post contents to authors and contributors (such as private or draft posts).
    • Hardening: Deprecate wp_explain_nonce(), which could reveal unnecessary information.
    • Hardening: Require a child theme to be activated with its intended parent only.


Remove or override functions attached to a specified filter hook

There are situations when a plugin/theme use some filter hooks to change the default behaviour of the wordpress functionality and then forgets to remove the change they have applied or sometimes intentionaly because of such requirement. But this affects all over the website and causes problem, where as we want to use the default behaviour and not this changed one.

Now, the question is ” how can we override a funtion that is already applied for a particular filter hook “.

Option 1: remove_filter

If we know which function is called for a particular hook which is causing the issue, then we can use

Option 2: remove_all_filters

Remove all the call_back functions those are added for a particular filter hook.(Helpfull when we don’t know the functions that are applied for a particular filter)

But again,this might cause issues as we are completly removing all the functions(whatever is the priority) for that filter hook. There is a solution too.

Option 3: add_filter with high priority

Call a custom defined function with high priority for the filter hook.
Default priority number is 10. So I am passing 99 as the $priority parameter.

Don’t forget to remove the filter once you are done with your task.


Simple example to understand the exact situation:

* A plugin uses a function to change the default sorting order of posts.

* Now we have a widget(say Popular Posts by Comments count) which fetches and displays the most commented posts.

* Now the problem is that the Popular Posts by Comments count widget does not display the posts as intended i.e. orderby most commented. ๐Ÿ™


Write a function which will be called to override the previous funtion(mentioned above). Now call this function for that filter hook with high priority. ๐Ÿ™‚

* So the modified code will be as below:

Hope this post will help somebody someday !! ๐Ÿ™‚


Wordcamp 2012 at Cuttack, Odisha

WordCamp Cuttack, Odisha, India, where enthusiasts will discuss development (core, plugins, themes), business models, the art of blogging and other matters related to WordPress. It also going to feature a workshop, designed for WordPress newbies, who have little or no knowledge of WordPress. This is the opportunity to learn from highly acclaimed WordPress geeks. So what are you waiting for…!!

Find some details here: