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)

-2
votes
0answers
9 views

Generate pre-built visuals with Post text

Anyone can give me a hint: I need to have on my website a "Generate Visual" button - that will take my post text and give me several different templates where I can make visuals of. Explanation: I ...
2
votes
1answer
2k 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(); ...
0
votes
1answer
13 views

This doesnt work for Plugin get_template_directory_uri()

function Zumper_widget_enqueue_script() { wp_enqueue_script('jquery-repeater-form',get_template_directory_uri().'/admin/js/sample.js'); } add_action('admin_print_scripts-widgets.php', ...
0
votes
1answer
10 views

How to add settings subpage from a plugin to a settings page created in theme?

I'm using add_menu_page(...) from a custom theme and I want to add subpages to that menu with add_submenu_page(...) . If I try to do it from the theme it works as expected but when I try the same from ...
-1
votes
0answers
7 views

Taxonomy based dynamic rewrite

I have a hierarchical taxonomy, something akin to: Term1 Term1/Subterm11 Term1/Subterm12 Term2 Term2/Subterm21 ... And I'd like to get all the posts for a given taxonomy when accessing ...
0
votes
0answers
17 views

Help with folder structure for MVC plugin / theme

I know similar questions have been asked many times, but I couldn't find an answer that would help me progress with my project... Here's my situation: Large part of my project is for logged users ...
0
votes
1answer
12 views

Wordpress custom plugin developement

I'm trying to make a page in my plugin, but don't want it to appear in admin_menu, but just in my plugin page menu! I have a lot of pages, don't want them all to appear as sub menus! any ideas?
0
votes
0answers
18 views

Hooking to APIs working on WP_Posts

I'm working on a WP site, and I've found a plugin that I can use to do most of the work. But there is a problem: as I feared, it stores all of its data inside WP_Post. This is obviously pretty stupid ...
1
vote
0answers
27 views

Input in plugin widget does not allow spaces

I'm developing a plugin for a client which allows keeping records of reservations to their hotel, and it has a widget which allows clients to make reservations. However, for some reason one of the ...
-2
votes
0answers
25 views

Trying to update my plugin in the wordpress.org repository, authentication failed

So I am trying to update my plugin in the wordpress.org repository, and the authentication is not working. I get the error: POST of '/!svn/me': authorization failed: Could not authenticate to ...
5
votes
1answer
127 views

Best way to flush_rewrite_rules for custom post type, in a mu-plugins plugin?

I am writing a plugin that instantiates a custom post type (among other things). It is a multisite plugin and lives in the directory mu-plugins. What is the best practice for handling ...
0
votes
1answer
20 views

Wordpress User Management Departmental Managers

In wordpress is it possible to departmentalise user accounts and then have a departmental manager oversea those accounts in same department but not other departments?
0
votes
0answers
8 views

Help with Widget Update Function

I was putting together a very simple widget plugin. The one thing I'm having trouble with is updating three variable in the backend (title of the widget, affiliate ID, and number of images to show). ...
0
votes
1answer
25 views

Buddypress Member list not showing admin and mods

I'm trying to get a list of members for a buddy press group but the result leaves out members that are admins or mods even though exclude_admins_mods=false has been specified as a parameter. This is ...
0
votes
0answers
22 views

Package site as a Plugin

Can I package my external site as a WordPress module that will be installed like a package or plugin? The behavior is like an external site linked inside WordPress using custom databases and configs ...
0
votes
0answers
22 views

Email not sending on wordpress

I am trying to send custom email using ajax in wordpress but it's coming back with 500 internal server error on form submission. Can anyone help me out with this concern <script ...
1
vote
0answers
14 views

Some strings from a .mo file do not load

In a plugin I'm developing, most translations do work, but some strings refuse to work without an apparent reason. For a settings page, I'm using this pattern: $clgs_settings_descriptions = array( ...
0
votes
0answers
9 views

I want to do required field Tags Meta_box before publish a new post

I´m trying to doing a "required field" for the "Tags Metabox" when the user posting a new post, like the featured image metabox. But I'm not sure which is the best solution, via jQuery? or by hooking ...
0
votes
1answer
27 views

Shortcode returning localized HTML part

Here's my issue. I made a shortcode which makes a related article section in post content. Here's the content of this function: $a = shortcode_atts( array( 'id' => 0, ), $atts ); ...
0
votes
0answers
13 views

Display articles on spefic page slug

I need to modify a plug-in for display articles on a specific pages. the pages are : http://host/gallery/gallery-one/, and... http://host/gallery/gallery-two/ the articles are also suddivided in ...
0
votes
1answer
39 views

Disable variations on woo commerce if out of stock

I use Woo Commerce on my site with multiple variations on one product. How do I remove or blank out a variation from being selected if I make the product 'Out of Stock'? I've tried using 'Hide Out of ...
0
votes
0answers
16 views

Adding checkbox opt out to send to campaign monitor not working

For some reason I cannot make this work. Anyone can tell me what is the issue? <?php add_action( 'register_form', 'ac_email_opt_in' ); add_action('register_post','check_checkbox',10,3); ...
0
votes
0answers
18 views

Create tabs in admin options page from custom post type loop

For a WordPress crm/password management plugin I am working on, I have created a custom post type called 'client'. I also have made a separate menu page for storing and showing the passwords of these ...
0
votes
2answers
36 views

Add a row on clicking each post featured image

I have to add a row that (containing the content of post) below the post thumbnail on clicking thumbnail. I have done it by using this but it affects the adjacent post thumbnail.I want that a ...
0
votes
1answer
27 views

wp_enqueue_script inside a class static function [closed]

I have searched for a solution of my problem, but without resolution. I have writed a plugin and in init hook I call wp_enqueue_script and wp_enqueue_style. wp_enqueue_style work correctly, ...
0
votes
1answer
10 views

Wp Debug Enabled True Notices and Warning

Notice: Undefined index: Zumpito_event_full_day in /home2/michael/public_html/domainname.com/wp-content/themes/themename/included/main.php on line 246 Warning: Cannot modify header information - ...
2
votes
1answer
718 views

save_post hook not triggered in WP v3.6.1

I developed a plugin having a custom metabox that is using the save_post hook to store data. The plugin is 18 months old and is used by thousands of customers, so I'm pretty sure everything is good. ...
0
votes
1answer
969 views

Create an user on external database

I have wordpress site and a project management system from codecanyon. Here is the link I have disabled registration for users in project managment system, only login is enabled. I need to make users ...
0
votes
1answer
773 views

Ajax +wordpress onClick link redirect to new page and create html content

i have two pages in my wordpress plugin index.php charts.php in index.php i have some content and some link.. <a onclick="show_trend()" >Trend</a> while clicking this link ,i have ...
0
votes
0answers
11 views

Customize the map from Geodirectory plugin

I'm trying to add a color to a particular state for Geodirectory's map since all of the locations are in one state WV. I found this site that generates the JS code for this for JS maps. but don't ...
0
votes
0answers
7 views

Add Community Events 'Submit an Event' form to a page or template

I am using the Community Events add-on of The Events Calendar plugin along with Simple Membership plugin. Simple membership lets me restrict page access to different membership levels via the page ...
34
votes
16answers
4k views

How do you debug plugins?

I am pretty new to plugin authoring and was having a hard time debuging. I used lots of echo and it is sloppy and ugly. I am sure there is a better way to do this, maybe an IDE with a debugger that ...
1
vote
0answers
16 views

Custom Taxonomy and tax_query Issue?

I am working on Plugin development and my plugin name is plugindev.I have a custom post type called team.I have a custom taxonomy Team_Category which is being registered by this code ...
0
votes
1answer
406 views

Woocommerce checkout update totals with datepicker

I've added a new date field on the checkout page. I'd like to create a date based delivery fee calculation. The date field has the 'update_totals_on_change' class. When changing this manually the ...
0
votes
2answers
2k views

using wp_footer hook in a plugin

I'm using the wp_footer hook into the plugin and it doesn't work, but when I copy the code to the "functions.php" file of the active theme it does work, what is the possible problem in this situation ...
0
votes
0answers
15 views

migrating user and passwords from jshop to wordpress

Hi i am migrating from jshop to wordpress so i also want to migrate old website users but there passwords a encryted using md5($string.$salt) method but then if i add user to wordpress database then ...
0
votes
0answers
14 views

How to add custom pages to menu programmatically?

So I need to add some pages when it created to the menu within plugin. Menu id is 125. Pages have taxonomy gp_hubs. $category = wp_insert_term($name, 'gp_hubs'); foreach ($sub_categories as ...
1
vote
1answer
4k views

Auto gallery from folder contents

I want to create a WordPress shortcode that will add an automated gallery of the contents in a folder. I am currently trying to implement this in a site that publishes 12 annual magazine issues, so as ...
0
votes
1answer
754 views

Uploaded image not appearing in custom post type

I am writing a plugin which should allow users to create a custom post type called reseller and attach an image. The image is being uploaded to the uploads folder and appears in the media library with ...
0
votes
1answer
114 views

Custom Plugin - CSS works, JS doesn't

In the plugin I'm making, I use separate js and css files (____.js, ____.css). This is the first time that I've included an external .js file in anything. I'm registering and enqueueing both in the ...
1
vote
2answers
57 views

Why is my ajax call refreshing the page?

I'm attempting to upload an audio file via AJAX form. Here is my HTML in the profile-edit template. <form method="post" id="my_upload_form" action="" enctype="multipart/form-data"> <input ...
3
votes
2answers
39 views

Escaping built-in WP function return strings

Should one filter the output of builtin WP functions such as get_permalink() and well-known WP plugins such as ACF (Advanced Custom Fields) such as get_field()? For instance get_permalink() calls ...
0
votes
1answer
444 views

Howto: Use Custom Post Types as Submenu Items in Admin

In a plugin, i've created 3 Custom Post Types, for example: Dogs Cats Goldfish I've also created a "Pets" Top-level menu page using add_menu_pagewherein I'd like to add the 3 CPTs as submenu ...
1
vote
1answer
657 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. ...
1
vote
1answer
32 views

Custom role capabilities to administrator not taking effect (no plugin)

I have created a custom post type from a plugin. I added a capability type teacher. Then I have added custom capabilities to administrator. But the problem is for the first time after completing this ...
0
votes
0answers
8 views

Jetpack filter hook for twitter publicize post

I would like to know whether is there any filter hook in jetpack plugin which gets called before post get published on twitter through jetpack using publicize feature. I browsed many times, but I ...
0
votes
0answers
12 views

How to create session for user which is not an admin user

Hello I am working on building a plugin which has the following functionality like stated below My problem is I am stuck at point I have created registration form for the users where users will be ...
0
votes
0answers
20 views

Update broke rewrite rule

With the update from 4.4 to 4.4.1 somehow suddenly my rewrites aren't working anymore. I've written a plugin to show attachments on a page (the landing page specifically) so people that come to the ...
2
votes
0answers
32 views

Global Objects and Public Methods

I'm developing a plugin and am just thinking over best practices. How common is it to have a global object? Currently on plugins_loaded I am creating a global object of my class: add_action( ...
1
vote
1answer
16 views

JS Support Ticket - Auto create WP account

Maybe you guys know if it's possible to create an account when a new user creates a ticket. At this point there are 2 options. Let user create a ticket based on e-mail address Let user create an ...