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)

2
votes
1answer
492 views

PHP logging framework to be used with WordPress

There are different PHP logging frameworks out there e.g. Log4php, KLogger. I want to choose one based on its experience with WordPress. Please suggest me one.
1
vote
2answers
578 views

Install widget on plugin activation

Anyone know any resources to help me install my widget when my plugin is activated?
2
votes
2answers
1k views

How to pass custom options from widget form to widget update callback?

I've added a few checkbox options to the default widget form. But I'm stuck on how to access these option states and pass them along during the widget save event (widget_update_callback) so that they ...
1
vote
1answer
93 views

How to modify the comments to be displayed in a post?

I would like to know how to modify the way wordpress displays the comments in a page. The requirement at hand is to display a certain number of comments in the comments list and while the the user ...
4
votes
1answer
765 views

Is it possible to add an admin page using add_submenu_page() and pass a var in the query string?

I am making a plugin and I have a bunch of different data types that I am creating edit pages for. I'd rather not have to create a separate function to add each one to the admin menus, since they're ...
0
votes
1answer
150 views

Wordpress 2.8 Widget API is suitable for Worpress 3.1.4 plugins development?

I am a little confused, the Wordpress 2.8 Widget API reffers to WordPress version 2.8 or is refferred to API version? Should I use 2.8 Widget API for writing my WordPress 3.1.4 widget?
2
votes
1answer
242 views

What are the really difference writing WordPress 3.x widget plugins?

I have read a lot of turorials an even the codex widget API, but can't solve my doubts: What are the really difference writing WorPress 3.x widget plugins? if there exists. this doubt came when ...
3
votes
1answer
611 views

Preparing a string in an array for localization

I'm working on a WordPress plugin and want to make sure that all text that is displayed is prepared for localization. I'm having trouble localizing the text that resides inside an array. For ...
2
votes
1answer
158 views

Broken markup when using the_excerpt() in a widget?

The text returned by the_excerpt() does not respect my widget format. I couldn't explain it better so I will just show you my code: function widget($args, $options) { extract($args); ...
7
votes
2answers
2k views

Settings API updated messages won't show if custom admin page not hooked into add_options_page()

Been playing around with the Settings API and found that messages (for success or errors) are only displayed when a settings page is hooked into WordPress menu via add_options_page(). Anything else ...
1
vote
1answer
96 views

Wordpress plugin for activating other plugins

Hi iam developing a plugin to activated a couple of plugins. i.e: the plugin jetpack has six plugins and all gets activated on a single install,like wise i need to activate a group of plugins from ...
3
votes
1answer
502 views

Building a better media uploader for WordPress

I'm building a complex gallery component for a client in WordPress. My main stumbling point is creating a media uploader in the admin screen that will let them upload images into different folders. ...
0
votes
2answers
329 views

how to get context information inside my funcion

What processing is done by wordpress when a page is accessed that loads all contextual information into $post and other variables? and is it possible to trigger this process manually (or simulate it) ...
2
votes
1answer
135 views

Creating a path in a plugin to call a function

Okay, let's assume that I want to create a dynamic "printable" page using a system that doesn't play well with wordpress's theming engine, is there a way for me to define a "permalink" in my plugin ...
1
vote
1answer
3k views

wp_mail not recognizing cc and bcc headers

I am using WordPress 3.1.3 I am getting following notices when I use wp_mail with cc and bcc headers. Notice: Undefined variable: cc in ...
10
votes
1answer
5k views

Plugin Form Submission Best Practice

I have done a lot of researching and haven't found quite what I am looking for, so I am hoping that I can be pointed in the right direction. I am developing an Events plugin that will book a ticket ...
1
vote
1answer
2k views

wp E-commerce featured product plugin with muliple option?

I'm Using E-commerce featured product plugin.in this plugin we have a options to select a single product from product list but not able to select multiple options at same time. so any suggest to ...
1
vote
2answers
75 views

