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
2answers
5k views

Create New Admin Menu Section - Like how custom post type works, in a way

I've been working with Wordpress off and on for years now, but I haven't gotten entirely immersed with the framework. I have no problem creating plugins that use custom post types, but I'm looking to ...
0
votes
1answer
3k views

Failed to Open Stream: Permission Denied While Writing to an XML File in a WordPress Plugin

I'm trying to write to an XML file in a WordPress Plugin. I'm on my local machine, a Mac running MAMP. I have PHP 5.2.13 My code is: $file_handle = fopen('markers.xml', 'w'); $stringdata = "Test ...
0
votes
1answer
56 views

How to exit a plugin's execution mid-stream?

I have a plugin that I want to ensure runs ONLY on singular posts, pages, etc. I'm using the is_singular() function and it works great - except that all it does is return execution to the rest of the ...
0
votes
2answers
223 views

Add admin settings and options

I develop my first wordpress plugin. I have not really found a tutorial "easy to use", so I started it. Currently, the "add_menu" did not add my link to manage settings. Yet when I activate my ...
0
votes
1answer
72 views

Creating fields in the database

I am newbie to wordpress plugin and this is my first plugin which I am doing now. I want that when the plugin will be activate it will make some predefined fields in the database and also the same ...
0
votes
1answer
257 views

mysql_real_escape_string() error using xml2ary in Wordpress plugin

I created a plugin in order to replace some content in the post with information from a xml file. To parse the file I'd like to use xml2ary and the wp_insert_post_data filter. I got the content ...
0
votes
1answer
2k views

How to create a dynamic page based on form data with a plugin?

I have a form that users fill out. When they finish, they are redirected to a 3rd party site to set up payment options. After completing the payment process, they are sent back to my site with a ...
0
votes
3answers
339 views

Custom feed parameters / Template overriding

Am relatively new to Wordpress development and looking for the best way to customize the output for a specific javascript app that will be pulling in the content dynamically, by using a Wordpress ...
0
votes
2answers
245 views

wordpress admin plugin menu custom css

I have a plugin that has a top level menu and subsequent submenus. Each one of these pages are going to need their own css and javascript. My code at the moment is: //main menu add_menu_page( "My ...
0
votes
1answer
82 views

Can Wordpress plugins “Talk to each other”?

Sorry if this is a really silly question, but I am very new to Word Press. My question is, can one plugin update the settings of another Wordpress plugin? I suppose this might depend on the plugin ...
0
votes
2answers
2k views

How can I hide that I Use Wordpress (with W3 Total Cache)

For security reasons I don't want it to be obvious that I use Word Press. I use the W3 Total Cache plugin and minify HTML, CSS and JS. I may also use a CDN. Is it possible to modify the W3 Total ...
0
votes
1answer
418 views

Menu_slug used for creating options page

I am following this page on designing options menus: http://codex.wordpress.org/Administration_Menus What is the significance of the menu_slug ? I ask because when I change this value, the options ...
0
votes
1answer
62 views

“Print to printer” functionality in a plugin

I want to add "print" button to print simple reports in a plugin. The basic idea I have is to generate a printer friendly html page and redirect user to that page where he/she can use browser's print ...
0
votes
1answer
318 views

wordpress how to query wp_options table

I need to make an SQL call to find all records in wp_options matching a select statement. How do I query the table? My script already has these resources called... ...
0
votes
2answers
297 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) ...
0
votes
1answer
520 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 . ...
0
votes
1answer
124 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> ...
0
votes
1answer
98 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 ...
0
votes
1answer
270 views

Undefined variable _POST

Using 3.1.1 with debug on, I am getting following notice. Notice: Undefined variable: _POST in <filepath> on line 1000 Code at line 1000 is $data = $_POST Why am I getting this notice? ...
0
votes
2answers
655 views

Don't display post if post has empty body

I have a custom post type sites registered via register_post_type and my front page displays my latest posts. Including posts from sites. Is there any way I can set it up so that posts from sites ...
0
votes
1answer
81 views

modify buddpress adminbar only in admin pages

