WordPress Plugins allow easy modification, customization, and enhancement to a WordPress blog. Instead of changing the core programming of WordPress, you can add functionality with WordPress Plugins.

learn more… | top users | synonyms (1)

1
vote
1answer
6k views

How do I implement JQueryUI dialog modal in a WP plugin?

I have a Wordpress plugin I created which creates custom top level menu and submenu fine. The Submenu calls this, (entire code beneath) the BranchMaintenance php form, which shows branches in a table, ...
4
votes
2answers
48 views

What is the correct way for a theme to support plugin UIs?

For instance if my plugin is creating a form on a page, what can I do to make it as easy as possible for theme developers to skin the form too?
0
votes
2answers
2k views

How to exclude categories from get_categories() select list inside a widget admin panel

I have a widget that I need to add a category select list to. The end user should be able to select a category and I need to save the category ID with the widget. I've hit a stumbling block in that I ...
0
votes
1answer
624 views

Setting a post's category

I'm creating new categories with galleries taxonomy : $wpdb->insert("wpem_terms", array( 'name'=>'Custom Category', 'slug'=>'customcategory', 'term_group'=>0, )); //id of ...
2
votes
1answer
1k views

In woocommerce who is responsible for sending the receipt email?

I'm writing a Paypal Pro woo commerce extension to allow it to accept credit card directly on my websites. When I test things, everything works well. The only thing that I don't get is an email ...
1
vote
2answers
1k views

How to Create a Custom Plugin Permalink

