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

conditionally load javascript & CSS for do_action() calls from plugin

I am developing a plugin and using do_action() instead of shortcodes to display plugin content on the site. The plugin will only be used by me, but I am making the plugin to separate components of ...
0
votes
0answers
558 views

Add async script

I am working on a plugin that has to inject a script on pages (something like RefTagger), which would be easy using wp_enqueue_script, but there are two reasons I cannot do that: the script tag has to ...
1
vote
0answers
30 views

Including a meta box on a plugin page

I want to include the 'Comments' meta box (the one usually seen on the post creation page) on my plugin's admin page. Is there a way to do that? I am aware of how you can use add_meta_box() to add a ...
0
votes
0answers
16 views

search form to query textarea within plugin settings

I have a form, input text and search button, on the front-end of my site, that pops up when users select 'purchase', this all works great. <form action="[not sure what goes here]" > ...
0
votes
1answer
60 views

Get author posts count after excluding a category

I want to display the posts count of each author, but posts that are in some categories should be excluded from the count. I tried doing this with count_user_posts( $user->ID ), but this function ...
0
votes
1answer
49 views

Wordpress postboxes On Tabbed Views and Hiding Registered Pages

Firstly here is a YouTube of me explaining my problem... https://www.youtube.com/watch?v=Nenu1stzLRw I want to be able to use postboxes on tabbed pages. Usually tabbed pages are called views to ...
0
votes
0answers
146 views

Adding Third Post Box Column: postbox-container-3

I've studied plugins that have postbox-container-1 and postbox-container-2 in use. The best implementation of post boxes I have seen is in TablePress Plugin I had to adapt the approach used in ...
0
votes
2answers
153 views

Resize Image without cropping

Currently I’m working on a WordPress plugin and as part of it users can upload Images. What I want to do is that these uploaded images of any size will be resized to 100px by 100px without cropping. ...
1
vote
1answer
95 views

How to load library scripts in admin from plugins in noConflict wrapper?

For my plugin I need to make a meta box for some custom fields in my CPT (xyz), and to organize the fields, I need to implement tabs. And I's taught to load jQuery/JavaScripts using ...
1
vote
1answer
28 views

Read text defined under __()

I am new to WP Plugin development. I have a theme where texts are included inside __() function for translations, like: __('This is text to be translated'); I want to create a plugin which would ...
0
votes
0answers
128 views

Integrating Option Tree in my plugin

I am striving my best to integrate Option Tree plugin in my plugin, but couldn't integrate. Basically, when we want to integrate Option Tree in your Theme, you use below code in your functions.php ...
0
votes
1answer
50 views

WP_NAV_MENU filter targets all menus

