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)

0
votes
1answer
670 views

My plugin creates custom widgets, How can I programatically add them to existing sidebar widget areas?

OK, I can create the code to add custom widgets to the widgets manager. Check. My next challenge is to, in the same plugin, during activation, check for the existence of my theme, and if active, ...
0
votes
1answer
33 views

Is there a (preferable built-in) way to check what custom queries are used in a theme?

I've build a theme using custom post-types with queries like $my_custom_post_type_query = new WP_Query( array( 'my_arg' => 'value' )); Now I'm writing a plugin where I need to do something like ...
0
votes
1answer
364 views

restricting custom rewrite to just one custom post type

I am using the following code to create a short permalink for one of my custom post types. I have another cpt that I wish to just use the default permalink structure, so what would be the best way to ...
0
votes
1answer
2k views

How to deal with different jQuery versions?

For example If you have a plugin on a site that uses jQuery 1.5.x and want to create a new plugin by implementing a script which uses an older version of jQuery, for example 1.3.x or 1.4.x. I know it ...
0
votes
1answer
163 views

WP plugin repository didn't parse readme.txt correctly

I just added a plugin on WP repository but it seems like my readme.txt wasn't parsed correctly. I even ran it through the validator but on the plugin page it shows Description text under all tabs - ...
0
votes
2answers
1k views

How to show multiple instances of the WP125 Widget?

