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

Making plugin output customizable

I am writing a plugin that will display a timeline of historic events, and I am looking for ways to make the output customizable. I was considering including a template/example within the plugin ...
0
votes
0answers
30 views

How can I send an id over the url?

I need to send an id that I am going to collect and use in a plugin. Plugin will collect it in a page where I use plugins shortcode. The url I am trying to get is like ...
0
votes
1answer
85 views

Display_rows() and column_cb() strange behaviour

I found a strange behavior of my functions. I thought to pass the id from display_rows() to column_cb(), but the problem is that the program passes only the first digit. Any hint? column_cb(): ...
0
votes
0answers
112 views

Adding a dropdown list box to the comments page

I'm creating a plugin that will add a dropdown list box as an additional field on the comments page. The data in the dropdown is not being added to the MySQL database. Can someone take a look at my ...
0
votes
0answers
60 views

Adding Attachment Display Settings in custom media frame

I made my own custom media frame : $('.add').bind('click', function(event) { event.preventDefault(); // Create the media frame. file_frame = wp.media.frames.file_frame = wp.media({ ...
0
votes
0answers
44 views

WP_Query to get all posts with specified category in priority

Now I have a query to get all posts in the specific category featured. $today = date('Y-m-d'); $args = array( 'post_type' => 'event', 'event-categories' => 'featured', ...
-1
votes
1answer
15 views

Clean way to initialize plugin in newly-added site when plugin has been network activated?

I've been working on migrating one of my plugins to support multisite installs and am attempting to figure out the cleanest way to handle the following series of events: Plugin is Network Activated ...
0
votes
0answers
27 views

Return all roles, including custom roles

Rewritten: Hopefully this helps others. The question wasn't a duplicate question. The custom roles and subscriber account were not being written. It turns out that the if statement after the internal ...
-1
votes
1answer
52 views

Loading jQuery library from WordPress admin

When we are developing Themes, we are taught to enqueue the jQuery library if necessary, because no jQuery library is available on the front-end of WordPress (if I'm not wrong). But when we are into ...
0
votes
0answers
26 views

How to set separate “lang” attribute for post or page titles

I am creating a multilingual website in English and Hindi on WordPress. Half of the site is in English and rest is Hindi. In a previous question asked by John Doe here at stackexchange s_ha_dum ...
3
votes
1answer
528 views

PHPUnit testing WordPress Plugin

Using answers on this site and from other resources, I have started writing my next plugin using PHPUnit tests and the WordPress test environment. Distilling down what I have in my plugin's ...
0
votes
0answers
33 views

How to add links under every posts? ( WHILE BUILDING PLUGIN not manually )

I want to use, change, add and delete the links that appears with every posts. (e.g. May 21, 2014| 1 Comment) If I'm not wrong these are called template tags. I can play with them manually by getting ...
0
votes
2answers
37 views

Wordpress plugin options need to delete after deactivate & uninstall

I have developed a wordpress plugin and I need to delete the options I am creating when uninstalling. What I did is I created a file called uninstall.php and included the following code: <?php ...
0
votes
1answer
43 views

How to set a cookie for logged in users to md5($user->ID . “my_secret”)?

For all logged in visitors of my WordPress website I would like to set 2 cookies based on their user ID - so that I can use their user IDs in WordPress-unrelated PHP scripts at the same domain. In ...
0
votes
1answer
60 views

Proper way to run wp_query from inside a plugin

I am developing a plugin that needs to make a query of a custom post type and retrieve data and meta data from these posts. But anytime I run that query inside my plugin, no matter what admin new post ...
0
votes
3answers
96 views

How to change commenter links to /user/user_id?

I would like to change the commenter links as shown in this screenshot: In my test plugin at GitHub I have first tried the following code: define('PROFILE', '<a href="/user/%s" rel="external ...
0
votes
0answers
43 views

Access WordPress Tag Function From Modal

I am currently working on a plugin that will require the use of the Tag library inside the given WordPress installation. From a page, the user can click a button from the editor, which then opens a ...
0
votes
1answer
32 views

Get section of input passed to the sanitize_callback

How can I find out what section each input is in when viewing the $input array passed to the sanitize_callback function defined in register_setting()? I suppose one option is to include the section ...
0
votes
1answer
175 views

Why is contact form not working?

I am using a custom contact form plugin from code.tutsplus but it is not working. It looks as if the form is sent because I get the confirmation badge, although I receive no email (I have tried ...
1
vote
1answer
48 views

How can I edit commit messages in my wp-hosted plugin repo?

I stupidly committed code with a commit message that doesn't make sense. I looked up how to edit commit messages for SVN repos and read this stackoverflow post, however, unfortunately it seems like I ...
1
vote
1answer
54 views

Extending WP_List_Table seems getting wrong with $this->get_columns() - what's wrong?

I'm trying to implement an Admin Table for a view page of a plugin of mine by following the following tutorial: Create Native Admin Tables In WordPress The Right Way    by Jeremy ...
0
votes
1answer
38 views

Plugin capabilities

I created an interface that allows users to do a certain number of actions, each of them having a capability associated (including accessing the interface). I would like to have a base capability ...
1
vote
3answers
268 views

How to display public user profile with 2 additional fields? (GitHub source code included)

As a WordPress newbie I am trying to create a plugin, which will force users to specify their city and gender while registering and then display a personal profile page for each user showing this ...
0
votes
1answer
44 views

Why this plugin is not working?

I am testing jQuery in my wordpress plugin. Two files 1. main_plugin.php 2. js_plugin.js (Both in the same directory HelloWorld). CODE: PHP FILE: <?php /* Plugin Name: jQuery Test Plugin Plugin ...
0
votes
0answers
24 views

Custom post not working on template page

I am using promotion-slider plugin. I am writing <?php echo do_shortcode('[promoslider]') ?> but it has been very inconsistent. As sometime posts are coming some time it does not. I am not able ...
0
votes
1answer
29 views

A question about add_action()

I was following this ( http://codex.wordpress.org/Plugin_API ) tut on codex. The part where a class is created and is called in add_action. No argument was passed to emailer::send ? Why? It was ...
1
vote
2answers
93 views

Plugin updates, version dependencies, and backwards compatibility

Let's say I have a plugin that's currently at version 1.1, and I am releasing version 1.2. When you run the 1.2 update, a script will run to add new options, columns, tables, etc. A month later, 1.3 ...
0
votes
0answers
34 views

Updated plugin uses old source codes

I am a beginner with wordpress. I am developing one simple plugin for WordPress 3.9.1 now. My wordpress instance is deployed on openshift. I am facing one big problem. When I try to install plugin ...
-3
votes
2answers
45 views

Is it possible to load plugin from console with core ?

I developing some scrapping plugin for my own purpose. So each 10 minutes i need to start my plugin from the cron. Plugin will parse some posts from other pages and add it to wp. So is it possible to ...
0
votes
0answers
23 views

Redirections the right way inside a plugin directory

I have a plugin, with the stylesheet: /wordpress/wp-content/plugins/pluginName/templates/templateName/style.css I'd like to access: /wordpress/pluginName/templateName/style.css I know I could ...
2
votes
2answers
54 views

What's the earliest point I can get the queried object ID?

I'm writing a supplement plugin to Wordpress Mobile Pack because I would like to use the default theme on pages that are assigned a certain page template. My plugin will only deal with the mobile ...
0
votes
1answer
32 views

Execute certain function on GET request

I am currently designing a plugin which will export some data in admin panel, only when a GET parameter export=data is passed. In normal PHP it will do something like: <?php ...
1
vote
1answer
42 views

Custom Plugin theme filter

I am creating custom plugin and in my plugin file I have this: add_filter('page_template', 'load_tq_templates'); function load_tq_templates() { if (is_page( 'transport-quote-1' )) { if ( ...
0
votes
1answer
37 views

Cannot update …/tags folder in SVN Repository

Could you please supply (I'm stupid) step by step process of what I'm trying to do? Thanks! I uploaded my first plugin using tortoiseSVN. With some difficulty, I got the files into the /tags dir but ...
0
votes
2answers
45 views

Plugin generating unexpected output - on WP mysql dump import

I am developing my plugin and I am getting this error: The plugin generated 357954 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with ...
0
votes
1answer
27 views

Why is my plugin version 0.1?

If you look at the changelog, it says my version number is 1.0.0. If you look at the button to download, it says 0.1. Also, if you hover over it (or click it), the url says 1.0.0, and the svn ...
0
votes
1answer
47 views

Wrapping shortcodes in another shortcode

I'd like to wrap existing shortcodes in post content inside a new shortcode that I'm adding to my plugin. The existing content looks like this: Some text - could be <span>HTML</span> or ...
0
votes
0answers
42 views

Why is there a code error in my plugin's search description?

So, I have finally uploaded my plugin to the WordPress list, but when I search for it an error comes up in the description: I don't even have that line of code in my trunk/ Going into the plugin ...
0
votes
2answers
121 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
1answer
64 views

Avoid class name collision when using third party libraries in plugins?

I am currently developing a Wordpress plugin handling very specific behaviours in our new Wordpress website. I started by reading the introduction articles in the Codex, and I also found the Wordpress ...
1
vote
0answers
99 views

Manually set a custom admin sub-menu selected?

This question might have been asked already, and if so I apologize but none of the other answers pointed me in the right direction. I am developing my first Wordpress plugin. Lets say it contains the ...
0
votes
1answer
50 views

Link to a admin submenu item using a custom link

Situation: I am developing my first Wordpress plugin with multiple admin pages. This plugin has a menu and some submenus in Admin Menu. I am using Wordpress 3.9 on XAMPP, Windows 8.1 Pro. Problem: ...
4
votes
1answer
159 views

Must-use plugins autoloader: How to use get_plugins() correctly?

My autoloader class is responsible for loading must-use plugins that do not sit in the root of the mu-plugins folder. To locate them, I need to use the get_plugins() function. According to Codex, the ...
0
votes
1answer
42 views

wp_ prefix changed. What is the way to change so any prefix is understood?

I have a plugin with a line calling wp_capabilities. This works with the default prefix. If someone changes the prefix to something else (bluehost scripts do this), how do I fix this code? Can you ...
0
votes
0answers
31 views

Proper Failure of Plugin Activation

I am currently developing a plugin, which depends on another plugin (json-api). I use the following code to check for the presence during startup and in the constructor, in case the json-api plugin is ...
1
vote
3answers
92 views

Checking if an attribute exists in a shortcode

I've written a small plugin that spits out html for a button. It works great, except for one thing: If the user doesn't specify an image, the image appears broken. Is there a way for me to check and ...
0
votes
1answer
20 views

plugin will not offer update even though a new version is available

I made a plugin, made revisions to it, and commited it again, yet in the admin area under plugins, I do not see under my plugin that an update is available. So I had, say, version 1.2.0 , and now I ...
0
votes
0answers
27 views

Duplicate WP3.0 menu php files?

He's my problem: I want to have a single page that a WP-admin can build by including different parts of the site by choosing posts. (I know the admin could add these posts to a category and then ...
0
votes
1answer
29 views

How can I pass value to function in add_menu_page?

I was use to pass value to function for the below menu. add_menu_page('Competition Manager 2013-2014', '2013-2014', 'manage_options', 'manager_2013_2014', 'manager_2013_2014', plugins_url( ...
0
votes
1answer
121 views

get_the_excerpt() not working in plugin loop

I am new in WordPress plugin development. I am developing a simple WordPress plugin in which get_the_excerpt() not working in the loop. Other tags such as get_the_title(), get_the_permalink() even ...