Im trying to replace my template's primary menu through a plugin so that I don't have to make changes to the header.php. I found this code in another question answered here in 2011 (Replacing ...
0
votes
0answers
26 views

Backbone is breaking the media uploader

Greets, when using backbone in a plugin of mine the media uploader on the post edit page stops working properly. The uplaod button doesn't work anymore and the drag and drop functionality doesnt ...
0
votes
1answer
183 views

Disable The Events Calendar plugin from loading its scripts

I have just installed The Events Calendar Pro. I am currently using the following custom template to hide any plugin related content and display a message and login link instead: <?php if ...
0
votes
1answer
53 views

Adding custom avatar field to comments

I want to store a users Twitter Profile Image when I found out that they've tweeted the link of a post (by using the Twitter API), but I'm stuck with the following issue: How do I store the Profile ...
0
votes
0answers
99 views

UPME Known Issues - Unable to Save Custom Fields

When you have large number of custom fields, there are issues with saving and updating process. This is due to the maximum input variables constraints set by PHP. Currently you have to increase php ...
0
votes
0answers
21 views

Plugin version not updated with new version

I also checked this thread, and tested the /trunk and /tags/1.1 readme.txt files stabletag are same. /trunk/readme.txt === Plugin Name === Contributors: jogesh_pi Tags: tags goes here Requires at ...
0
votes
0answers
53 views

Adding a dropdown on my setting page

I have created a plugin and I have created setting for it where I have created a text field. But now I want to add a dropdown link. Can I show a thumbnail in the front of it in a dropdown, yes or ...
0
votes
1answer
414 views

How to access global variable $menu inside a class function

am puzzling why can't i access the global variable $menu inside a php class function class adminMenus { public function getWPdefaultmenus(){ global $menu; return $menu; } } using ...
0
votes
0answers
29 views

Get custom post archived by meta field value in wordpress

I am using cpt-archive plugin to generate archive by month in my wordpress post. Here the plugin using this code, $query = "SELECT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, ...
0
votes
0answers
33 views

Scheduled event occurring each page load, but supposed to happen daily

I have a scheduled event that is supposed to occur only once a day at 12am. However, for some reason my scheduled event is happening on each page load and I can't figure out why. The default ...
0
votes
1answer
77 views

Redirect user to a particular link in 10 seconds after using wp_die

I want to use some type of functionality if ( $some_condition == false ) { wp_die(); // Here i want to redirect page on some URL after 10 seconds } I need to do it inside a plugin. Is it ...
-3
votes
2answers
65 views

php include returns 1 as output with other outputs [closed]

I have this code $return = include(TEMPLATEPATH . '/apex.php' ); $html .= $return; I using the above code to get a php for from a plugin from theme dir. but it returns 1 with the other wanted ...
0
votes
2answers
132 views

How to group navigation items in the admin panel

I have more than 50 custom post types which I have created using the Pods plugin. The problem is that the left navigation of the admin panel looks really busy and messy and it takes a lot of time for ...
0
votes
1answer
16 views

Validating values using Settings API?

I'm using the Settings API to create options for plugin. Do I need to validate the input values for the security (for example stripslashes etc)? (I could not find that part in most of the tutorials). ...
0
votes
1answer
44 views

appointment plugin doesn't display all appointments

I'm trying to create a appointment plugin, and so far it is working that I can create appointments and see the detail view from the appointment. The problem is, on a page called "appointments" where ...
1
vote
2answers
279 views

How to customize login process

I want to create a new way to Login. What I got to do now: Edit the user form, adding a new field that is saved in user_meta Edit the Login form, adding a new input; Build a (safe) query that ...
0
votes
0answers
30 views

$post->ID not working but the get_the_id() is [duplicate]

I created a custom post type from a Plugin. Then in a function like show_data() I queried the post type along with its post meta data (Custom Fields). Then in Page Template I used the function to show ...
0
votes
0answers
31 views

User added CSS to alter shortcode

I am creating my first plugin and so far it has gone well. It is very simple thing that calls the css file up and allows users to add shortcodes which will then create different colored backgrounds ...
0
votes
0answers
44 views

register_activation_hook not working with symbolic links

I'm writing my first own Wordpress plugin. It's working great so far, except that now I need to create a few DB tables upon plugin activation. So I put register_activation_hook( __FILE__, ...
0
votes
0answers
47 views

How to link PHP pages not included in menu?

I'm developing a plugin which has basically four pages in menu, each page contains a form that the action value should link to another page (not included in menu). My questions are: how do I link the ...
0
votes
1answer
21 views

How to tell which Plugin is displaying?

I'm editing a Wordpress website for a client that was written by someone else. I'm noticing that a video and button are displayed on the home page. I used the Reveal-Template plugin to figure out ...
0
votes
1answer
43 views

Extending a theme: build new features as plugin or core modules?

I have developed my own WordPress theme based on the Roots starter theme. Because of my clients needs, I'm often required to develop custom features (what I refer to as "modules") that are added to ...
0
votes
1answer
123 views

Accessing Variables Used In a Plugin Using PHPStorm + XDebug

I'm currently attempting to use XDebug 2.2.1 and PHPStorm 7.1 to debug my WordPress plugin. So far, I've successfully installed XDebug and breakpoints are working fine. However, I'm unable to access ...
0
votes
1answer
50 views

How to set the default value as the saved value once a form of widget is saved?

I tried doing this for the function form : <?php function form(){ //Set up some default widget settings. $defaults = array( 'uid' => __('121232', 'example'), 'height' => ...
0
votes
0answers
82 views

Change wp_mail SMTP settings for each E-Mail

I want to send mails using wp_mail function. I have multiple SMTP accounts login details. I want to send some mail using Account A and some using Account B. How can I send mails with different ...
0
votes
0answers
89 views

Plugins admin page in tabs

How do I init custom Plugins admin page if pages are enbeded in tabs I try the following but You do not have sufficient permissions to access this page. class MyPlugin{ public function ...
0
votes
0answers
70 views

How to let user know his session has expired and show him a popup?

Can anyone knows how to show a popup once user session has expired? This is what i want to achive When User has been automatically logged out due to inactivity or session expiration I need to show ...
1
vote
1answer
121 views

Unable to override pluggable function wp_mail

A couple of days ago, my wordpress blog hosted on openshift suddenly stopped sending me mails and notifications. Until now I'd never bothered how wordpress handled mail sending since they always ...
0
votes
1answer
17 views

Plugin options not appearing on options page using tabbed navigation

I've modified the plugin options page for my plugin to use tabs, using the existing WordPress system for this. However, The actual options are not appearing on the screen - just the tabs and the "Save ...
0
votes
1answer
31 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
33 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
107 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
122 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
76 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
59 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
16 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
29 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
60 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
36 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 ...