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

Multiple entries in get_option results? or why is _multiwidget set to 1?

I am developing a wordpress widget, and need to store some user configuration values, that is why I am using wordpress update_option and get_option. I am new to widget development. I have some ...
2
votes
2answers
406 views

Get image URL from media library in input

On wp-admin/post.php?post=447&action=edit for example I have a link and an input. The link appears as follows: <a href="#" class="button insert-media add_media" data-editor="tj_image_url" ...
4
votes
3answers
156 views

Standard location for plugin to save/cache files?

Are there official guidelines on where a plugin should cache files? If not, is there a best-practice out there that I can follow? For example, a plugin grabs content from a back-end system ...
0
votes
0answers
14 views

Pick / Change Avatar [closed]

I want the user to be able to Pick an avatar from images I provide from my images. So he's ONLY able to pick from what I give him, and not able to upload it. something like: Choose Avatar. Folder ...
0
votes
1answer
19 views

How to list all images used on a specific page?

How do I list all the image(s) used on a specific WordPress page. I would like it to include the following if possible, Url to image Name of image Url to thumbnail of the image [Edit] I would like ...
-3
votes
0answers
28 views

I have a wordpress theme, which is generating error when I run Theme Check Plugin - [closed]

I am not a Programmer, but a Marketer. I have a wordpress theme, which is generating error when I run Theme Check Plugin - admin/options-framework.php The theme appears to use include or require. If ...
1
vote
2answers
3k views

How to put placeholder text in the main post input area?

I'm making a course plugin for a university in England. I'm looking to put some default placeholder text in the main post content area, on the admin side. Its the rich text editor I want it to go ...
0
votes
0answers
10 views

Make woocommerce booking extension automatically bookable on products [closed]

My Question is to automatically make all the products set to bookable using Woocommerce Booking Extension by Woothemes. I just purchased this expensive plugin but i want to make ALL products bookable ...
0
votes
2answers
31 views

Create fixed static pages

I have inside a theme two important static pages. One is a confirmation page (after signing up for a newsletter) and the other one is a thank-you page. I am using these in various functions and ...
48
votes
18answers
4k views

WPSE Plugin Repository: The plugins that came out of WP-Answers

Link your WPSE-Plugins If you answered a question and made a plugin out of your code, than this is your place to share it. The Idea: An old comment from @MikeSchinkel during the beta phase where he ...
0
votes
0answers
22 views

Get posts from other blog with common tags? [closed]

i want to get 5 posts from an other blog with common tags with current post and show it on my website.
0
votes
0answers
9 views

Using WP Head to hook into a specific part of the header?

This is my first plugin. I'm trying to add a tagline underneath the logo. I'm using this code in the plugin: add_action('wp_head', 'tagline'); function tagline() { //Close PHP Tags ?> ...
0
votes
2answers
21 views

trying to create simple plugin to filter categories from all authors

i want to restrict all authors to spesific categories i already done it but via theme function.php, i trying to build as a plugin: this my plugin content: <?php /** * Plugin Name: My Restricted ...
0
votes
1answer
13 views

Plugin files not updated (cache cleared)

I'm manually uploading a plugin that I created, but no changes take effect and the file editor shows no changes unless I change the filenames within the plugin. I've already tried doing this while ...
0
votes
0answers
12 views

Creating menu not working with OOP Plugin

I am trying to create a test plugin to practice my OOP with WordPress, I am trying to simple add a menu item into the WordPress admin section. When I activate the plugin it should add the menu item ...
0
votes
0answers
21 views

Nothing wrong with SQL but still getting an error

I'm developing a plugin and I need to perform a SQL query with GET parameter. The code looks like this: if (!empty($_GET['editDoc'])) { global $wpdb; $id = $_GET['editDoc']; $table_name ...
1
vote
1answer
22 views

Wordpress custom taxonomy check box to dropdown

Hi my custom taxonomy name is country.In this A is a country, a-sub1,a-sub2 are states under A. b-sub1,b-sub2 are state under Country B. Now i need to display the country list(parent) box and state ...
1
vote
1answer
9 views

Custom Taxonomy to dropdown box on adminside wordpress

Can I create a country- location hierarchy using custom taxonomy on admin side. When selecting a country from select box , an another box should see the list of location comes under that country. And ...
1
vote
0answers
44 views

template_redirect or admin-ajax.php?

My plugin needs to be reachable by the public and accept query vars. When called, it will run some backend db tasks, call a 3rd party API and sometimes redirect. Previously, I was using ...
0
votes
0answers
24 views

$wpdb not working in file of WordPress plugin

I am working in WordPress plugin. I create a custom form where user add values and then click on submit button. When user click on submit button its redirect to custom process file, where i write ...
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
10 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
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 ...
1
vote
1answer
604 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
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, ...
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 ...
5
votes
4answers
780 views

How to control output of custom post type without modifying theme?

I have a custom post type 'properties' that I'd like to control the HTML output for. For simplicity, let's focus on the archive view. As a basic example, here is what a loop looks like in an ...
0
votes
2answers
1k 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
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
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
1answer
98 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
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
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 ...
1
vote
1answer
1k views

Add async script

I am working on a plugin that has to inject a script on pages (something like RefTagger), which would be easy using wp_enqueue_script, but there are two reasons I cannot do that: the script tag has to ...
3
votes
1answer
96 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 ...
32
votes
13answers
3k 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 ...
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
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
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
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
556 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
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 ...