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)

-4
votes
0answers
11 views

Use pagination with form stack data

i am using form stack json data to view on my admin side area wordpress,my default data per page is 5 but it will show 8 on my front page . Please tell me how to use pagination when data retrieve from ...
2
votes
2answers
41 views

Page Reloads Before AJAX Request Finishes

I am working on a WP plugin, and I need to be able to call a URL (specifically an AJAX function) using a button click, but the page refreshes after clicking it, which I think is preventing the AJAX ...
2
votes
3answers
4k views

Custom height/width for thickbox in WP Backend

I use thickbox in the WP backend for preview or other content. On own pages in the backend works my script very fine and a can use custom width and height for the thickbox. below my code: ...
1
vote
1answer
26 views

How to use a hook to override an update_post_meta call in a plugin?

A plugin I'm using contains the following code: $download = array( 'post_title' => $title, 'post_content' => '', 'post_status' => 'publish', '...
1
vote
1answer
686 views

How do I alter the position of a Custom Post Type menu item within my plugin admin menu?

I'm writing a plugin (for the first time, so bear with me!) which includes a custom post type; 'Programmes'. In the admin menu, I've set up a new menu group for the plugin, and I have the 'Programmes' ...
0
votes
0answers
30 views

How to change the capabilities from upper case to lower case, while inserting onto database?

I am trying to insert custom user roles like Student, Teacher and Parent. While inserting the capabilities into the database, it is displaying the role in uppercase. I am not able to fetch the user ...
6
votes
3answers
166 views

Where to store plugin settings fields

