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
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
38 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
48 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
79 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
98 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
42 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
199 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
59 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
40 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
279 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
98 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
46 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
62 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
35 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
43 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
41 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
47 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
50 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
44 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
125 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
76 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
116 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
55 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
188 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
43 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
129 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
25 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
31 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
149 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 ...
3
votes
1answer
55 views

How to use mysql IN statement with wpdb update method?

I am using wpdb update method and wish to update records where the id is not found within multiple ids. So if I wanted to update records where each had an id of 1 I would do for example: ...
0
votes
1answer
78 views

Adding class to the parent of current-post-ancestor / current-menu-parent / current-post-parent

Following situation: I have a drop down menu. At the moment we are located on a single post of the category "Produkt Design" Its class in the menu is menu-item menu-item-type-taxonomy ...
0
votes
1answer
114 views

Hide plugin dashboard menu item for specific roles

I am writing a plugin and I am trying to only display the admin dashboard menu item to specific roles. I have this controlling snippet so far... // Check User Role global $current_user; if( ...
0
votes
0answers
15 views

How do I build a settings panel under the plugin

I'm trying to build a settings panel for my plugin that is located under the plugin on the plugin page and slides down when the user clicks the settings link like other plugins (WP Maintenance Mode) ...
0
votes
1answer
58 views

Where and how does WordPress store and use its plugin and hook information?

When WordPress installs a plugin, where does it keep the fact of a hook/plugins existence? For example, wp-includes/plugin.php I can see do_action, but I'm not familiar enough to know how WP loads ...
3
votes
1answer
65 views

What is the correct way for plugins to create tables with special charset/collation considerations?

I'm using WordPress >=3.8. The default charset/collation values in wp-config.php are define('DB_CHARSET', 'utf8'); define('DB_COLLATE', ''); // Becomes utf8_general_ci I am in a situation where ...
0
votes
1answer
60 views

Why won't register_setting() create a setting?

I'm stumped. I've been researching this like crazy, but I can't seem to figure out why register_setting() isn't working for me. I'm new to WP plugin development (obviously), so it's probably just ...
0
votes
2answers
64 views

Change the search results header from plugin

Hi I'm writing a plugin to include custom search results. I'm not really allowed to edit any theme pages, but the search results page in twentyfourteen's search.php seem hardcoded to me: ...
0
votes
2answers
344 views

Use 'get' form action within a WordPress plugin admin page

I am writing a WordPress plugin that has a dashboard URL like this... http://www.mydomain.com/wp-admin/admin.php?page=my-plugin.php I have a datepicker box within the page that I use to select a ...
3
votes
2answers
81 views

WordPress Terminology Options Vs. Settings

What term should be used when defining a page in the admin menu that allows you to change a plugins options?
3
votes
1answer
144 views

Automatic updates in plugin - not hosted on wordpress repository

I'm coding a plugin which probably will have updates in the future, and I want to take advantage of the automatic update mechanism in wordpress. I followed this tutorial: Everything seemed quite ...