0
votes
0answers
12 views

Database solutions for a commenting plugin?

(I'm new to this and am aware that my questions are vague and kind of suck, please bear with me.) My plugin, a commenting platform, is in the directory. Currently, it doesn't have it's own database. ...
0
votes
0answers
10 views

Plugin update without overwriting the functionality [duplicate]

I have installed some plugins with my WordPress site, some time i modify a lot in the (.css or .php) files of the plugin to get the results i want after that i can use them with more than one site, so ...
1
vote
1answer
26 views

How to create a custom shortcode based on the layout?

Hi I am developing a custom post type plugins. Which has shortcode support. Already i have created a shortcode which is going to use for default layout design. Again i have to create a onemore ...
0
votes
0answers
11 views

Adding Page/Post Attachment Capability to the Media Edit Screen

Is there a way to add the page attachment capability to the edit media screen? So if I add/edit a media item, I can also attach/re-attach it to a page.
0
votes
1answer
25 views

Plugin Hook: Get posts

I am building a WP plugin. It shows several featured post images with titles atop. It will have a spot on the admin bar to tell it what the featured posts are. What hook do I use to get the post's ...
1
vote
2answers
34 views

Making my plugin translation ready. Poedit not working

I'm building a plug-in which is going great so far. I want to start making it localization ready. I don't know what is going wrong, but it's bugging out on me when I try to load it in Poedit. So ...
0
votes
1answer
26 views

Custom CSS not being added by plugin

I am attempting to add custom css through my plugin. I do have wp_head() called in my header. My code is - /** * Enqueue plugin style-file */ function prefix_add_my_stylesheet() { ...
0
votes
0answers
17 views

Can i use third party setting api to my plugin?

I am new in wordpress plugin development platform and i am trying to develop a plugin. I need a setting option for this plugin. I have made my decision to use this ...
-1
votes
1answer
17 views

redirect to custom php template in wordpress plugin directory

i create a plugin that contain : index.php includes : index.php style.css i wanna create a plugin that when user active it , it redirect user to includes/index.html i wrote somthing like this ...
0
votes
0answers
18 views

Combining the Edit Media Screen with the Links Manager?

Is there a way to somehow integrate the link manager into the media edit screen? So if a user uploads or replaces a media item, they can also add the media's attachment link to a link category from ...
0
votes
0answers
33 views

Perform internal redirect in WordPress?

Let say I have an existing page named "bar", e.g. http://www.example.com/bar I want to write a plugin, which when called, will load the content exactly same as bar (not just post_content, but the ...
0
votes
1answer
14 views

Plugin generated unexpected output - No PHP errors

I'm creating a plugin that creates a custom post type I'm working on. I followed this tutorial. I have just changed it from movie_reviews to staff members. I don't get any syntax errors in PHP and it ...
0
votes
0answers
28 views

wp_footer hook only working on homepage not in other pages

I try to output a javascript code in wp_footer hook but it is not printed in all pages it is working in home page only. I have checked for the presence of wp_footer(); function in footer.php it is ...
0
votes
1answer
59 views

The plugin generated XXX characters of unexpected output…help?

I am working on a plugin that creates a custom post type and then creates a custom template file for the activated theme. The plugin is done editing. But I've received an error while uploading that ...
0
votes
0answers
22 views

Can I use bcompiler for developing WP plugins?

Can I develop WordPress plugins complied by bcompiler bytecode compiler? I want to make my WP plugins in binary code for protecting my code.
0
votes
0answers
11 views

Custom post type plugin archive page doesn't work?

Hi i am creating a custom post type plugin. In that i have added a custom archive template and single page template. The single page template works fine whereas archive template is not working. ...
4
votes
3answers
429 views

Is it a good idea to edit an already existing plugin to add more functionality?

I need to add a relatively small bit of functionality to a Wordpress plugin and I have the option to either edit the plugin directly, or scrap the plugin completely and repurpose PHP code from another ...
0
votes
0answers
38 views

How to add jquery to my custom post type wp plugin

I want to include a jquery to my wordpress custom post type plugin which i have created. i have two doubt,,, the jquery script will work only on widget options (i.e) Sidebar. So when i use the ...
0
votes
1answer
19 views

Update post meta not working on wp_postmeta

I am trying to update post meta values but it does't work. Only function that is working is get_post_meta and add_post_meta but Update wont work at all. Also I tried to change the values using ...
0
votes
0answers
30 views

remove_filter right way

What is the right way to remove filter in condition? method 1 public function update_loop($query) { global $wp; if(!$query->is_main_query() || $query->is_admin) return; ...
0
votes
2answers
47 views

How to cancel Wordpress' action/filter when using OOP with anonymous callback

Most of the wordpress plugins I found is functions based, for example, the offical akismet plugin function akismet_init() { global $wpcom_api_key, $akismet_api_host, $akismet_api_port; // ...
0
votes
1answer
21 views

Don't load the theme for a page FROM a plugin EDITED

I'm developing a pseudo admin area for my client and they don't want the theme overlaid on it, rather have their admin area take up 100% of the page. Normally I would add if (!is_page($id)) and be ...
0
votes
1answer
21 views

Why tinyMCE.editors doesnt work on tinyMCE

<?php /* Plugin Name: Taggr Plugin URI: http://example.com/wordpress-plugins/my-plugin Description: Premium plugin for image and photo tagging Version: 1.0 Author: Tee Kai Yang Author URI: ...
1
vote
1answer
20 views

Howto check version of another plugin and then add a submenu page to it

i'm writing a plugin which requires another plugin. So i have to check first if the other plugin exists in a correct version. If yes i want to add a submenu page to the plugin page but here my code ...
0
votes
1answer
39 views

How to prevent plugins from loading jQuery

I recently downloaded a free plugin from wordpress.I want to remove the plugin from loading jQuery because you experts know that it is already loading from wordpress header.php file. The plugin is ...
0
votes
2answers
23 views

How can I modify admin bar only if my plugin is loaded

If I want to always change the admin toolbar at the top of the page it's easy. add_action('admin_bar_menu', 'add_toolbar_items', 100); function add_toolbar_items($admin_bar){ ...
0
votes
0answers
10 views

wp_parse_args not insert it to options

wp_parse_args not inserting default value to options. But its printing results. $options = get_option('my_options'); $defaults = array ( 'logo' => 'http://domain.com/logo.png', ...
0
votes
0answers
8 views

Template redirect inside of plugin not redirecting

I have this inside of my plugin but it's not loading it ... function templateRedirect() { if(is_home()){ echo 'hello'; } } add_action('template_redirect', 'templateRedirect');
1
vote
1answer
21 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
44 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
25 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`, ...
-3
votes
2answers
40 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
1answer
15 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
37 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 ...
0
votes
0answers
30 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
38 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
32 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
21 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
43 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
53 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
70 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
15 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
66 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
94 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
44 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
28 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
30 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
3answers
87 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
1answer
126 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 ...