Smart Deeplinking (indidvidual sharing) doesn’t work due to a conflict

­

JIG Smart Deeplinking works by adding certain meta tags to the head of your page, but only in very specific circumstances, when it's actually needed. SEO plugins such as SEO by SQUIRRLY have a task to add good meta tags to every page. Some of them do it in a way that JIG can't overcome them, usually when they do output buffering with a search and replace to remove what's there already. You'll notice that when you disable such plugin, the JIG Smart Deeplinking feature starts to work. Instead of fighting with these plugins and changing their or JIG's source files (so you can't update), there is a better solution that is guaranteed to work.

A small must-use plugin (mu plugin) is necessary to disable the conflicting plugin but only when it's absolutely necessary and when JIG should be the one adding said meta tags. It'll leave all plugins untouched, updateable and as future-proof as it can be. It needs to be a must-use plugin before it loads sooner than regular plugins, allowing us to disable a plugin in time. 

  1. Create a folder called mu-plugins in your wp-content directory on your server (if it doesn't exist already).
  2. Add the snippet below as selective-loader.php or whatever name you like.
  3. Change squirrly-seo/squirrly.php to the pluginfolder/mainfile.php of your conflicting plugin. You can figure out the "main file" of a plugin by going to its folder and looking for a file with a similar name as the plugin itself. It'll contain a comment block at the top stating the plugin's name among other info.
Tip: This type of plugin can also be used to disable plugins entirely on pages you don't really use them. Have you ever installed a plugin for just one page only to have it load all kinds of things on every page even the admin area, slowing things down? Check out this idea.

Further information:
This troubleshooting fix was posted in Theme and plugin conflicts on February 23, 2016