-1
votes
0answers
9 views

Plugin to display posts of a specific category, similar to a blog [on hold]

I am creating a magazine style template for WordPress and it has a few different sections displaying a few posts of each category. Kind of like this template: http://gazette.seoresearch.com/ . Is ...
0
votes
0answers
14 views

Make a select field directly beside a text input field with the Settings API

I'm building a plugin that needs a very simple options page. I'm asking the user to enter the default width and the default height that they want the plugin to use for their embed. I also want to give ...
-1
votes
0answers
21 views

Why wordpress plugin shortcode doesn't work properly with IE

I recently working on a wordpress, plugin, it already reached a final stage, and all it left is cross browser compatibility, the problem is why shortcode doesnt work properly With IE. Below are My ...
1
vote
1answer
47 views

Test files for plugin development

The end of the first chapter of Professional WordPress Plugin Development by Wrox Press released February 2011 states: To test a plugin during development make a test.php file and place it in ...
1
vote
2answers
20 views

Adding Font Awesome to WP Plugin

I'm trying to use font awesome icons for my plugin. I've read this page in the codex and this question. Here's what I've tried so far: I've added this on wp-plug-in.php (or should it be somewhere ...
1
vote
0answers
18 views

Upgrade Private Plugin without Deleting

I've seen numerous questions asking a way to update a private plugin by checking to self-hosted repository, or update plugin from personal API, but my question is quite different. As we all know, if ...
0
votes
1answer
18 views

Input with spaces in Shortcode attributes overwritten by defaults

question seems to be similar to the one asked here but the answer went down a different path. Pretty much if a user enters a shortcode attribute with a space it will get overwritten by the default ...
0
votes
1answer
67 views

Plugin hook breaks new WP 4.0 media library grid view?

I have a plugin which has code in it which has broken the new WP 4.0 media library grid view. The grid view itself (the rest of the page is fine) won't display if my plugin is active and this option ...
2
votes
1answer
33 views

How do I add a widget programmatically to a newly created site (WPMU) within a plugin?

I'm making a plugin that creates new sites (WPMU), and also has its own widget that needs to be placed onto the new sites it creates. The issue I'm having is that I can't get the plugin to insert ...
0
votes
0answers
47 views

WordPress 4.0 Cookie Authentication to avoid nonce error when publishing a post and page

Cookies are now tied to internal sessions in WordPress 4.0. This means plugins using basic cookie authentication will have trouble because a token is required for publishing a post or page (as well ...
0
votes
1answer
27 views

Calling a class method instantiated by ajax call in wordpress [closed]

I have an ajax call in Wordpress that instantiate a class. I want to be able to call the class methods in other functions. Here is the code to demonstrate. Ajax call: ...
2
votes
1answer
114 views

Security error WP 4.0 + WP phpBB Bridge [closed]

so today I updated to 4.0 (glad I had backup). Everything was working fine until I tried to publish a post. There I got Are you sure you want to do this. Also had Cheatin' Uh under ...
0
votes
0answers
6 views

How activate custom plugin in WordPress on virtual box “host only adapter” and no internet connection?

I'm running WordPress in Virtual Box CentOS 6.5 on a laptop without an internet connection. I am able to get the CMS in a web browser by running the virtual box using a "host only adapter". However, ...
0
votes
0answers
27 views

Input gets deleted/overwritten after changing to different Admin Menu

After I have added a plugin menu and have some input to be saved in the database, everything works fine and gets saved, even if I refresh the current page. However, once I go to other menus in ...
0
votes
1answer
17 views

Need to hide an element depending on date and post category

I've been racking my brains for a few days trying to figure this out. I'm using WP Voting on my site. I need to create a script in single.php that will remove the div that contains the voting widget ...
0
votes
0answers
34 views

How to execute function/method when specific URL is called?

I have url "www.something.com/wp-content/plugins/tool_new/admin/new_tool_email.php?method=new_tool_send" I want to sent up real cron job, and when this url is called to execute method ...
0
votes
0answers
27 views

How to add submenu to Wordpress plugin in the same Directory of main Plugin?

I have created a plugin and now i want to add a third party plugin inside of the Main Plugin menu, so it can be submenu. How do you make the second plugin appear? Directory Setup: ...
0
votes
0answers
11 views

Setting a taxonomy consisting of sites' name

Hi I am running a multisite and I would like to set the taxonomy as sites' name. so the category will have options of Group A, Group B etc. The problem I have now is that I do not know how to get a ...
0
votes
1answer
18 views

Force Network Activated Plugin to Run After Site Level Plugins

I have a custom plugin I created and network activated it on WordPress Multi-Site install. I plan to use this plugin to override/enhance functionality for plugins available on my installation. The ...
0
votes
0answers
40 views

Force download a file within plugin file

I am trying to make a plugin which will force a certain file to download. I cannot find any examples of other people downloading files using a wordpress plug in. I simplified the code a little bit. I ...
0
votes
0answers
28 views

I want to add facility to add country, State, City in my custom plugin

I am working on a plugin for trip adviser, In that i am to add service for user that he can add country, state, city in which his company provides the trips. What should i prefer for that, Please ...
0
votes
0answers
18 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
11 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
28 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
17 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
28 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
56 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
28 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
20 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
23 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
19 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
38 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
22 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
35 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
79 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
25 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
23 views

Custom post type plugin archive page doesn't work?

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 the archive template is not working. ...
5
votes
3answers
438 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
53 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
31 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
31 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
55 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
24 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
38 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
21 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
55 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
27 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
13 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
10 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
23 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 ...