need advice on how to do a lists using custom post types - taxonomy vs postmeta

i am building a lists plugin .... i want to have a custom post type "lists" and then obviously also there would be a number of list items for each list .... i have read a fair bit of stuff about ...
0
votes
1answer
646 views

can't access some worpress function from my plugin

I'm trying to write a relatively simple plugin. I have two php files, one is included within the other like this: define( 'PLUGIN_DIR', dirname(__FILE__).'/' ); include_once(PLUGIN_DIR . ...
2
votes
2answers
1k views

How to add SQL file with PHP to WordPress database [closed]

I have SQL file with US zip codes (over 41000 lines of code). I want make a plugin that inserts this SQL file into WP database so user can do a search by zip codes. I want to insert SQL with PHP ...
0
votes
1answer
466 views

Custom post type's extra fields - how to handle?

I've refrained from asking this question for a couple weeks, as I wasn't completely certain what I wanted cleared up... think I got it. I'm in the process of putting together a plugin to run a ...
2
votes
3answers
526 views

wp_localize_script $handle

Can anyone tell me what the "$handle" ( first parameter ) of wp_localize_script is normally used for. Thanks. P.s.: I have no idea why but stackexchange is telling me this question dosen't meet ...
0
votes
1answer
1k views

Extend a class plugin

I can't get the user variable from the main class loading a "child class" example: //PLUGIN FILE class father{ var $user; function __construct() { add_action('plugins_loaded', ...
1
vote
1answer
2k views

Getting template_include to work when allow_url_include is off?

I'm working on a plugin that creates a custom post type and I would like to display a custom template without modifying the theme. Here's the simplified code I'm working with: ...
0
votes
1answer
7k views

contact form 7 captcha support anyother captcha plugin?

I am Using Wordpress. I installed Contact form7.Now I Want To Add Captcha with Contact form7.I Don't like "Really Simple Captcha" because it shows very simple images.Any other Captcha Plugin Support ...
0
votes
2answers
5k views

How to add search form in main page body?

I'm fairly new to wordpress. I'm trying to develop a website with search option to find available room information. I would like to add a search box where people would be able to enter their ...
4
votes
1answer
3k views

Custom Filter in Wordpress to modify footer information via plugin?

Basically, I've got a plugin that searches for certain tokens in the entire page and replaces the tokens with images. The problem is, I've got one of those tokens in the footer and, as far as I can ...
1
vote
2answers
222 views

How to integrate CLEditor to comment system?

I would like to improve the comment editing for user by adding a simple WYSIWYG editor, and I selected CLEditor as possible good candidate because it is light, customizable and jQuery based. I ...
1
vote
1answer
713 views

ajax in wordpress - path issue

am trying out a bit of ajax ( via jquery ) in wordpresss. ... i have everything working correctly but for some reason i have to have the full url to the php handler file even though it's located in ...
0
votes
1answer
127 views

Issue with contextual help overwriting existing content

I'm missing something here: function page_help($contextual_help, $screen_id, $screen) { if ($screen_id == 'page') { $contextual_help = ' <h5>Shortcodes</h5> ...
1
vote
1answer
511 views

GET parameters interfere with my plugin settings

I have my plugin all set-up using the Settings API and working but what I have is two manual functions in my plugin that can be run by the admin user by visiting the following URL's <?php echo ...
2
votes
2answers
1k views

Custom admin_notices Messages Ignored During Redirects

