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
58 views

Saving Plugin settings to the database

I'm not a complete novice with php or wordpress but am wanting to approach this problem the most efficient way so believe asking here will help. I've got a plugin that randomly generates a quote - ...
0
votes
1answer
218 views

Creating a Link Text like Submit Button in Admin Page

I'm making an admin page for my plugin and I'd like to make a text link designed like the form button of admin pages. I tried this but didn't work well. <a href="" cless="button-primary" ...
2
votes
1answer
83 views

Display update notification messages like 'What's New'

I am about to push out a new update for my plugin. I've used a few functions only available to WordPress 3.8, which is fine because I want to support the latest version. How do I display a message to ...
1
vote
1answer
199 views

Hello dolly type plugin that allows people to add their own

I am making a plugin that shows a random joke on a custom 404 page via shortcode and it is basically near enough the same as the default hello dolly plugin, where the jokes are hardcoded into the ...
1
vote
1answer
309 views

Display custom fields in frontside user profile

I installed the CIMY User Extra Fields plugin to add new custom fields in theuser profile. I added 1 custom field for gender to the user profile but it displays only in the admin panel user profile. ...
2
votes
1answer
107 views

“Error: Options Page Not Found” on Settings Page Submission for an OOP Plugin

I am developing a plugin using Tom McFarlin's Boilerplate repository as a template, which utilizes OOP practices. I've been trying to figure out exactly why I'm unable to correctly submit my settings. ...
2
votes
3answers
93 views

Where do I add a new table's name in wpdb?

I've manually setup a new table in the wp-db database. Where do I add the name of this table in the wpdb class or anywhere else? I've noticed that WordPress uses queries like: $user_count = ...
2
votes
1answer
715 views

get_template_part from plugin

