Making a particular kind of search engine with WordPress?
Look for business directory plugins in the WordPress repository.
Look for business directory plugins in the WordPress repository.
Do I understand right that you need to pull information from WP in JavaScript code? In that case it would be appropriate to use WP’s Ajax handler. See AJAX in Plugins in Codex. If native feeds are very close to what you need another option is to register custom feed with add_feed() and use it … Read more
I am pretty sure this is down to your site running PHP4. I suspect that your server has both PHP5 and PHP4 installed and happens to running PHP4 on this site. You can verify this by uploading a file version.php to your web root folder containing the following PHP command <?php echo phpversion(); ?> Regards … Read more
This type of thing is most easily done from the TinyMCE editor through a plugin. Details of creating one using WordPress filters can be found here: http://codex.wordpress.org/TinyMCE_Custom_Buttons function myplugin_addbuttons() { // Don’t bother doing this stuff if the current user lacks permissions if ( ! current_user_can(‘edit_posts’) && ! current_user_can(‘edit_pages’) ) return; // Add only in … Read more
I looked for one of these recently, as I have seen them, but I believe they are only bundled with some commercial themes. I ended up making one using CPT’s and jQuery Tools, it was pretty simple. The steps, Create a CPT with only the featured image upload ( to keep ad size to 175px … Read more
Read the WordPress codex, specifically http://codex.wordpress.org/Plugin_API and if you are looking to create tables read http://codex.wordpress.org/Creating_Tables_with_Plugins. Make sure you remove them if the plugin is uninstalled.
You will need to restore the database prefix after using it , with something like this global $wpdb; $previousPrefix=$wpdb->prefix; $wpdb->prefix=”mainsiteprefix_”; //Database access goes here $wpdb->prefix=$previousPrefix; or you can create a new wpdb object like this: $wpdb2 = new wpdb( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST );
Check out the Administration Menus section in the Codex, I actually used it pretty heavily over the last couple days to create a sub-menu and it helped a lot. It goes into detail on the top level menus as well. You’ll specifically need the add_menu_page() function to create the top level menu, as well as … Read more
This should work. It’s the way press-this gets the post id when you click the bookbarklet. add_action( ‘load-post-new.php’, ‘prefix_save_it’ ); function prefix_save_it() { // define some basic variables $quick = array(); $quick[‘post_status’] = ‘draft’; // set as draft first $quick[‘post_category’] = isset($_POST[‘post_category’]) ? $_POST[‘post_category’] : null; $quick[‘tax_input’] = isset($_POST[‘tax_input’]) ? $_POST[‘tax_input’] : null; $quick[‘post_title’] = … Read more
According to Codex register_widget() should be hooked to widgets_init. Hook into init then and at that point hook further different methods to appropriate hooks later.