I have a error handling mechanism setup in one of my plugins to add notices and errors to the admin area, just like the core does. It works fine in most cases, but there are some situations (like ...
5
votes
2answers
1k views

Inserting Taxonomy Terms During a Plugin Activation?

I've been trying various ways of doing this. Basically, I've been trying to make it so that a plugin of mine populates the terms of a taxonomy only once during the plugin's activation. The term ...
2
votes
3answers
869 views

How to: get main plugin/theme file?

There're the functions get_theme_data(); & get_plugin_data(); - which both use get_file_data(); that needs a specific file as $input. I got a set of classes that may be used by a plugin or a ...
3
votes
3answers
4k views

How to find attachment ID for first image in a post

I am using a plugin to forward photo posts from wordpress to a tumblr blog. I have the following code: //post blog to tumblr function postBlogTumblr($postID) { $URLServer = ...
0
votes
1answer
573 views

Widget's container?

I have some custom-made widgets: echo $before_widget; if ( $title ) echo $before_title . $title . $after_title; echo $output; echo $after_widget; Let's assume the $title is "Widget's ...
7
votes
5answers
1k views

How can I update a wordpress plugin from a Git repository (github)

is there any way to easily update a plugin installed on multiple sites from a github repo. I know I can do it from the command line of each server using git pull. but is there a way to do it from the ...
5
votes
3answers
536 views

WordPress Plugin Development from Scratch. How?

I would like to learn how to create a plugin from scratch, there are tons of tutorials out there on the internet, but they are either premium or not a reliable resource. would like to know which are ...
3
votes
1answer
434 views

plugin wants to update to wrong plugin

I get a "update available" notification for my custom plugin "breadcrumbs trail nav" (not hosted in the official repo). Point is that there's a) no update available and b) it wants to get updated to ...
2
votes
1answer
821 views

WordPress plugin options and jQuery

I'm creating a plugin that uses jQuery to modify some css, but what I can't figure out is how you can control the execution of the jQuery with WordPress plugin options (like checkboxes true/false). ...
1
vote
2answers
88 views

Is there a Filter that I can use to filter the tags before they are inserted in to the database?

I want to filter the tags before they are inserted into the database. I'm aware of the pre_insert_term filter. But what I need to do is to see all the tags at once. I need to limit the number of tags ...
0
votes
1answer
99 views

Pass strings to plugin function [closed]

I have simple function to show an image: function helloworld() { echo '<img src="'.$link.'" alt=".$alt." />'; } I would like to pass strings link and alt to the function something like ...
1
vote
1answer
611 views

get post attachment using ajax

I'm developing a plugin and I'm trying to get the url's from a post's attachments with ajax. If the user is on a single.php page. After some seconds, I'm sending an Ajax request, getting all the ...
0
votes
1answer
904 views

How to properly create table in plugin

Okay = been working on the plugin I posted about over here, and having am having a couple troubles. I decided to go the route of writing a plugin from scratch. As I noted, its an customized ajax ...
0
votes
1answer
371 views

How to Show Category List With Corresponding Links?

i want to do a research in Category List Area. I'll Explain Here... Now I have 4 Categories Like 1,2,3,4. First of all it needs to show in the category pages Horizontally.Next is, While Clicking on ...
0
votes
3answers
4k views

How to get Recent Post From Each Category with Thumbnail?

For Example,Now I have 3 Categories Like Food,Transport,Technology.Under These Categories I have Many Posts.Now I Want To Show the Latest Post From Each Category.{How to get Recent Post From Each ...
1
vote
2answers
262 views

add a class when login

i add this code in index.php. <div class="Div1"></div>. then write some css(absolution position) to the Div1. so when i login in my wordpress. the admin nav will push down some spaces to ...
1
vote
3answers
2k views

Any Short code Availble for Get Post List With Thumbnail Plugin?

Any Short code Availble for Get Post List With Thumbnail Plugin? or else how to Create Short code for this Particular plugin? Thank u in Advance.
3
votes
1answer
439 views

Build path for a custom portfolio plugin

I'm finishing up a personal site that I've spent many weekends on. I've left one of the (potentially) most complicated parts to the end of production. I'm looking for some advice on how to proceed ...
1
vote
1answer
256 views

Wordpress clean internationalization for menus?

I'm working on a Wordpress plugin that aims to solve content internationalization issues. The plugin enables users to publish content in different languages. It also offers a nice language navigation, ...