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

custom widget youtube video url as string

Hi I am trying to develop a Youtube widget for wordpress that has a simple back end that allows the user to put the title and the url. I then have a modal which displays the video when a button is ...
0
votes
1answer
562 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 ...
2
votes
3answers
59 views

Cannot access current post's ID in custom plugin

I have a plugin that prepends an upvote box to the_content of a single post, sends data via AJAX back to the main plugin PHP file and calls a function to update a database value on success. Here is ...
0
votes
1answer
58 views

woocommerce single product page hook not working

I have written a function which will display a date picker and a select box. I want this function output to be displayed on woocommerce single product page. So I assigned my function to a hook ...
0
votes
1answer
20 views

Custom post type single page return to listing page

I am working on a plugin. In plugin, i create the files that move into theme folder after plugin activate. The files move in active theme successfully. I use template_include to include my files from ...
0
votes
2answers
377 views

Can I show also the post date using the wp_get_archives() function?

I am pretty new in WordPress theme development and I have some doubt about the wp_get_archives() function: http://codex.wordpress.org/Function_Reference/wp_get_archives In my website I have create ...
0
votes
1answer
693 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
806 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 ...
1
vote
1answer
50 views

Adding content before the loop in category pages

I am creating a plugin and I want to show all sub category list in the top of every category page. I had created a function and call "wp_list_categories" in that function. The problem is when I call ...
0
votes
0answers
11 views

Implementing plugin with HTML/CSS form?

I am working on my first WordPress plugin. On the browser side some html/css/jQuery code implements a simple popup dialog form. The user enters a text field, clicks on a button and an ajax call takes ...
0
votes
1answer
23 views

WP Dropdown Categories, display subcategories but not grandchildren categories?

So my main goal is to create 3 drop-down category options to run a search. It's for a car website, so I have 3 parents, "Make", "Model", and "Year" At the moment I have the following code <?php ...
0
votes
0answers
11 views

jQuery wp_dropdown_categories?

I'm trying to make a search with 3 options that are parent categories. Make, Model, and Year. "Model" is dependent on "Make", When Make is selected The models should display the grandchildren of the ...
0
votes
1answer
29 views

Best way to retrieve data in custom api extended from wp-api