This is default get_template_part function inside WordPress: function get_template_part( $slug, $name = null ) { do_action( "get_template_part_{$slug}", $slug, $name ); $templates = array(); ...
0
votes
1answer
42 views

Is there an admin hook that will let me read GET variable before it's too late to set the header Location

I need to redirect the page based on the query vars in my plugin admin menu. I don't know where I can hook in to read the query vars or the GET vars order to decide if the page needs to be redirected. ...
1
vote
0answers
20 views

How to instantiate customize_save_after callback function?

I have to do some custom operations after settings are saved in the customizer. It looks like the callback function isn't invoked. What am I doing wrong? Something to do with the Ajax status of the ...
1
vote
0answers
23 views

Custom code for WordPress dynamic menu

Without using plugins, how can I create a custom WordPress navigation menu to produce the following code? <div class="bottom_section_full"> <div class="bottom_section_left ...
1
vote
0answers
20 views

Is there a directory my plugin can write files to that cannot be viewed via the browser/url?

I want to restrict access to some files uploaded via the admin interface but I cannot rely on the ability to use .htaccess (could be turned off, or they might be using a non-apache web server). I ...
-1
votes
0answers
20 views

How can I manipulate the HTML of the_content in a specific way?

I know the basics of how to add a filter to modify the_content, but I want to modify the HTML in detail. Specifically, I want to find any <blockquote> elements and add some HTML within them. ...
0
votes
1answer
38 views

If $var is empty, return 404.

For security reasons, to detect if somebody is manipulating GET parameters of the plugin I'm writing, I need to return a 404 if the security query I perform returns nothing. How can I force that? I ...
0
votes
0answers
9 views

Plugin's custom page

I'm making a plug-in changing default login page to custom login page. Assume that such page is laid to file custom-login.php in folder of plug-in. And two problems appear now: - how to access ...
1
vote
1answer
1k views

how to use thickbox in admin?

I would like to show my retrieved content form my classes method in thickbox. How could I do this? I have been adding the proper id to my desired hyperlink but all of the admin body is getting parsed ...
1
vote
2answers
39 views

How should I store a log for my plugin

I have a plugin that sends data to a server as part of a transition_post_status action. The server sends a response each time. I want to keep a log of these responses (permanently) that I can display ...
0
votes
1answer
359 views

Display Thumbnail instead of text title - Wp Plugin 'Download Monitor'

i am using this nice plugin (wordpress download monitor), nice feature. i have a one problem, there is category download section, actually i want to display thumbnail instead of "post title" please ...
0
votes
1answer
799 views

How to change post status in hook?

I have similar problem as described in How to trap "Publish" button to check for meta box validation? Answer there is to hook into save_post and change post type. How can I do it? I try to ...
1
vote
1answer
729 views

How to create database table, add data, update and delete using wpdb via plugins?

I am just starting out to create plugins with database. I know to create a custom database when activating the plugin. I just want to know whether we can create tables at the front end like adding the ...
0
votes
5answers
503 views

How to trigger $_GET request within admin plugin page?

I have this form in my plugin function: <form method="get" action="" enctype="multipart/form-data"> <p class="submit"> <input type="hidden" name="do_it_hidden" value="run"> ...
0
votes
2answers
34 views

I18n not working in plugin

I'm sure I'm making a dumb mistake, but I don't for the life of me know what it might be. I recently converted one of my larger plugins to utilize I18n (my first time doing so for any of my plugins). ...
-2
votes
0answers
18 views

Developing a Plugin that modifies the admin bar

I'm working on a plugin that I would like to add a link to the admin bar as you visit each page of a website. So while you are looking at a page on your website, the plugin will add a link beside the ...
4
votes
1answer
981 views

How to output message during plugin activation

I am developing a plugin, but during the activation phrase I am constantly facing bugs. However there is no easy way to display error messages, since echoing stuff would result in 'unexpacted output' ...
0
votes
1answer
39 views

What's an efficient way to change the post status of many posts at once?

I'm looking for an efficient way to change the post status on many posts at once. I have a custom post type that I'm using as a means to store content that must be approved by a moderator before being ...
1
vote
1answer
67 views

Add an image gallery to a custom post type?

I am pulling data from an external web service into a custom post type. This data includes images. How can I create an image gallery, add some existing attachments to it, and associate it with a post? ...
0
votes
0answers
29 views

Responsive Development in WordPress Backend

I've gotten so used to using Twitter Bootstrap. However, I can't seem to use it on the backend. I'm assuming it's conflicting with something in the core. So is there a way to get Twitter Bootstrap to ...
0
votes
1answer
67 views

Cannot Search | Featured | Popular | Newest | Favorites in wordpress working

I am working on a Wordpress 3.8 site hosted by Parallels and uploaded via the plex panel. When I want to search, featured, popular, newest favorites a new plugin, I get an error message saying ...
0
votes
1answer
276 views

wp_insert_user keeps echoing values

This is bugging the heck out of me. Essentially I've narrowed the issue down to one line of code: $user_id = wp_insert_user ($userdata); From what I can tell nothing should be echoed here, but I ...
0
votes
0answers
50 views

Plugin options with googlemap iframe

I have put google map in text option of plugin.The text input value is <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" ...
1
vote
1answer
101 views

TinyMCE Styles Dropdown not adding html tags other than span

I am trying to add h1,h2 .. in the TinyMCE Styles Dropdown with my other html elements. I have tried the following code, but the problem is it only adds styles if I use span as 'block' value. If I ...
1
vote
0answers
63 views

Plugin generated virtual pages

I am currently devloping my first WP plugin. This plugin should generate dynamic pages on the fly if a fixed non-existing URL is requested. This means I want my installation to accept addresses like ...
0
votes
1answer
319 views

How can I prevent '500 internal server error' because of a long install process?

In one of my plugins, I need to insert about 1000 terms into a custom taxonomy while installing a plugin. I see it's sometimes causing 500 internal server error. How can I split that work or prevent ...
1
vote
1answer
23 views

Modify hard-coded conditionals for roles to custom roles

Hopefully this makes sense. I'm still learning. There is a function in a plugin I'm developing that I want to modify to recognize custom roles. My function works when it is hard-coded to accept ...
0
votes
0answers
25 views

How can I add an Export option to a WP_List_Table

I have an admin page that extends the WP_List_Table class to generate a table of results from a custom database table. I am trying to add a button that will enable the admin user to export the results ...
0
votes
1answer
55 views

Wordpress plugin development OOP style

I am building my first oop based plugin.This main problem is that it is not showing settings field(font error input).So far my approach.. $plugin_settings = new WordPress_Plugin_Template_Settings( ...
0
votes
1answer
71 views

Wordpress plugin: admin-ajax.php not passing data to custom function

n this basic plugin skeleton, I am trying to get the data sent by ajax to wordpress admin-ajax.php to be processed by a custom function. It looks like the data send from the form does not reach my ...
1
vote
1answer
44 views

How to create custom tables in WordPress using my own plugin?

I am new in WordPress plugin development. This is my core PHP and HTML code create-table.html <form method="post" action="function.php"> <input type="text" name="table_name"> ...
2
votes
1answer
430 views

Creating a user's own folder on user registration

I need a plugin or some guidence on creating a user's own folder on user registation. For example...A user clicks on Register and registers ... I need wordpress to create a directory which would be ...
0
votes
1answer
44 views

Toolbar Hidden in a Virtual Page

I am trying to create a virtual page, but my admin toolbar is not showing up. This is how I am creating the virtual page: functions.php add_action('init', function() { ...
0
votes
1answer
1k views

Auto Gallery from folder contents

I need to be able if this is possible, (i am a newbie at this so please take that into consideration) I want to create a Wordpress shortcode that will add an automated gallery of the contents in a ...
1
vote
1answer
19 views

How to exclude certain files from the plugin editor?

Is there a way to tell WordPress not to list certain files of my plugin in the Plugins -> Editor screen?
0
votes
1answer
30 views

Show error message after exception handled

I have a plugin that updates a user profile, and I want to handle a date exception and show a error message when it fails, but I can't make it work. Here is part of the class: private function ...
0
votes
2answers
41 views

Are plugins instantiated on every request to Wordpress?

I want to know how wordpress plugins are instantiated, if Wordpress creates a instance of plugins every time that a request is made to wordpress? Example. I open /wp-admin: The plugin is instantiated ...
0
votes
1answer
26 views

How to replace settings in WordPress plugin from a theme

I created an array with some default settings in a plugin, and want to allow it to be replaced from functions.php in a theme without using stored data (eg. add_option). I want this to be just a hook ...
2
votes
3answers
5k views

Category listing with thumbnail and description on home page

I really need a comprehensive solution to this, so I'm offering up almost a quarter of my rep in bounty :) I would like to have a plugin that creates a custom category listing on my home page. To do ...
0
votes
2answers
25 views

How to use get_sidebar in plugin folder?

I've created the plugin that adds custom post type and custom taxonomis for this post type. Templates for the post type and the taxonomies are located in plugin folder. Now I need to add sidebar for ...
11
votes
3answers
895 views

Unit testing for plugin development

I need to apply unit testing for one of my plugins. I recently re designed it into classes, so unit testing should be easier to apply now. What are some effective strategies to unit test my plugin? I ...
-2
votes
1answer
22 views

Getting Plugin directory and url

In one of my theme the path and directory is set by if( !defined('ADMIN_PATH') ) define( 'ADMIN_PATH', get_template_directory() . '/admin/' ); if( !defined('ADMIN_DIR') ) define( 'ADMIN_DIR', ...
0
votes
0answers
26 views

Web System Architecture

We are building a web system in wordpress. I have read some articles on how to architect a wordpress web system. I really liked the one which suggested using loose MVC Pattern. I have read a couple ...