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

get_option include <br /> in my adsense

As title said I saved in wp-options -> option_value a adsense code but when I try to display to website in the code I get some "<script type=\"text/javascript\"><!--<br ...
0
votes
2answers
41 views

What is the best way to store a few fields?

I'm researching what it would take to develop a custom Wordpress plugin. The plugin is a pretty small one. We just need to persist 2 fields of integer information. It's a pretty basic progress bar ...
0
votes
2answers
145 views

Widget redirecting to home page

Am trying to create a widget that searches for names. The searching and all that is fine, but when I hit submit, I get returned to the front page. I tried messing with the action="", but no matter ...
6
votes
2answers
3k views

How Do I Use jQuery UI In My Plugin

It's a sad day in the world when I Google something and it returns nothing. I am trying to use the default datepicker (or ANY datepicker at this point) and am unable to because of my lack of ...
2
votes
1answer
1k views

add_filter and remove_filter added before and after wp_query

I have just started with WordPress Development, and found following block of code online (in some tutorial) function filter_where( $where = '' ) { // posts in the last 30 days $where .= " AND ...
1
vote
1answer
478 views

Display custom fields in frontside user profile

I installed the CIMY User Extra Fields plugin to add new custom fields in theuser profile. I added 1 custom field for gender to the user profile but it displays only in the admin panel user profile. ...
2
votes
2answers
276 views

Get image URL from media library in input

On wp-admin/post.php?post=447&action=edit for example I have a link and an input. The link appears as follows: <a href="#" class="button insert-media add_media" data-editor="tj_image_url" ...
2
votes
1answer
122 views

Customize multisite site creation with user data

No, I've never made a plugin. But I would like to, or find someone who can work with me on it. What I'm hoping to accomplish is setup presets on site creation. I need my multisite to do this: When ...
0
votes
1answer
206 views

Wordpress removing data attributes for scheduled post

Hi I'm using the smarty templating engine in wordpress to generate HTML like the one below: <li> <div class="checkbox_container" data-asin="B0009Y7APU"><input type="checkbox" ...
1
vote
2answers
1k views

How do I only load js on the post-new.php and post.php pages in admin?

I have some script that is loading in the admin. I only need it to load on the new post and edit posts screens. What is the best way to do this?
1
vote
1answer
64 views

Including file or library from other plugin

I'm creating a plugin I would like to use from other different plugins. This plugin declares classes and functions. So, I am thinking about the best way to include, from one plugin, a php file present ...
1
vote
1answer
3k views

How to modify product page for Jigoshop

Hi I am editing Jigoshop loop-shop.php to create a customize look list and the code is below .... Please do let me know where I can get below things ... Add to Cart - Link Only Price Text - List ...
0
votes
1answer
97 views

Wp-admin Custom User Management

I am working on a plugin for which I will have to develop a backend page similar to the built-in "Users" one, in the sense that it will be basically do the same things: list the existing users ( using ...
0
votes
1answer
113 views

Custom Post Type Navigation on Custom Field

I'm working on a Custom Post Type sorted on a Custom Field. No problem when I list out the posts. But when I go to the single post page for one of these, I want the Prev and Next navigation links to ...
5
votes
2answers
2k views

Custom Post Type Plugin: Where Do I Put The Template?

I'm writing a custom post type plugin. Part of it I'm outputting to the template via shortcodes. But other parts need a custom post template, and I figured out how to use the template hierarchy for ...
0
votes
1answer
26 views

Finding a post's slug

I'm using wp_query() to get custom posts from the database. I want to list these out as links to the entries, so I'm thinking I could use the slugs. Sadly these don't seem to be included in the ...
0
votes
1answer
268 views

How To Create A File Archive in WordPress?

I've installed WordPress for my schools website. I need create a file archive, an uploader and a file viewer for the website. The file archive would store files on the server. The uploader would ...
1
vote
1answer
263 views

Admin Posts List (edit.php) by post IDs

I'm writing a plugin that creates posts in bulk. I provide a way for the user to set certain parameters of the created posts beforehand. But it would be useful to use the WordPress default "All Posts" ...
3
votes
2answers
2k views

Pass PHP variable to javascript

Is there any possibility to pass some PHP variables in javascript so I can use them later? Only in single.php. I heard about wp_enqueue_scripts but with that it is neccesary to declare a path to a JS ...
1
vote
1answer
150 views

Two functions utilizing registration_errors filter

I wrote two plugins that utilize the registration_errors filter: add_filter( 'registration_errors', 'process_payment', 10, 3 ); add_filter( 'registration_errors', 'add_user_to_SF', 10, 3 ); When ...
1
vote
1answer
156 views

Using ob_get_content to get_search_form puts into infinite loop

I am trying to change the look of my searchform. It basically needs to have two text fields. I want this to be in form of a plugin, which anyone can activate. SO obviously I do not have any control ...
0
votes
1answer
75 views

Capturing POST data

I am trying to modify the Member Status Plugin so that the status are based on the data saved on a custom database table. Basically I wanted to change the administration menu with a form that can ...
0
votes
1answer
173 views

Redirect User to custom URL after registering

I modified the default Wordpress registration page to include a role and also payment fields. I am adding a Gold Member feature the my website, which requires payment. I'd like it that after this ...
0
votes
1answer
216 views

calling admin-ajax.php from admin-ajax.php

I'm writing a plugin that calls the output of another plugin's ajax, which is set-up at wp_ajax_ I would have called the functions directly, but limitations in the plugin make that a non-option. To ...
0
votes
1answer
198 views

Multi-part form and wp_redirect()

For starters, it's a plugin (with a shortcode) or at least I would prefer it to be. I've got two issues both related to wp_direct. If form 1 validates I want to redirect to form 2, and continue the ...
0
votes
1answer
351 views

Load php file with jquery in single.php

I implemented in my worpdress theme ios button switch and when someone click the button the script load a php file with the text: on or off Here is the code: <script type="text/javascript"> ...
2
votes
1answer
111 views

Am I not understanding plugins?

So I am trying to make it so that you can load a class from a child theme, theme or plugin using the following: class AisisCore_Loader_AutoLoader{ protected static $_instance; protected ...
2
votes
2answers
1k views

Headers already sent error with CSV export plugin

I have built a Wordpress plugin that allows the user to export all pages, with their levels and urls, to a csv file. The problem I have is that I keep getting error messages when trying to export ...
1
vote
0answers
50 views

Wordpress Localization and Templating

I'm using Smarty Templates for the back-end and Handlebars for the front-end for the plugin that I'm building. It's only now that I discovered that the localization doesn't work when I declare my ...
6
votes
1answer
121 views

API to trigger prompt on leaving page

I have a proprietary plugin that creates a metabox on the edit-post page. When the data managed by the plugin is edited and the user navigates away then we would like the user to be prompted as ...
0
votes
1answer
195 views

Dynamically generate meta tags and titles for a wordpress page

I have created a wordpress page that will output product details of a specific product from amazon: wordpress/product?asin=123 I'm just using the product page as a template and it really contains ...
1
vote
2answers
63 views

How can I prevent my plugin's next version from updating one of the files?

I read in another question that all the files in the directory are deleted during an update and this is bad design. Got it. Prevent plugin from deleting important directories Is it possible to not ...
2
votes
2answers
251 views

Plugin development with unit tests

One of the things that my plugin does is creates a number of SQL tables as part of a versioning function (that is run under the admin_init hook as I couldn't find a better wordpress way of doing ...
1
vote
1answer
576 views

Check spam in custom form - akismet

I have a plugin that has input form, I have decided to check submitted data with akismet. I do have API key, WP comments are filtered correctly... here is, what I found: ...
2
votes
2answers
173 views

When would I use either function for plugins?

I am curious as there are three function for loading files in plugins: plugin_dir_path() and plugins_url(), along with plugin_dir_url() So as a plugin developer, which would you use for loading php ...
1
vote
1answer
152 views

Adding (blog-specific) links to “My Sites” admin page

The My Sites admin page only has links to the sites’ dashboards and production pages which is of limited value. I am trying to figure out a way to add a more useful links to them like New Post, ...
0
votes
1answer
100 views

Fatal error: Cannot redeclare admin_notice() [closed]

I'm writing a plugin, most of my code is wrapped in classes, except for an admin_notice fallback function that I call when I am not loading the main plugin class: class MyClass { //Main plugin ...
1
vote
2answers
602 views

How to check if current static page is frontpage from admin plugin

I set static page as front page. I need to know if user currently on homepage in my custom plugin. Functions is_home() and is_front_page() doesn't works, since homepage is static page. I can get an ...
1
vote
1answer
1k views

How to Load Plugin JS in theme's footer section

I am working on optimizing my theme so that the load time can be decreased, as of now i have used wp_enqueue_script() to add my custom js file and everything is working fine as expected. One thing ...
0
votes
2answers
63 views

Add Page With Parent ID

I am writing a plugin that upon activation creates a set of pages. The first page that I create I want to be the parent of the rest of the pages that are added. For some reason, this is not working. ...
2
votes
1answer
60 views

Plugin: How should I handle deleting comments?

I am writing a plugin that creates an api for a custom post type. Users can comments on the custom post types and the comments are added using WP core comment methods. My question arises when trying ...
0
votes
1answer
69 views

How can I change my assigned user role in WordPress 3.5.1?

My current user role is "Administrator". I'd like to change my role to "Editor" (through out database field). I read Database_Description, but it did not help.
1
vote
2answers
249 views

How to change the name of the “edit my profile” link in the WordPress admin backend

I am really confused at this point. I can not figure it out how to rename Edit My Profile link in the admin backend. How can that be done?
2
votes
1answer
1k views

get_template_part from plugin

This is default get_template_part function inside WordPress: function get_template_part( $slug, $name = null ) { do_action( "get_template_part_{$slug}", $slug, $name ); $templates = array(); ...
3
votes
1answer
97 views

Finding WordPress sites using my plugins

I've now developed two WordPress plugins and would like to see some sites that use it. I'm looking for a way to find sites that use a WordPress plugin I built. However, the official guidelines, don't ...
2
votes
0answers
160 views

How to add custom button to new media upload interface [duplicate]

I am developing a plugin and i want to add my own button to the wordpress media upload interface (WP version 3.5). Right next to the standard 'insert into page' button, i want my button to be there, ...
1
vote
1answer
364 views

uninstall.php file in Plugin to clean DB

I am aware that WordPress provides Plugins a nice way to clean up the db if the Plugin is deleted by providing the uninstall.php hook. You just have to place the cleaning code and it works. But my ...
0
votes
2answers
83 views

How to embed a new string in url?

I am creating a custom tours and travel theme in which I have created custom post type Cities, Locations, Destinations and i am using custom permalink structure. /%category%/%postname%/ So now I want ...
0
votes
1answer
62 views

How to load plugin static data from cloudfront

I am moving my site's static content data to Amazon S3+ CloudFront and i am successful in doing this for most part of my site (no plugin used) except for the plugin section. For the plugin i am ...
0
votes
1answer
143 views

wp-load.php redeclares classes

I am trying to load WordPress options within a standalone PHP file. The file is located in /wp-content/plugins/plugin-name/file.php. I have used the following to open wp-load.php: if ...