I have extended WP API plugin to provide an API which can process documents. Routes public function register_routes($routes) { $documents_routes = array( '/v1/documents' => array( ...
0
votes
0answers
15 views

common responsive way to display Tabs in Backend for Plugin Options on mobile devices?

I am writing a plugin, which uses tabs in the backend-view, to have better overview of similar option pages for all days of a week. I am using the nav-tab css class and <h2 ...
2
votes
2answers
577 views

Multiple files in wordpress plugin

I'm trying to write a plugin with multi 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 - ...
2
votes
1answer
668 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
145 views

Google does not index data from custom table used for a plugin

I've got an online shop plugin (made on my own) which uses custom tables for storing data about products. For list of product and for product detail I created WordPress pages and used shortcode to ...
0
votes
1answer
26 views

Plugin Works, but Widget Doesn't

I really haven't got a clue here. I've been busily developing a custom WordPress site, using custom plugins and widgets for some of the custom functionality, and I've hit a snag. No matter what I ...
0
votes
2answers
675 views

AJAX request not routing through proxy

I've built a plugin that uses AJAX to post a URL to the URL2PNG API and bring back a screenshot into WordPress via wp_remote_get. It works beautifully in my development environment. In production, ...
0
votes
1answer
21 views

How to get terms for taxonomy

how to get all terms for my taxonomy customcategorie i tried with this code i tried to keep code in taxonomy.php <?php /* Template Name:Taxoo */ get_header(); ?> <?php $term = ...
0
votes
1answer
24 views

Wordpress Widget Not Saving Instance

I have very simple wordpress widget, that has 3 input field. Whenever i submit data, it does not save to database. I have added and deleted the plugin , deactivated and reactivated multiple times, but ...
0
votes
1answer
2k 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 ...
0
votes
2answers
39 views

How to add image for custom taxonomy

I was trying to add category images for custom taxonomy I am using this plugin taxonomy-images but I don't know how to get that custom taxonomy image I tried to keep print apply_filters( ...
0
votes
1answer
28 views

Copied files from plugin to theme not working

I am working on a plugin. In plugin folder, there is a folder 'template' from where i copied the files and paste into 'my_folder' in active theme. They move perfectly. Now when i editing files from ...
0
votes
2answers
25 views

How to get variables from fucntion.php to my plugin files

I have written a function in functions.php that gets variables from a contact form and sends the inputs (and some other info like IP and location..) to my email. I am starting to work on my first ...
3
votes
1answer
2k views

How do you create a custom edit.php / edit pages page

I need to create 3 custom edit.php pages which only display pages with a certain parent and the Post New button links to a new page with the corresponding parent. The closest answer I can is do not ...
5
votes
2answers
3k views

What are the differences between WPINC and ABSPATH?

It's common for plugin developers to protect their plugins from direct access. I saw two ways to do that: if ( ! defined( 'WPINC' ) ) die; and if ( ! defined( 'ABSPATH' ) ) exit; What are the ...
0
votes
0answers
15 views

Registering an optional custom post type from a plugin

I see the codex notes to call flush_rewrite_rules() on plugin activation and deactivation when registering a custom post type from a plugin but I'm looking for the best practice if a plugin gives ...
1
vote
0answers
20 views

How to create a custom post type that contains another custom post type?

I want to create a custom post type 'A', which will contain multiple post types of post type 'B', and custom post type 'A' is a series of post type 'B', so I'd like the edit page of post type 'A' to ...
0
votes
3answers
63 views

Can I create a table on my DB without creating a plugin?

I have a built in form I created on my WP website . I want to store the inputs to a table on my DB. All tutorials that explane how to create a talke include the fact that I have to create a plugin ...
1
vote
1answer
38 views

How to post data to same page in wordpress

I am trying to submit form and get that data in same page when i used the_permalink i am getting page not found i used this code <?php /* Template Name:testing */ if(isset($_POST["name"])) { ...
0
votes
1answer
12 views

API Functions to Register and Show WordPress List Tables

I am developing my own plugin and I am trying to figure out how to add WordPress List Tables to my admin page. I am aware I can write the the HTML myself but if there is an API method this is the most ...
1
vote
3answers
2k 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
24 views

$wpdb how can i save my postmeta table before querying it

This function is in my functions.php file. The query returns the value I'm looking for via phpmyadmin, but only AFTER the function has been run in WordPress. add_action( 'transition_post_status', ...
0
votes
0answers
30 views

create dynamic checkbox in tinymce wordpress editor button

I am trying to create dynamic checkbox in wordpress editor icon button. when i click on icon pop-up is open and i need to create dynamic checkbox.below is the code. where is i am making mistake ...
0
votes
0answers
24 views

Add custom filter to register data in array

I would like to register a multi arry of data in a plugin and allows any developper to add new value to the array. This multi array contains a name, and different value like this: class ...
0
votes
0answers
19 views

How to show a Progress Bar when a plugin is doing some processing in Wordpress

I'am new to WordPress plugin development and I'am developing a plugin which sends messages to all subscribed users when a new post is published. Plugin is complete and its sending messages to all ...
0
votes
3answers
742 views

How to store accumulate multiple option values in a single array using Options_API

I have created an option array that stores a series of options, along with their values. The problem is that I want to ACCUMULATE these options and store them in the options database. Meaning I would ...
0
votes
1answer
33 views

Issue with wp_handle_upload

I am trying to upload a zip file from Setting Page. I have designed a setting page and in that I have a file upload functionality. I am using setting API to do this. My issue is: I know that maximum ...
1
vote
2answers
133 views

Plugin not saving values when placed in a folder within /wp-content/plugins

Ive got the following code for a WordPRess plugin that essentially add two custom inputs on each page/post edit screen. The values are then saved and output in the header of the frontend page. The ...
0
votes
1answer
163 views

WP AJAX is not working, always returns 0

I've checked any threads here regarding this and did a debug test which worked, I'd like to understand why my own code doesn't work as it presents the same functionality explained in every possible ...
0
votes
0answers
38 views

Create Database Tables on Plugin Activation hook

My function which have code for table creation function hotel_install() { $path=ABSPATH . 'wp-config.php'; require_once ($path); global $wpdb; $charset_collate = ...
0
votes
0answers
16 views

How To Display Admin Toolbar On Custom Template

I am trying to get the admin toolbar to display on a custom page. I am using a custom php file for this. The basic structure of the page is like this and this will display the basic structure of my ...
0
votes
0answers
36 views

Ajax Vote Plugin e.preventDefault not working

I tried to build a plugin with which i can let users vote for articles so i can track kind of 'likes'. The Ajax works fine and I use a link as a trigger. Somehow every time I click on the link (which ...
1
vote
1answer
43 views

admin_notices hook show message all admin pages after plugin activate

I am working on a plugin and in plugin i use admin_notices hook for showing my custom message. When a user activate plugin the message show blew the plugin activate successfully, but my message shows ...
4
votes
3answers
17k views

How to include wp-load.php from any location?

I have a plugin which calls a stand-alone php script (myAjax.php) via a jQuery.ajax() script inside the plugin. I need to place the following code into the myAjax.php file: ...
0
votes
1answer
25 views

Let user override plugin CSS

I'm writing a plugin, which has a certain style. However, that style won't suit every site. therefore, I would like to let the site admin override the plugin CSS if they want. How would I go about ...
0
votes
0answers
18 views

Custom Front End Profile not saving custom contact info

I have a plugin I've created for specific types of user functions. This plugin adds additional custom fields to the user profile and a front end profile page (subscribers do not see the admin bar and ...
1
vote
1answer
36 views

Get all of user's custom post types in WP Admin for plugin

I am making a WordPress plugin and hit a rough point. I'm trying to make it so a user can select from all their post types, including custom post types. The code I have below shows the post, page, and ...
0
votes
0answers
39 views

Inactive Plugin Files

One of my plugins have some files that are inactive. I did some googling and found out that this is caused by editing files while the plugin is still active. OOPS, guilty. I then deactivated and ...