The first part of our plugin will cover integration of images into the WordPress Write Post screen.
We want to add a custom panel, which we will use later to display the search results.
Let's start building our plugin by creating a PHP class, and then adding functionality to create a custom panel.
Create a new folder called insights.
Create a new file,
insights.php
.<?php /* Plugin Name: Insights Version: 0.1 Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/insights Author: Vladimir Prelovac Author URI: http://www.prelovac.com/vladimir Description: Quickly find relevant posts and Flickr images for your article */ global $wp_version; $exit_msg='Insights for WordPress requires WordPress 2.6 or newer. <a href="http://codex.wordpress.org/Upgrading_ WordPress">Please update!</a>'; if (version_compare($wp_version,"2.6","<")) { exit ($exit_msg); } // Avoid name collisions. if...