I have multiple sidebars, based on different pages. How can I get the WP125 widget to show on all of them?? Once I add it to one sidebar, it is unavailable to put on others (like many other widgets by ...
0
votes
1answer
327 views

help intercepting save_post through plugin

I use stackoverflow very often and just found out in google about this one, Nice :D Well, i want to save my every post i write from wordpress to my 3rd (OEXChangeble) website aswell at the same time, ...
0
votes
1answer
295 views

unregister a sidebar widget

The codex says it is depreciated. As a long time plugin user, I know how annoying it is when plugins don't clean up after themselves, is it's deprecation indication that it is necessary?
0
votes
1answer
347 views

Restore svn trunk of my plugin repository to the initial state?

I messed it up and I don't know how to fix it. I thought it would be easier if I just literally delete all the files and start over again. Is there a way to do it? I tried some tips in google to no ...
0
votes
1answer
214 views

“Rendering of admin template [path to template] failed”

I've got a php script that is called when the user is editing the category. However, although the page renders fine for the most part, at the point where the image upload button should appear, I'm ...
0
votes
1answer
213 views

Can I attach a plugin via my add_filter callback contents?

I'm trying to add my plugin interface to the Category Editor. I've easily attached it to the post and page editor using the add_meta_box() filter, but there does not appear to be an add_meta_box hook ...
0
votes
2answers
120 views

Is there any way to pass messages from a script to a redirect target in a hidden fashion?

I'm trying to pass error messages or regular messages from a page that processes a form post request to the page it then redirects to (after processing). Since i want to get rid of the POST request ...
0
votes
1answer
174 views

best way to run a php script away from the template?

I'm looking for some inspiration on the best way to run a php script away from the template. I know that the wordpress core files won't have loaded, so I am wondering what workgflow you follow when ...
0
votes
1answer
161 views

What should I pass for $needed_dirs when calling _unzip_file_pclzip (aka PclZip)?

I'm trying to create a fallback method when ZipArchive is not present. I'm seeking to use the _unzip_file_pclzip() function contained in wp-admin/includes/file.php However, I'm not sure what is ...
0
votes
1answer
656 views

Custom Path for a Plugin

i developed a plugin (the backend at least) and now i want to add a frontpage to my blog. the url should look something like this http://www.mywordpressblogalsoroot.com/mypluginname/param1/param2 ...
0
votes
1answer
356 views

WP 3-way voting system: On to something! Please help!

Okay I posted a question yesterday, that can be found here. I've found some code on the wonderful internet that I think is really the ticket for me, but I don't know how to develop into what I really ...
0
votes
2answers
777 views

Custom Post Type, Custom Columns List

I've basically done a full plugin and now just "prettifying" it sort-of. One thing I'm doing is re-doing the columns for listing the "posts" I made. This part is fine, and all columns are replaced as ...
0
votes
1answer
790 views

Updating post meta for custom post types

I'm writing a plugin for work (still) and having one more issue. I've added my meta boxes as needed. However, the problem I'm having occurs when saving the post. My snippets for saving pretty much ...
0
votes
2answers
297 views

How to alter the order of custom form fields

I've added a "Custom Title" field to the Category editor in order to capture a keyword friendly title that can be used separately from the category name. It works great, but it appears as the last ...
0
votes
1answer
628 views

How can the_excerpt (or equivalent) be called on a category description?

In the code below, rather than writing out the entire description field ($category->description), how can I call the equivalent of the_excerpt? I'm placing the "more" tag after the first paragraph of ...
0
votes
2answers
187 views

List categories with descriptions via plugin

The code below creates a plugin that appends the contents of $content to "the_content" on the hompage. It works fine when I set $content to a static value. However, I'm trying to set it to draw out ...
0
votes
2answers
348 views

How to determine which capability to use?

For example, I want to use add_menu_page() function to add a menu item to the dashboard. To control which users will be able to access it, I'm supposed to use capabilities... <?php add_menu_page( ...
0
votes
1answer
485 views

Plugin Creation: Overriding upload_max_size and post_max_size

I'm trying to write a plugin script that involves the user uploading a large file. To cope with this I need to alter the following settings: post_max_size upload_max_size If I alter these in ...
0
votes
1answer
675 views

How to preset a sidebar widget with default content via script?

I'd like to add some code to my plugin populate a specific sidebar (if it exists) with a text widget containing preset content. Assuming that the sidebar I'm trying to preset is referenced by ID as ...
0
votes
2answers
987 views

Will a plugin able to know is_user_logged_in?

I am currently building a plugin and it doesn't know when a user is logged in. global $current_user; echo $current_user->ID; It works when embedded on a template but not on a plugin? I have a ...
0
votes
1answer
276 views

Plugin could not be activated because it triggered a fatal error?

Warning: Invalid argument supplied for foreach() in /.../ipn_res.php on line 28 Warning: Invalid argument supplied for foreach() in /.../ipn_cls.php on line 30 From line 28 is a foreach loop: ...
0
votes
1answer
2k views

How to exclude “uncategorized” from custom categories widget?

The code below if from my WP plugin which gives a filtered listing of categories excluding the "uncategorized" category from display. However, when the user chooses "Show Hierarchy" from the widget ...
0
votes
1answer
231 views

Problems with wierd characters and my plugin

There are special characters that can cause problems in word press, like the infamous microsoft word smart quotes. However, there are many that are captured and dealt with. My collegue and I have ...
0
votes
1answer
583 views

Get cat parameter from admin-ajax

I have a plugin that restricts the categories users can view/edit in the admin. All works fine in WordPress 3.0.1, but as I started testing 3.1 I noticed that the category filter, which is AJAX, ...
0
votes
2answers
475 views

Why does preg_replace_callback never fire in this function?

In the function below, the save_content function runs, but the doReplace does not (echo "This is the doReplace" never shows. Any ideas why? add_action('content_save_pre', 'save_content'); ...
0
votes
1answer
227 views

how to add custom fields into new & update post page?

I want to add new whole section of custom fields in admin UI of new post page edit post page Could somebody suggest any nice code example?
0
votes
2answers
3k views

How to get shortcode to work inside a foreach loop called within a shortcode?

My plugin, WP Coda Slider, uses a shortcode to get_posts and add them to the slider. If one of the posts contains shortcode the shortcode in that post will not work. $my_wpcodaslider = new ...
0
votes
2answers
371 views

Widget instance options not showing correctly

i have a setup like function form($instance) { $defaults = array( 'title' => 'Recent Products', 'number_products' => 3 ); $instance = wp_parse_args($instance, ...
0
votes
1answer
389 views

Questions about meta box: nonce and parameters available

1st question is: is a nonce required for a meta box? i read on the wordpress codex add_meta_box and they have a nonce for the meta box, i'd thought that maybe the add post form will already include a ...
0
votes
1answer
105 views

Is there a plugin that will allow a tag cloud to be created from any mysql field?

I have run into a frustrating situation in the development of my site/store. I am using the Shopp plugin and there is a disconnect between the tags in WP and the tags in the store plugin. In my case ...
0
votes
1answer
22 views

Acessing WP functions in form submission handler

I have a form which is embedded in a custom post type. The form action points to a PHP file that sits in my mu-plugins directory: <form ...
0
votes
0answers
14 views

How to upload thousands of images with folder tree?

Hi We need to upload meda from FTP and when choose image from add media there show foder tree for choose media. See the attached screenshot.
0
votes
1answer
36 views

How to filter content for specific content variable

I created a plugin that adds content from another post, and places this content next to the original content. I can say, that this content should appear at the bottom of the original post content. I ...
0
votes
0answers
13 views

How do I let users specify interests on signup and have this reflect content displayed on homepage?

I'm looking for something that will allow my site to have the following functionality: A user creates a login for my site. When creating a username and password, they also select from a list of ...
0
votes
0answers
15 views

Not Able to Get Custom Post Type in Single and Single-custom-post-type

I have a custom post type called projectsCPT and I am able to display them on page-projectsCPT.php <?php /* Template Name: Projects */ get_header(); ?> <div class="container" ...
0
votes
0answers
21 views

How to hide a post until its prerequisites are complete

I have two custom post types Exercises and Tempo Submissions. For each exercise, I have a field that contains an array of other exercises that are it's prerequisites. I also have an exercise field ...
0
votes
0answers
18 views

Fastest way to load plugin and store and retrieve settings?

For two plug-ins I made I think it's important that they are as fast as can be when loaded at the front-end side because both insert scripts into the public html source. For this it hooks into almost ...
0
votes
0answers
11 views

INNODB Supports transactions, row-level locking, and foreign keys

When I try to create a table for a plugin (that was dropped in the past) I get the error: #1005 - Can't create table 'database_db.wordpress_popularpostssummary' (errno: -1) (Details…) And the ...
0
votes
0answers
3 views

Comparing a number to each value in array [migrated]

I have users submit tempos(number) and I would like to compare that number to an array of preset numbers and return one value that is the next number up from it. For example: Submitted tempo - ...
0
votes
3answers
39 views

Change default url to plugin custom post type

I have a custom post type in my plugin "Luckydraw" as 'voucher'. By clicking on post link, wordpress generates its URL as : http://localhost:81/luckydraw/index.php/voucher/testing-2/ But I want ...
0
votes
0answers
31 views

Saving dynamically created options

I have an options page that has a dynamic repeatable table row. Currently there are two date fields, I will add more at a later stage. I'm now struggling on how to save the data to the WP database ...
0
votes
0answers
25 views

Custom database tables for each forms

I'm wanting a forms functionality, where the form creator can allow the use to create custom tables. Like each form having a separate user specified table and user specified column name as per the ...
0
votes
0answers
16 views

Object Oriented plugin, add action and variables

I'm developing a plugin using the WordPress Plugin Boilerplate and am after hitting a wall. I need to hook into when a custom post type is published (as in the user hits publish) and when its ...
0
votes
0answers
30 views

WordPress permalink for custom post type with taxonomy and post title

I have custom post type death and have a taxonomy death-area for each post. I want to set permalink as http://base/death/[death-area-name]/[post-title] But instead I am getting ...
0
votes
0answers
18 views

Developing View/Click Tracking For Custom Plugin

I have a custom plugin that we use on a private multisite network that just allows users to add forms to their site via widget/shortcode. It uses a custom post type and a lot of custom options in the ...