I am developing plugin right now, and I have one questions about best practices and conventions. What I need ? My plugin is going to store some predefined object, list of objects (or just ...
0
votes
1answer
37 views

Set a Custom Post Type as a Homepage

Im trying to set up a custom post type single post as a homepage. I have custom plugin, it registers CPT called STACKS, Im using it to build various one page scrolling pages... It has its own custom ...
0
votes
1answer
269 views

Custom Post Type template for homepage

I'm writing a squeeze page plugin and I've hit a bump. The plugin needs to be able to display custom post types with a custom template and also be able to be used for the homepage. So I've got the ...
0
votes
0answers
28 views

I can't add data from wordpress admin to database

I want to add some text from a textbox in admin to database. I've crated a table in database and now I want to check nonce and if everything was right, submit data to database. I've used this code ...
4
votes
4answers
4k views

Empty POST data on server on AJAX request using Angular $http

I use AngularJS to build an AJAX form which is then processed on a server running Wordpress. Server-side handler is simple: function rnr_contact_callback() { $name = $_POST['firstName'] . ' ' . $...
0
votes
0answers
33 views

How should I share my plugin error with the end user (frontend)

Let's start by saying that I'm a total wordpress noob, I've googled and searched a little on Stack Overflow and I can't seem to find the information I'm looking for; a big part of that is I'm not ...
1
vote
2answers
42 views

Custom plugins/Manipulated plugins: Always a terrible idea to inherit these types of WP sites that discourage updates?

So I have been working on WP sites for a little bit now and I think I'm getting to the point where I'm starting to get to a wider range of clients with unique site builds. One site I was assigned to ...
1
vote
2answers
33 views

Install and load additional plugins when running unit tests

I want to write unit tests for a plugin. I have used WP-CLI to scaffold the test WordPress instance and can successfully run tests. The plugin I'm writing unit tests for is a site specific plugin ...
0
votes
1answer
30 views

Theme independent plugin by using default page template

I'm trying to build a plugin that can be used within every theme. It uses a custom post type and i used the action hook to change the content, so i could use extra meta fields and such. Also explained ...
0
votes
1answer
27 views

Include a php file from another plugin

Inside one of small custom plugins I really need to inlcude a file from another plugin, in order to be able to create and save obhect of a class that is declared there. What I have tried and the ...
1
vote
1answer
24 views

Putting a resized image into media library with wp_get_image_editor(

I'm using wp_get_image_editor() to resize and save an image that is being uploaded to the Media Library. $image = wp_get_image_editor( $newattachment_url ); if ( ! is_wp_error( $image ) ) { ...
0
votes
2answers
3k views

What is the proper way to get logged in user id in a plugin?

I need to get logged in user id inside my plugin. Is this the proper way? $root = dirname(dirname(dirname(dirname(__FILE__)))); if (file_exists($root.'/wp-load.php')) { require_once($root.'/wp-load....
3
votes
1answer
33 views

Set number of article per number of page

I'm making a timeline using this awesome free theme. As you can see in this theme, it's a timeline separated by "Page". We have "Page 1" with 5 articles, "Page 2" with 5 articles, etc ... I changed ...
0
votes
0answers
22 views

get selected Option value in Dropdown selection

I want to store some Custom User Meta in Edit User Form. i but i cant get it working :/ Here is the following code add_action('show_user_profile', 'add_extra_berufe'); add_action('...
0
votes
2answers
23 views

API to filter new user registration $POST data?

Is there an add_filter where you can see/modify all the $POST data submitted for a new user registration before the user is created? Thanks
3
votes
1answer
58 views

Add rewrite rule to permalink structure

I have a Custom Structure setup for posts in Settings > Permalinks as: /%category%/%post_id%-%postname% This works great for most of my posts, but there is one category that I want to remove the ...
0
votes
1answer
23 views

Hook for plugin to show content for certain urls

New to WP development. I want my plugin to dynamically show content for certain urls, for example, when the user navigates to /my-plugin or /my-plugin/key, my plugin would provide the content. The ...
1
vote
1answer
694 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. ...
0
votes
0answers
21 views

Grabbing data from Meta Box

I am using someone elses code for uploading files to a custom post type, and I need to be able to get the URL back from it. In the editor, the value is the URL so that isn't an issue, but I need to ...
0
votes
2answers
428 views

I am using multi image metabox plugin but I did get how to display the images in templete?

please help me... here is plugin url http://wordpress.org/plugins/multi-image-metabox/ I am using this plugin but after uploading images. I need to get those images on template... code to display ...
0
votes
1answer
3k views

How to access global variable $menu inside a class function

am puzzling why can't i access the global variable $menu inside a php class function class adminMenus { public function getWPdefaultmenus(){ global $menu; return $menu; } } using ...
1
vote
0answers
44 views

Using ReactJS in the WordPress admin for plugin development

I have some WordPress plugin projects planned which would benefit greatly from using ReactJS in the WordPress admin. I'm pretty sure I can get ReactJS working in the admin but the sticking point is ...
1
vote
2answers
42 views

Update problem with update_option() in combination with register_setting()

Intro I have a settings page which includes a setting with a more complicated callback function to save. Save data To save the data I use the register_setting() function with a custom sanitize ...
-4
votes
1answer
35 views

How to pass data from one page to another in plugin

I have created a filter plugin in which I have created two shortcodes. The filter should show in two pages. I have created two pages in WordPress from the admin panel. I have included one short code ...
1
vote
1answer
43 views

Does flush_rewrite_rules() remove all rules added by other plugins as well as mine?

I am developing a plugin, and am using add_rewrite_rule followed by flush_rewrite_rules during plugin activation. On plugin deactivation I am using just flush_rewrite_rules to remove the rule that I ...
1
vote
1answer
5k 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 ...
1
vote
2answers
34 views

OEmbed from Pinterest

I'm looking for a way to show a certain pinterest pinboard in a post. I've found in the WordPress.com Documentation that you can simply post your pinboards URL there. This is not possible on a ...
0
votes
1answer
24 views

Wordpress Plugin: OSCommerce images not displaying in front end

The below code is wordpress custom plugin code. I am trying the code from below link: http://code.tutsplus.com/tutorials/create-a-custom-wordpress-plugin-from-scratch--net-2668 <?php if($...
1
vote
2answers
86 views

how to set default value for checkbox in wordpress

I am facing a problem to set default value for the checkbox field in WordPress. I have a checkbox input field (metabox) in a custom post. I want the checkbox to be checked by default. and if user ...
0
votes
2answers
30 views

wordpress plugin require_once file - can't user wordpress functions

I read a lot about the require_once in stackoverflow. But no anwser solved my problem. I've a plugin with two files. dmd_main.php //main file dmd_second.php //some WP functions In my main file I'...
0
votes
0answers
24 views

Can't get get_delete_post_link to work correctly

I am using WP_Query to to list all of a certain CPT for each user. Everything is being displayed correctly, but for some reason get_delete_post_link isn't returning anything. Does anyone see what ...
5
votes
2answers
51 views

Overide get_template_part( 'partials/post', 'sidebar' ); with a plugin

I am working on a site for a client who has a theme built for them by a different developer. They have asked me to make some changes to the site, and I'd like to put all of my changes into a plugin as ...
5
votes
1answer
32 views

Customizing subject in comment notification e-mails

How do you customize the following code in functions.php in order to have "New comment" as subject in comment notification e-mails instead of the default WordPress subject? function ...
0
votes
0answers
45 views

How do I use TCPDF to make a PDF Generator plugin?

I need to make a portion of a Wordpress site able to be converted into PDFs, using a specific already-made design. I have the template built out with TCPDF (because I need customizable page breaks), ...
0
votes
0answers
13 views

How to create nested metabox

I am creating a plugin and in that i want to create a nested repeatable meta box. I have trying create it but not getting any success. Bellow is the code i am using. It works correctly for single ...
0
votes
2answers
2k views

How to append new form elements in “Add New” form of Users in Wordpress admin panel?

I'm developing a WordPress plugin and I want to append some extra form fields in add new form of Users section inside admin panel without editing core files. Can somebody help me in achieving this.
0
votes
1answer
45 views

Change Page title when Pagingation the posts

I just changed the title tag in the header.php like this <title><?php if ( $paged < 2 ) { } else { echo (' Page '); echo ($paged);} ?></title> Just want to change the title ...
2
votes
2answers
758 views

Multiple files in a plugin

I'm trying to write a plugin with multiple files. I'm sure I did it before without a problem, but now I have the problem in the subject. In the main plugin file I have included a file name - ydp-...
1
vote
1answer
643 views

How to get Login Error messages on a custom template

I want to display login form and process the login on the same page, so that if there is any login error it should display the error messages on the same page. I have added this function: add_filter(...
3
votes
1answer
20 views

What function to hook for changes made in status and visibility of a post

I have a function to run every time a post is published or updated in anyway. Right now I am doing function myFunction(){ //Do Something } add_filter('publish_post','myFunction'); add_filter('...
1
vote
1answer
38 views

How to show phpinfo() only in a new tab?

My problem is that I want to add a link to my plugin which should direct the admin user to a new blank page which shows phpinfo()? Can anyone direct me how to do this? I know WordFence has a feature ...
2
votes
2answers
3k 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
30 views

Acessing WP functions in form submission handler

I have a form which is embedded in a custom post type. The form action points to a PHP file that sits in my mu-plugins directory: <form action="http://www.foo.com/wp-content/mu-plugins/FormCode/...