I have modified the buddpress admin bar by creating the following plugin which adds a simple text link to the bar: function bp_adminbar_currentsite_menu() { global $bp; ?> <li> <!-- ...
0
votes
3answers
178 views

How to specify widget order or css name via script?

I've got a routine (see below) that creates and inserts several widgets into the active theme's sidebars. However, I need more control over either the order/index the are assigned (ie, one of my ...
0
votes
1answer
352 views

How do you filter get_media_items by mime type in a custom media upload tab?

I've gotten as far as creating my new tab and getting it to show up and I've taken a copy of the gallery screen (I'm making an audio plugin with a playlist feature). The list of media items shows up ...
0
votes
1answer
114 views

Deactivate plugin on registration

I'd like to check if the server is running PHP5.2. To do this, I use a activation-hook which will be registered with "register_activation_hook". Instead of just returning a warning, i'd like to ...
0
votes
1answer
42 views

How to view plugin ratings?

So I recently submitted my first plugin, and have since got a 1-star rating. Is there a place to review ratings and comments on my plugin?
0
votes
1answer
282 views

get_categories exclusion issues

In the script below i'm trying to pass category IDs to exclude, however, the category list still includes children of these categories and i can't figure what's wrong. Can anyone see what I could be ...
0
votes
1answer
139 views

How to conditionally include a custom field on category editor screen not category “add” screen

The "manage categories" screen has two interfaces, one when you first click on "Categories" which is used to add a new category and another once you click on an existing category to edit it. I've ...
0
votes
1answer
193 views

How to filter manage categories listing

I'm successfully using the function below to trim the length of my category descriptions when viewing the manage category screen (thanks Rarst). Suppose I want to remove children of the ...
0
votes
2answers
622 views

How to add 'use_desc_for_title = 0' to all wp_list_categories calls?

My category descriptions are extremely long, so I don't want the descriptions to be used in the title attribute of my category lists. However, WP does this automatically when it outputs the default ...
0
votes
1answer
521 views

Why is my plugins activation hook not working?

Can somebody tell me why this isn't working? I'm trying to get it to create a file in the plugins directory. After I get this working, I'll be trying to get this to create a file in the active theme's ...
0
votes
2answers
91 views

Post curl function save twice using plugin hook function wordpress

when i save a data with my curl function using hook to save a data twice. public function __construct() { add_action('init', array(&$this, 'init')); ...
0
votes
2answers
455 views

(resolved) Uploading images from a custom page using blueimp uploader?

I'm working with a frontend upload form that uses blueimp jQuery-File-Uploader to do all the heavy lifting ... but, after attempting to add the necessary WordPress functionality to blueimp I started ...
0
votes
2answers
72 views

How to change url's in Wordpress when changing domain [duplicate]

Is there any plugin that can update the wordpress database, specifically the wp_posts table or any other custom table in the database created by other plugins which has absolute url's of images and ...
0
votes
1answer
152 views

Creating Archive Page (Searching and Filtering)

I want to create a page for my site which provide the functionality of archiving my posts, including searching and filtering. I know I've to use custom type to create it, but I don't have any idea ...
0
votes
1answer
560 views

How do I use duplicate wordpress plugins

I am using Inventory Manager Plugin and it is currently working great. The issue I have is that I need to use the same plugin, but I need to install a fresh version of the plugin while maintaining the ...
0
votes
1answer
105 views

How to create a child/addon plugin

This is a spin of: how to create child WordPress plugin I am using a plugin that I use and like a lot, but there is a feature that I need and it seems like the author is busy with life. I am a PHP ...
0
votes
3answers
64 views

wordpress plugins with add-ons

Im wondering if anyone can point me in the direction of how to create a plugin with add-ons. It looks like the approach is first to create a plugin with the core feature, and then write other plugins ...
0
votes
2answers
418 views

add short code not working

I am new to wordpress, I am creating a plugin and for the short code, I am using the short code api. But when I insert this shortcode in my page, it displayes as it is, it does not display the ...
0
votes
2answers
572 views

How to fix 'Call to undefined function do_settings()' error?

I am writing my first plugin and to access/save options I follow codex.wordpress.org/Creating_Options_Pages I basically copied the example from 'See It All Together' in a separate file ...
-1
votes
1answer
294 views

Serialized Data

I'm trying to add data to a serialized string - I get the serialized string from my database - e.g. a:1:{i:0;s:2:"32";} Unserialize it add a value to it e.g. 128 serialize it and save it back But I ...
-1
votes
2answers
1k views

How to Add Font Awesome Icons to WordPress Menus?

How to Add Font Awesome Icons to WordPress Menus
-1
votes
1answer
118 views

Need edit profile link in the menu for logged in users

I have a page called edit profile, i have installed the profile builder plugin,so the users can edit their profile from front end, if the user is logged in i want to show the edit profile and logout ...
-1
votes
1answer
740 views

How to fetch serialized data from wordpress options

I have the following serialized data in a wp option a:2:{s:5:"Title";s:11:"your title";s:7:"Message";s:20:"Hola testing testing";} I would like to return it to be used in a form, and show it also in ...
-1
votes
1answer
38 views

Site is setup statically - how to make it content managable?

This is probably quite a basic question, but I have my site setup statically in WordPress, all I am trying to figure out now is how to add a new section to the WordPress backend where all the content ...
-1
votes
1answer
82 views

How can I make my website with wordpress having on-spot editing feature as compared to concrete5 CMS?

I hope you were easily able to understand my situation through the question. 1.Do we have any theme or plugin for on-spot editing the post by people or by me after the blog post is posted? 2.If ...
-1
votes
2answers
108 views

Method to retrieve category names and IDs only as an array?

I'm building a category picker select list. I just need to populate an array of categorys like so: $myCats = array("null" => "None (default)", "1" => "Uncategorized", "2" => "Second ...
-1
votes
2answers
66 views

Wordpress Admin Login Custom Logo

I know this may not be possible.But just trying to know wordpress deeply. Is it possible to replace default admin login page with custom one?
-1
votes
2answers
63 views

Fixing plugin for wpdb::prepare

A previous developer created a plugin for a website I manage and everything seems to work okay, except I'm getting the error "Missing argument 2 for wpdb::prepare()". I understand that the arguments ...
-1
votes
1answer
144 views

Can I use a form in a dashboard widget?

I'm building a plugin and would like to add a dashboard widget with a custom form. In this form, users should be able to edit a list of strings (add, edit and remove items). Is there a WordPress API ...
-1
votes
1answer
828 views

How to determine wordpress base path when wordpress core is not loaded

I have a command line script for maintaining a wordpress plugin and have to determine the wordpress base path to be able to load the wordpress core. I could just assume the script is several levels ...