I wrote a simple plugin that will redirect the users to a page on a certain date. (in this case it's for the Blackout against SOPA here in the US) Right now I'm using the line ...
0
votes
1answer
42 views

On one of my sites a file is shown as 404 but the file IS there

(Cross-posted from stack overflow) I am building a WordPress plugin. The plugin works beautifully on one site. But on every other site I've tried so far one of the resource files used it getting a ...
-1
votes
1answer
620 views

Customize Multi-Column Tag Map to fetch specific post-type

I'm using a plugin called "Multi-Column Tag Map" that lets you display all tags that were used and arrange them in a alphabetical order. This plugin works fine in a regular post-type but It's not ...
3
votes
1answer
576 views

Edit the output of wp_widget_rss_output()

I want to show rss feed in my dashboard widget, i use this code: wp_widget_rss_output(array( 'url' => 'http://www.example.com/', 'title' => __( 'Some Title' ), ...
1
vote
1answer
330 views

How can I rewrite a URL to pass requests to a custom method via AJAX? (I can't use admin-ajax.php)

I have to build a WordPress plugin which gives out HTML for an AJAX call. However, because of the server environment I cannot use the traditional admin-ajax.php. Someone told me that I could build a ...
1
vote
3answers
2k views

Help With MySQL to WPDB Query Conversion

I have a problem. I've got a PHP script that tracks individual file downloads, and I'm looking for a way to display that number in individual posts. I've got a half-baked solution- a plain ol' MySQL ...
0
votes
1answer
378 views

Options don't save, validation callback not executed

I have been using settings API for my plugins for some time and it used to work well. Now it is broken and I can not figure out why. Apparently, the option validation function is not even called. Form ...
1
vote
1answer
294 views

Sending WP posts to external API

What's the best method for sending all new Wordpress Posts to an external script on another server? It needs to include the full post information including the post content, so a simple ping is not ...
0
votes
2answers
237 views

How to prevent plugins from sniffing/stealing other plugins' options?

Many plugins require configuration with sensitive data such as API keys, passwords, etc. When implementing these plugins, this sensitive data is stored using functions such as update_option() and ...
1
vote
2answers
3k views

Hook to get image filename when it is uploaded

I want to get the full local filename of an uploaded image so that I can copy it to a new directory and process it with my own image processing scripts. Which hooks/actions should I look into to ...
0
votes
1answer
35 views

Plugin access to average users not only admin

I'm new to plugin writing, but intermediate in theme making. I wonder if it is possible to write a plugin, to add addition functionality for users, who don't have admin status. Can I give them ...
1
vote
1answer
146 views

Admin Plugin POST to another file within the plugin

This is a simplified version of what I need to do (i.e. I know there are other ways of doing things but I need a solution to this specific problem). I am using wordpress 3.3 from a fresh install. I ...
0
votes
1answer
184 views

Custom Module, Extending WP with a Plugin?

I'm trying to determine the best way to expand on WP. I love the base of WP for a website... it has pretty much everything needed for a website. But now and again I need to be able to create some ...
4
votes
3answers
3k views

Add Dividers or Separators Between Nav Menu Items

Does anybody have an idea on how to allow a user to drop in separators or dividers between certain nav menu items? Google only seems to bring up rookie CSS tips for first/last child selectors but I ...
0
votes
1answer
1k views

pagination in a custom list created with get_pages function

I have a custom page that calls a function - say generatelist the generatelist functions call get_pages() and loops through the array using for each and building a list containing various data from ...
3
votes
2answers
118 views

Which to use to execute code during the saving of a plugin settings page?

I'm writing a plugin with a settings/option page and I want some php code to be executed whenever someone saves the settings on that page and that page alone. Which actions do I need to hook into to ...
0
votes
1answer
310 views

How do I remove all traces of a plugin?

I am busy writing a plugin (called supermail), so I install, activate, deactivate, and delete the plugin fairly often. However, quite often one or more of these operations doesn't go smoothly, and I ...
0
votes
1answer
244 views

Setting post_id for single.php based on URL without a redirect

I'm migrating a Joomla! database to Wordpress and the website has to remain exact regarding URLs. The Joomla site has its posts with .html extensions, and the importer I created maps the Joomla file ...
-1
votes
1answer
1k views

How to Implement SAM Broadcaster with Wordpress? [closed]

I want to implement SAM Broadcaster software in wordpress. This is radio automation software. my client wants to implement with wordpress because he want to add some articles and videos regularly with ...
1
vote
1answer
264 views

Communicate between plugins

I have created two WordPress plugins. If both plugins are installed, some beneficial cooperation could take place between the two. So my question: what is the best way to get them to work together? ...
1
vote
1answer
386 views

Display custom content using page.php from theme

I am developing a plugin and need to generate a blank page (load the page.php from the current theme) and print custom content such as an HTML form or a message. It should have a URL like ...
1
vote
1answer
859 views

When to load auto-login code?

I'm using this (simplified) code to automatically login users via a plugin for a single sign-on system: $user_info = get_userdatabylogin( $username ); $user_id = $user_info->ID; ...
11
votes
1answer
672 views

Plugin API for easy admin list table generation, handling & exporting of MySQL tables?

I'm aware of the WP_List_Table class (which has helped tremendously as it stands). However, I'm hunting for something even more capable - some form of API whereby you could simply 'register' a MySQL ...
9
votes
1answer
5k views

What's the difference between term_id and term_taxonomy_id

The title says it all. At the moment in my custom taxonomies I'm getting the terms using the term id and taxonomy name. Thought this question would've been asked before but can't find it anywhere! So ...
4
votes
3answers
1k views

Has anyone managed to integrate the wp_editor inside a widget?

Adding this in the widget form method: wp_editor($text, $this->get_field_id('text')); seems to work. But after you press the "Save" button the widget goes funky... Adding ...
5
votes
1answer
831 views

Show Similar Post Titles ( Similar to Stack Exchange )

I really like how Stack Exchange sites handle posts, where after you finish typing the title it will list out similar titles. How can I implement something similar on my WordPress installation? The ...
1
vote
1answer
113 views

Wrap meta boxes & data handling for specific post types in classes?

I have a site with a few custom post types, each with their own custom data, meta boxes & assets (stylesheets, images, JavaScript). Typically I'd hook onto add_meta_boxes to register all my meta ...
5
votes
1answer
849 views

How does Wordpress handle MySQL row lock errors?

If there is a WordPress plugin which updates rows in a custom table, but that update encounters a row lock, what happens? E.g. two users simultaneously fire an update on TABLE1, one setting AGE=1 and ...
0
votes
1answer
104 views

How to get values from network settings panel?

I'm using wordpress 3.3. I've created a plugin My plugin details: My plugin creates a sub menu under Network settings and create two form fields to define adsense code (200 x 200 ad, 300 x 250 ad). ...
1
vote
2answers
536 views

Wordpress Settings API: saving multiple rows of similar data

I've been experimenting with the plugin options starter kit but can't find a way to save multiple rows of similar data using the Settings API. Example of what I'm trying to save: ...
0
votes
1answer
88 views

Drawing the line between theme & plugin on large scale bespoke projects

With most of my sites, sprinkling in the functionality within the theme seemed the logical way to go. For example, a site with a 'product' post type, or a few options in a meta box or setting page. ...
1
vote
1answer
701 views

AJAX search posts and pages

Im trying to make a plugin where i need to create an AJAX search. Im using the method described in http://www.garyc40.com/2010/03/5-tips-for-using-ajax-in-wordpress/ to perform the ajax calls. So far ...
0
votes
1answer
1k views

Auto add content such as pages upon plugin activation?

I'm creating my first plugin and it requires some pages with content to functionally work properly. I was wondering if it is possible to show a message like "Click here to automatically add the ...
0
votes
1answer
383 views

Why doesn't update_post_meta work for certain strings?

I am trying to store the local path to an uploaded file as a meta for a custom post type, using the following code: $upload = wp_handle_upload ( $_FILES [WPSM_MAIL_META_ATTACHMENT], array ...
0
votes
3answers
3k views

adding a button to the media uploader

I am writing a plugin for Wordpress and am wondering how to add an extra button to the media uploader that says something like "add to album". I can't seem to find info on how other developers have ...
0
votes
2answers
43 views

How do I reliably find a URL to a script or other file?

I have the method below to try and build a URL for a script I wish to load: class WPSM_SuperMail { public static function scriptUrl($scriptPath) { return plugin_dir_url ( __FILE__ ) . ...
0
votes
1answer
45 views

How can I include active content in a custom post type?

Related to my How do I create a custom post type for a training CMS in WordPress? question, if I have a custom page type created for the presentation of training content, how could I include active ...
1
vote
2answers
846 views

How could I create a 'private comments' section on a custom post type?

Related to my How do I create a custom post type for a training CMS in WordPress? question, I would like to know how I can create a private comments section for a custom post type (or any post type ...
0
votes
1answer
262 views

How do I create a custom post type for a training CMS in WordPress?

I need to create a custom post type based on the existing 'Page' type, for a WordPress based training CMS. I have no problem simply creating a new post type, but I would like to offer some kind of ...
11
votes
1answer
3k views

WP 3.3 How to Add Menu Items to the Admin Bar?

I've just installed the Yoast SEO plugin and noticed that a new flyout menu was added to the admin bar once the plugin was activated. Anyone know is there is a tutorial or example on how this is ...
4
votes
2answers
1k views

WP 3.3 Tooltips API?

Does anyone have a tutorial on how to implement the new Tooltips API into a theme or plugin? I'm eager to tap into this to help first time users of my theme and plugins. From mashable'e excellent ...
0
votes
1answer
2k views

WP 3.3 makes it possible to add meta box to Category Editor Screen?

I have a plugin that appears on the post and page editor screen and parses the editor content and reports back some info to the user. I need this same plugin to appear on the category editor screen ...
2
votes
1answer
146 views

Showing Notifications While Activating Plugin

I want to give errors like this, while activating my plugin. Which hooks should i use ? Can you share simple examples ? In shortly,when user activate my plugin, is a directory's CHMOD isn't 777 , ...
0
votes
1answer
208 views

How to automatically activate a plugin on install

I have a plugin that is an installer for my theme and several plugins that work with it. For the sake of discussion, let's call the additional plugins, the "payload". The only thing I'm missing is ...
4
votes
2answers
581 views

use Wordpress theme / plugin editor in my plugin

Is there a way to use the wordpress theme / plugin editor inside my plugin to give the user the ability to edit the css file of my plugin ? Im building a plugin that gives the user an option to add ...