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
1answer
32 views

Show Templates in Custom Post Type Editor

I know I can use templates for my custom post types like this: http://codex.wordpress.org/Post_Types#Template_Files But I would like to have a dropdown menu to choose a template, like that when you ...
0
votes
0answers
16 views

Change user role via URL [WordPress]

I'm creating plugin which will register all new users as role = unverified and stop user from login until email verification. I want to send url on their email which will change the current unverified ...
0
votes
2answers
35 views

wordpress ajax contact form - error 500

I've tried to create a simple ajax contact form plugin. all things seems good till user push the "send" btn. it sends error 500. this is my script.js codes: jQuery(document).ready(function(){ //Get ...
0
votes
1answer
8 views

Can calling wp_enqueue_style in wp_iframe apply the stylesheet to everything not just the iframe?

I am currently discovering a problem where a wp_enqueue_style call in wp_iframe is causing my page to break due to the CSS overwriting some of the parent CSS outside of the iframe. ...
0
votes
1answer
13 views

call_user_func_array() error after moving to another server

I've just moved my WP site from one server to another and my custom post type plugin is causing the following error: Warning: call_user_func_array() expects parameter 1 to be a valid callback, ...
1
vote
3answers
258 views

Widget Admin - Form Submit Event?

I'm creating a widget, and cannot figure out how to get an event right before the person clicks "save" or presses the enter button on the widget admin panel. What would be the javascript code to get ...
0
votes
0answers
31 views

Remove Action from plugin class

I am trying to remove the action 'render_product_message' from the woocommerce points and rewards plugin. I tried many different ways that I found from other questions. woocommerce points and rewards ...
0
votes
1answer
14 views

Glyphicons Dont Show in WordPress Plugin Only

I have a very simple WordPress plugin that shows a menu/admin page. The page contains Glyphicons - Font Awesome. These glyphicons are never showing. I cannot figure out why because I know the ...
0
votes
1answer
17 views

How to limit the number of posts a user can view based on status

I would like to create the subscriber system with the following status for the user: active and pending. So, for the pending status user only can read 3 articles for free. I created using php file and ...
0
votes
1answer
16 views

Custom post type not being pulled in widget

I am creating a widget that displays data from my post type 'testimonials'. The back end of the widget is working fine and displays a list of testimonials and allows me to select which I want to ...
0
votes
0answers
12 views

Wrapping main content area of the blog page with a div by action or filter hooks

I used loop_start and loop_end hooks to wrap the main loop to load posts. But the problem is there are recent posts and category sections which is also getting wrapped up. I only want to wrap the main ...
0
votes
0answers
22 views

Able to override wordpress core functions using my plugin

I am trying to override the WordPress media editor interface to apply my own editor. I included an image of the WordPress media editor and circled in blue what exactly I want to replace. Is there ...
3
votes
1answer
95 views

Problem requiring/including plug-in files with plugin_dir_path( __FILE__ )

I am trying to write a WordPress plug-in. In my project I have three PHP files. My plug-in file Widget for the plug-in Data installation I need to install data table on plug-in activation. For ...
0
votes
0answers
33 views

Template file structure , wordpress hook for altering the template

i need to convert a html structure to theme. So this is my html structure <html> <head> ................. </head> <body> <div class="main"> <div ...
0
votes
0answers
13 views

How would I be able to change the css of the Image Editor in Wordpress through my plugin?

I am looking at modifying the css of the Image Editor in Wordpress for my plugin, but it seems I am having difficulty doing this. The image editor interface function is located in ...
0
votes
0answers
19 views

add one more publish/update post button

I'm here with a issue regarding my plugin... I've added a menu that should serve as a floating quick-action menu.. For example i would like that if you click the save button it will save the current ...
0
votes
0answers
9 views

Use syntax highlighter in plug-in options

I am a plug-in author and need to have a simple CSS editor in my plug-in options page. what is the best way to do this? At now my plug-in just show a simple textarea, but I need to make it ...
0
votes
1answer
52 views

woocommerce blank page after clicking add to cart [closed]

I am building a custom plugin based on woocommerce. As a part of this development I have added few custom fields to single product page at woocommerce_before_add_to_cart_button hook. These fields will ...
0
votes
0answers
17 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
42 views

How to change the price of a Variable Product? [on hold]

I'm developing a plugin by which an admin can change the price of products through the plugin's main screen. For "simple" products I'm using the following code: update_post_meta( $post_id, '_price', ...
0
votes
1answer
53 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
19 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
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 ...
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 ...
2
votes
3answers
56 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
33 views

Unable to show 4 products in a row

Above is my shop page, I want to show 4 products in a row, But after adding filter for 4 columns in functions.php, This problem occur. If somebody go to direct my shop page everything is fine, but ...
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
22 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
1answer
28 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
14 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 ...
0
votes
1answer
35 views

Worpress permalink setting

I have a doubt. If book is my custom post type, language is my taxonomy, english is the item in taxonomy , Harrypotter is new post in book with txonomy english. Then how i get the url structure like ...
0
votes
1answer
19 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

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
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
2answers
32 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 ...
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
36 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
0answers
23 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
29 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
23 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
18 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
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 ...
0
votes
1answer
32 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 ...
0
votes
0answers
36 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 ...