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
0answers
43 views

Can't get query string in ajax call

I'm developing a plugin that exports to a PDF your current posts view in the admin panel. Suppose you're in a post type "product", then the url must be: edit.php?post_type=product. What I want is to ...
0
votes
2answers
22 views

Template directory in plugin

I have a custom dashboard plugin with one of the sections containing useful links. One of them should directly point to the documentation that comes with a template. This documentation is in the ...
0
votes
1answer
16 views

How to get site homepage from plugin?

I am creating a plugin that has a preview, kind of like the theme customizer preview. It displays the users site in an Iframe. The issue is that I can't seem to be able to get the users homepage using ...
1
vote
1answer
49 views

Create a Page via plugin

My problem is to show a list of products read from db tables. I know how to read them and I am able to produce the table, but only using a shortcode embedded in a page that I've created via WP. I ...
0
votes
0answers
39 views

Custom Taxonomy Showing in WP Menu

I have 3 taxonomies bundled with my custom post type. I have noticed my custom post type(cpt) and 2 taxonomies won't show in the Wordpress menu system but 1 taxonomy will. Can anyone point me in the ...
0
votes
0answers
115 views

Customizing the 3.5 “Add Media” popup (Backbone.js)

Here's yet another question in regard to the new(ish) 3.5 "Add Media" popup and how to customize it! What I'm trying to do I'm attempting to do four main things: 1) Create a custom tab titled ...
1
vote
3answers
95 views

Loading jQuery and jQuery plugin script files correctly [duplicate]

I am using a ticker jQuery plugin and having trouble loading my script files correctly. If I add the scripts in directly into the theme's header.php file my scripts work correctly. Example: ...
0
votes
0answers
47 views

Users Can Only Post Reviews When Logged In?

I use the plugin WP Customer Reviews on my site but to leave a review you must fill out a form even if you are logged in. I would like to make it so that if a non logged in user goes to submit a ...
0
votes
0answers
39 views

Get first_name on hook user_register

I have created a plugin for saving user info. I have used a action hook user_register, but I don’t get the values of first_name and last_name. What wrong in my code? ...
0
votes
0answers
57 views

Plugin settings checkbox

I am creating catagory checkbox select. My code to render the category checkbox is: // CHECKBOX - Name: plugin_options[chkbox2] function setting_chk2_fn() { $options = ...
0
votes
0answers
19 views

How to add a handler for a button in plugin?

I am working on my first plugin, and I am having some confusion. I am trying to figure out how to set a handler for a button on my plugin UI. Here is how the button is displayed: <li ...
0
votes
1answer
49 views

WordPress pages are not published due to External database connection with WPDB class

I am developing a wordpress plugin that connects to external database, fetch data, and displays it on metabox below page/post editor. I used following code: <?php /** MySQL hostname */ ...
0
votes
1answer
18 views

jquery code didnt run on my plugin

I use this to hook my scripts and styles to my plugin add_action('admin_init', 'the_box_init' ); // Init plugin options to white list our options function the_box_init(){ register_setting( ...
0
votes
0answers
49 views

Repeatable Meta Fields Not Saving

Need some help from the community as i am new to the plugin development of WordPress. I like to create a plugin for WordPress where i need a repeatable fields. But whenever i am saving the post the ...
0
votes
1answer
55 views

how to display a string in admin_notices hook from a class plugin

i'm trying to display a message in admin_notices hook upon plugin activation, using both a global variable or a static variable in my class ( $associati_error). i set the variable value into the ...
0
votes
0answers
49 views

Programmatically schedule post with wp_update_post function

I schedule posts in a wp plugin (WP 3.8) with the following function. My posts seem to be in the correct status after scheduling them (when editing them, date time and status are good), and also after ...
0
votes
1answer
54 views

Using standard backend elements in Plugin

I'm currently writing a plugin for a company. I created a custom backend page where the admin can change settings used by the plugin. Currently it looks very messy because there is just too much ...
1
vote
2answers
78 views

Filter to change the content of 404 page

I have created custom rewrite rules. These rules now go to 404 page as expected. I can use action hook template_redirect to change the template matching query_var. But I don't want to create separate ...
0
votes
0answers
17 views

Save time when posts has been favorited

