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

How to create collections that are edited in admin?

I'm not sure what this feature is called, but I've seen examples of this before. Lets say, on my site I want additional collections of things (besides blog posts) that have their own sections in the ...
0
votes
0answers
7 views

plugin first menu name different from first submenu using register_post_type

i made plugin where i had used "register_post_type" to create custom post taxonomy. problem i that my first sub menu is also name of my plugin how can i fix it Below i code add_action( 'init', ...
3
votes
2answers
53 views

Using filters and actions for plugin API?

I want to integrate a public API to a plugin that I develop. The usual way other plugins integrate APIs is to define some functions that can be called by any theme or plugin. However, I think this ...
2
votes
0answers
30 views

Is there a limit on making calls to WordPress.org API's?

I am writing a plugin which makes calls to https://api.wordpress.org/plugins/info/1.0/{slug}.json Is there a limit on making calls to WordPress.org API's? For example once per hour or every 10 ...
0
votes
0answers
10 views

Gravity forms plugins image upload code [on hold]

I want to change dpi of an uploaded image before uploading that image and before saving into database.
0
votes
0answers
8 views

wp_tag_cloud based on user id

I am using the wp_tag_cloud, however i want to filter this by the taxonomy and a user id, thus having a user tag cloud, I have seen a few hooks but not had much success. So wanting to keep this on the ...
0
votes
1answer
26 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 ...
0
votes
0answers
25 views

How can I add recent posts to menu like mashable

I would like create a mega menu that uses recent posts for hover state. Like When you hover a submenu you get a list of recent post relevant to that menu item like in Mashable. I I would like a menu ...
0
votes
1answer
19 views

Modify users.php page to create page/post on button clicked

I am trying to create a new Column in users.php (Wordpress Users Page) with buttons. Each button, associated with the user, has to create a page or a post (based on my programmatically selection). I ...
0
votes
0answers
8 views

Use one meta box handler at post editor and option page

I made plugin which uses custom database table to store custom form data. All works at option page where is added meta box like this add_meta_box( 'my_form_meta_box', 'My details', ...
-1
votes
2answers
30 views

Method not receiving attributes from shortcode call, general OOP problems

The method OpenMods that you see below, is supposed to take an array generated by an fgetcsv function, and put it into an HTML table. __construct is supposed to, as is typically the case, define the ...
0
votes
1answer
19 views

auto create only 1 wp page in activate custom plugin

I am using this code to auto create a page when I activate my plugin.. function insert_page(){ // Create post object $my_post = array( 'post_title' => 'My post', ...
0
votes
0answers
11 views

export.php override template

Is there a way to override export.php in wordpress core ? The file is under wp-admin/includes. My plugin overrides certain wp functions, not exactly override but just hooks my function and removes ...
0
votes
3answers
64 views

Many plugins making WordPress run slow by design?

So this is what I've read: Many plugins might get WordPress slow if they are activated Many plugins might get WordPress slow even if they are not activated!? An example Let's say I build a large ...
0
votes
1answer
19 views

Workflow for new importer plugin - your advices?

I'm building a new plugin to import Pinterest Pins from a user into Wordpress. It will NOT work using the Pinterest API (which is too limited for what I want to do) and requires the user login and ...
0
votes
1answer
14 views

Change author permalink to external URL

There are several questions here on wordpress.SE that explain how you can change the author slug in the author permalink URL, e.g. from http://your.blog.tld/author/author_slug/ to ...
0
votes
0answers
9 views

Notice: Trying to get property of non-object in WordPress if Debug is TRUE

I am writing a plugin for WordPress. I have created a Class as singleton pattern Class code /* * This I have refered from BuddyPress and trying to learn from it :) */ class AssessmentTest { ...
0
votes
0answers
17 views

admin_post hook error message passing

I've mocked up a quick skeleton plugin, I'm trying to catch the $_POST data from the form template. The best route that I've found is using the hook admin_post, unless there is a better alternative? ...
0
votes
2answers
37 views

WordPress API functions not working at AJAX functions.php call

I am trying to show subcategories of a category in WordPress using AJAX: when I select a main category, there is a call to WP Ajax and the result is used in showing the subcategories. So far, I have ...
0
votes
1answer
18 views

Widget Script Loads at Bottom of Page

I've been working on a plugin that adds a script to the sidebar when activated. So far, I've been able to display the code, but it loads at the bottom of the page and not in the sidebar. I'm pretty ...
0
votes
1answer
20 views

ECHO Executing 4 Times In Head

I have a plugin I created as a test and am running into a bit of trouble. The code is executing 4 times and placing what I echo in the <head> tag of the page. The reason I'm performing an echo ...
0
votes
0answers
15 views

Can I attach the data from one post to another?

I'm looking to create a "snippets" plugin of sorts that lets me create a library of snippets. I then want to be able to attach those snippets to a post but not within the post_content. I basically ...
0
votes
1answer
13 views

Writing editor content to a file

I have a project I'm working on where I need to write the content of the post editor to a physical file on the web server when a post is saved or updated. I'll be parsing and manipulating the content ...
0
votes
1answer
27 views

How do i get all author posts on custom post type list

I am trying to filter a custom post type by some custom fields value and if the posts are by author, query for 2 custom field works but author posts doesn't work. Thanks! add_filter( 'parse_query', ...
0
votes
0answers
25 views

Are there security issues with Visual Composer add ons?

I am developing some add ons for Visual Composer. They are quite client specific so I am not planning to submit the plugin to VC as official add on suggestion. I used this bitbucket code to start ...
3
votes
2answers
134 views

Custom Rewriting to Plugin with Parameters

I'm really stuck on the WP_Rewrite functionality... What I have I have a plugin that's rendered using a shortcode and is displaying full-site content. E.g.: //?p=2 (maps to domain.tld/myplugin/) ...
0
votes
0answers
20 views

How to add an “Add Image” field to my plugin and attach it to css background dynamically?

I am configuring a custom plugin to basically make things easier for a client who has no code experience and will probably be changing things around eventually. The following HTML displays a box ...
0
votes
1answer
37 views

What's the right way to implement functions in footer.php

I have a Wordpress website with a child-theme of 'twentyfifteen' I created. I added a PHP code that changes the footers background depending on the template displayed. This is my code part: ...
0
votes
0answers
18 views

Issue with iframe in TinyMCE

How do TinyMCE generate an iframe in wordpress admin panel ?? Actually I could not find out the starting point of iframe which is generated by TinyMCE. Thanks
0
votes
0answers
12 views

jQuery .on() function on iFrame of WordPress Admin

I am trying to execute following code on an iFrame of WordPress Admin while developing a plugin, but it is not working. jQuery(document).on('click', '.subject', function (e) { ...
1
vote
1answer
18 views

WordPress widget / plugin…fields not appearing in my widget

Trying to create my first plugin. A simple one. It's doing mainly what I want to do except the widget itself in Appearance-->Widgets doesn't display my fields. Wondering if anyone could point me in ...
0
votes
0answers
8 views

How can I use the admin part of a plugin outside of the admin area?

I know it depends on the plugin, but I'm probably gonna need to do this with a couple of plugins. What would be the general steps to take? The way I see it there are two options: Include WP files. ...
0
votes
0answers
32 views

Add a page to nav-menus.php in admin area

I am developing a plugin which extends the function of menu locations in wordpress. I now need to have a page to configure the settings. The only codes I could find on google were to add a themes page ...
0
votes
1answer
32 views

How to integrate plugin in Wordpress theme

I have read that there are two ways for integrating a plugin on a Wordpress theme. I think the first method is the best; but I do not know exactly how to do it... After copying the plugin to the ...
-1
votes
0answers
10 views

How to retrieve metadata from a term in custom taxonomy

I'd like to get a meta value of a meta field from terms in a custom taxonomy. I started with retrieving all terms: $customTerms = get_terms('ss_category'); Each term from ss_category has multiple ...
0
votes
0answers
12 views

Checked() function on a multidimensional array

I am generating checkboxes dynamically on one of the option pages. This the code that I'm using to create multiple checkboxes: <?php foreach($shopCategories as $shopCategory) { ?> <input ...
0
votes
0answers
19 views

I am trying to add custom-fields to a post carousel plugin

I have a post carousel on my website.I am trying to add an option to display custom fields. I looked at the code for the carousel and I tried to add my custom-fields option. I am not getting a display ...
-2
votes
0answers
12 views

Exact number installs of a WordPress plugin [duplicate]

Is there a way to know the exact number of installations of a wordpress plugin. I would like to know about this one I just released Woocommerce - Products By Custom Tax
2
votes
1answer
66 views

How to customize user search

I'm developing a custom user search and I'm using this plugin found here: <?php function sul_user_listing($atts, $content = null) { global $post; extract(shortcode_atts(array( ...
0
votes
0answers
37 views

Shortcode error

I've created a plugin that includes the shortcode below, it works fine one website ( http://www.porministries.org/wordpress/?page_id=16 ) but not on another website ( http://www.rccov.com/media/ ). I ...
0
votes
2answers
31 views

How to add category and subcategory in WordPress custom code?

I create custom plugin for import categories. now i have categories array from api.but when import categories into my wordpress woo commerce means not working. My code is given below. public ...
0
votes
1answer
21 views

Retrieve contents/page names of various pages for use in a plugin

I'm trying to design a plugin that retrieves the contents of user selected pages and copy the contents into a giant single page. (As long single page websites are trendy right now) These are the ...
0
votes
1answer
29 views

Using init hook for register_taxonomy is causing invalid_taxonomy in wp_insert_term()

I'm developing a plugin and I've problem with inserting new term to my custom taxonomy. <?php add_action('init', 'create_tax', 0); function create_tax() { $args = array(...); ...
0
votes
1answer
26 views

How to get html tag ids from template?

I'm new with WP so I need advice. I'm workig on plugin where is required adding some new atrributes to selected div or paragraph. Is there any way how to get html tag (DOM) IDs from current template? ...
0
votes
0answers
15 views

How to save array of objects in wp_options table?

I am creating a Wordpress plugin, where I need to save data in following format in wp_options table: array ( array( 'product_name'=> 'iPhone', ...
0
votes
1answer
20 views

Issue regarding $wpdb->prepare()

$wpdb->prepare() is adding single quote ('') like below. I am using below code $sql = $wpdb->prepare("SELECT * FROM %s ",$table_name); echo $sql; I am getting output like below SELECT * FROM ...
1
vote
3answers
30 views

Get all options saved by another plugin

I'm developing a plug-in that adds the possibility to import/export settings from another plug-in. However, I don't have access to the options ids saved by that plug-in. Is it possible to get all ...
0
votes
0answers
9 views

Re use the list table for a custom post type on another page

i've got a custom post type which is 'ai1ec_event'. So i have a "All events" page which has a Wp_List_Table with all my events and my customization to that table. Is there a way to draw the same list ...
0
votes
0answers
15 views

unzip a folder on specific location and delete the zip file

After the lots of search. I am deciding to post my question here. Basically i want to upload a zip file in my wordpress site from my admin panel. And also extract this file to specific location with ...
0
votes
0answers
21 views

How can I trigger the media library “query-attachments” action manually?

I'm working on a plugin that manipulates the WordPress 4.0+ Media Library. I see that the attachments in the media library are loaded by an ajax call using the query-attachments action. I need to ...