I want to add the time when a user marked a post as favorite and want to display it. function wpfp_add_favorite($post_id = "") { if ( empty($post_id) ) $post_id = $_REQUEST['postid']; if ...
0
votes
2answers
31 views

Implement phpunit testing on a plugin

I've just finished writing a WordPress plugin implementing shortcode tag based autocompletion based on values retrieved from a database given an id set on a cookie. The plugin has a variety of ...
0
votes
1answer
9 views

Translation of plugin Upload button

I want to translate "Upload an image" by using _(), _e(). It does not work for me. I tried value= _e( 'Upload an image') but did not work out. function logo_image() { $options = ...
0
votes
1answer
37 views

What happens when two or more plugins use the same hook?

Two of my plugins use the same filter hook: the_content. What happens in this case? Is there a priority handler, like which plugin will be served first? I would like to use both of the plugins. I ...
0
votes
1answer
21 views

How do I show content from a plugin using the template the site is currently working with?

I am trying to extend the first serious plugin that I am building. I'd like to be able to use it with different sites/templates. At the moment I designed a custom page that I included with the ...
0
votes
2answers
50 views

Get term_id for each instance of custom taxonomy

I am building a custom image slider. I have a custom post type called 'slide' with an associated custom taxonomy called 'slideshows'. When you create a new 'slideshow' it add to a custom table in ...
0
votes
1answer
59 views

Execute Jquery when a specific page in my plugin is loading

I am building a plugin and I would like to be able to hide the wordpress admin side menu and top bar when a specific page is shown(or menu item clicked)? Should I call the jquery directly as a ...
1
vote
0answers
40 views

I have 2 plugins using the same wp_login action hook and one is not working

so this is after a few hours investigating, I have s2member plugin and a custom plugin what happens is they are both using wp_login hook in this manner, s2member: add_action("wp_login", ...
0
votes
1answer
65 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
2answers
37 views

How to add a hyperlink to the email content in WordPress?

$message = sprintf(__('Dear: %s'), $user_login) . "\r\n\r\n"; $message .= __('As per your request on ') . date_i18n('j F Y', time());"\r\n\r\n"; $message .= __('Please visit the following ...
1
vote
0answers
34 views

How to use github to update my plugin

I am trying to use github for my plugin updates, i have looked around I found this WordPress-GitHub-Plugin-Updater. I am now stuck and cannot get it to work. I have created the simplest plugin to ...
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
45 views

Wordpress Plugin Page is Loading in Admin Content Container Instead of Separate Page

I am creating a wordpress plugin that has it's own UI. It looks like a standard web application, so everything that is done within the plugin is handled in this UI instead of integrating it with the ...
0
votes
0answers
56 views

How can I dynamically change an order's shipping class in WooCommerce?

I'm using Gravity Forms with WooCommerce and the WooCommerce Gravity Forms Product Add Ons extensions (GFPAO documentation). I've followed the instructions here to get a product with options just as ...
0
votes
1answer
101 views

How to create Image gallery Metabox in wordpress [closed]

I want to create a metabox like woocommerce product gallery. I search on google find out related tutorial, plugin, example but unfortunately i don't get anything. So please, anyone can help me. ...
0
votes
0answers
23 views

get_post_templates lists one item with gibberish

This code at the bottom of this question draws a listing of page templates on the edit post screen. The problem is that on the listing of page templates on the page editor as well as at "Appearance ...
1
vote
3answers
86 views

Use WP_Theme::scandir function to scan a plugin directory. Is there a way?

I'd like to scan a plugin's directory for files with specific extensions, like php, css and js. I know there is scandir() function in WP_Theme class that's perfect for this work. The problem is that ...
1
vote
1answer
37 views

Execute a plugin only on post pages

I am building a plugin that is only useful and should only run on pages where posts are featured. Is there a way to only run the plugin on pages that display posts?
1
vote
0answers
33 views

Selectively update themes in WordPress multisite

I have been running a WordPress multisite installation for a few years, and every time WordPress releases an update (from x.y.z to x.y or x.y.z to x.y.z) there is always a chance that one of the ...
0
votes
2answers
79 views

Hook for post permalink update

I would like to know what hook should I used when the permalink/url of a post is modified. My goal is to get the old permalink and new permalink so I can used it for my plugin. Thanks. [EDIT] Just ...
0
votes
0answers
192 views

Bootstrap collapse in custom WordPress widget

I am building a custom widget and using Bootstrap 3 for the styling. I want to implement an accordion has seen here. However, I cannot get it to work correctly. I am including transition.js, ...
0
votes
1answer
34 views

How does budypress plugin routing works?

I want to build a url structure similar to buddypress (respond to custom urls with plugin files), been trying to figure out how exactly it works in bp, but I'm a bit stumped. I know they do url ...
0
votes
0answers
31 views

Load JS/CSS of shortcode in post

I try the The Jedi Master way http://scribu.net/wordpress/optimal-script-loading.html class My_Shortcode { static $add_script; static function init() { add_shortcode('myshortcode', ...
0
votes
1answer
108 views

New User Form - Custom Menu Page

I have a question concerning creating a new user. I'm creating a plugin for this wp site I am working on. I have set up custom roles for these and I'd like to have a separate menu item for the "Owner" ...
0
votes
1answer
41 views

Programmatically Selecting Theme Based on URL

I've inherited a site which has a mobile version. Let's call it qqq.com. It has a Varnish server in front of it to cache the pages. But it seems the Varnish server is also detecting mobile requests, ...
3
votes
2answers
100 views

When is it appropriate to put functions on page template vs. functions.php?

I'd like to improve my code and on a current theme, I've extended Wordpress with custom post types, metadata, customized user authentication, and a number of other items. Some of these functions ...
1
vote
1answer
41 views

How to submit documentation with plugin

When I submit a plugin to the wordpress public repo, how am I supposed to submit documentation? What is considered standard or good practice? Should I just have all documentation on the be page that ...
0
votes
0answers
76 views

WordPress function get_the_terms() returns 'Invalid taxonomy' error

It seems that the function get_the_terms( $id, $taxonomy ) always returns an error if used outside of WordPress (i.e. integrated in PHP using this method). I believe some library might be required and ...
0
votes
2answers
59 views

I am using multi image metabox plugin but I did get how to display the images in templete?

please help me... here is plugin url http://wordpress.org/plugins/multi-image-metabox/ I am using this plugin but after uploading images. I need to get those images on template... code to display ...
0
votes
0answers
76 views

Trying to Implement .pdf File Upload in Admin for plugin

This is the first time in my plugin development that I have had a need to upload a file. UH-OH!!! I create my plugins OOP and I have always used jQuery .serialize to post the data to my plugin.php ...
0
votes
0answers
60 views

update_option() updating the option with an empty value?

I have a call to update_option() inside a class which edits some keys from the options array passed to it and then saves the updated array to the database, I don't have any fancy code, the function is ...
0
votes
1answer
60 views

How to add a route?

I'm writing a wordpress plugin. I want to add a route to frontend, for example mysite.com/myroute/ that runs a php file( located in wp-content/plugin/myplugin/my_route_handler.php). I need to load ...