Plugins are tools to extend the functionality of WordPress. This tag should not be used to mark requests for plugin recommendations, which are off-topic per the FAQ.

learn more… | top users | synonyms (2)

0
votes
1answer
30 views

Where are theme codes located for WordPress?

New to WordPress. Searched this site and google for an answer to this question; can't even find a mention of what theme codes are. I'm being told by a plugin to alternatively add a line of code to my ...
0
votes
1answer
31 views

What makes it possible for a plugin to not able to delete?

When I tried to delete a custom-made plugin, the admin wordpress page became a plain white screen with no error messages. What causes this to happen?
0
votes
1answer
4k views

Use conditional logic for woocommerce variable product

I have been developing a woocommerce store. Now I have a requirement from client which I can't figure out how to do... The problem is we can use variable product in woocommerce, it's simple but what I ...
0
votes
1answer
22 views

Types plugin custom post add_action hooks

I'm using the wp-types plugin to create a custom post type. I'm developing my own plugin which I need to fire whenever a post of my custom post type is updated. Right now add_action( 'save_post', ...
0
votes
0answers
23 views

Not including wp-load.php in plugin

Okay, so I'm trying to get a plugin approved, and I've fixed most issues except the fact that I'm using require_once to load wp-load.php. I create a button in the admin bar, and there is a javascript ...
0
votes
0answers
16 views

Hierarchical page parent dropdown menu

I wanted to create a three level dropdown menu for page parents as metabox in the edit screen for pages. I managed to do this to this level: <?php add_action('add_meta_boxes', ...
0
votes
0answers
7 views

check server config prior to plugin install

Say I wanted to make it so that a plugin couldn't be installed or activated if the server didn't have a requisite PHP extension installed (eg. libpdf or whatever). How might I do this? Is it ...
0
votes
0answers
6 views

How to avoid the product's limit for taxonomy in WooCommerce?

Recently I'm faced with an interesting effect which seems to go with default settings. When you just display products in mixed order it's ok, but when you're trying to create custom category for them ...
1
vote
1answer
495 views

wp_specialchars and wp_specialchars_decode in a shortcode plugin

I have written my first plugin, a shortcode plugin. I have read about wp_specialchars and wp_specialchars_decode but I'm not sure how to use them. The plugin read a shortcode allowing some parameters ...
1
vote
2answers
375 views

Moving image attachment from post to another?

How to move image attachment from post to another (not to "Remove Permanently" and Re-Upload) ? I'm using WordPress 3.5.0 and I have a thousand images to process. Is there a built-in function for ...
0
votes
0answers
16 views

Form not saving to db table

I am trying to create a widget that saves to the db but its showing fine and displaying the thank you page but for some reason its not saving the data do i have the proecedure in the wrong place. ...
0
votes
0answers
11 views

How to code so the calendar widget so that each day on it is a link straight to that day's post?

I have a blog in which I post no more and no less than once per day. Every day, one post, and they're all named accordingly like this: http://everydaypoetry.net/03/31/2015/03312015/. I'm currently ...
0
votes
0answers
10 views

Require example how to edit a record in wp_list_table [closed]

I was wondering if any one had an example of how to implment an edit form and add form to wp_list_table i been following all the turials so far and got it going to blank page but its just going to ...
0
votes
0answers
38 views

Ajax Issue adding product options to cart [closed]

My store is not allowing me to add product options to cart, I believe this is an Ajax issue with a plugin but I don't know whats going wrong here with it. The source code for the plugin is as follows. ...
2
votes
0answers
64 views

How to write 'safe' plugins?

We have reports that our plugin did result in a blank page after installation, and we've got also bad and unfair ratings just for that. Those users don't seem to be able to read install instructions ...
0
votes
0answers
18 views

How to copy a post using Duplicate Post plugin from frontend only [closed]

I'm trying to get the Duplicate Post plugin to function from only the frontend for my users. I have used user role editor to allow members to post from the frontend, and restricted the backend access ...
2
votes
2answers
347 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" ...
0
votes
1answer
915 views

Action hook “wp_insert_post” works but not for last imported post

I want to run a custom function whenever posts are imported to my custom post type. I am currently running this code - function on_post_import($post){ global $wpdb; $results = ...
0
votes
2answers
475 views

Can't Update, Delete, install Plugin

I can't solve this problem. This started after I created a new sub domain. I can't update my plugins, install, delete. During an update it says "successfully update". After I goes back to my ...
0
votes
0answers
13 views

Why is a plugin (Carousel anything) not loading until refreshing the page? [closed]

The plugin Carousel Anything loads properly the very first time the website is opened. But, when clicking another section, let's say "Acerca de mí" (still unfinished), and then click back to "Inicio" ...
2
votes
1answer
81 views

How to add rewrite rules and pagination to retrieve attachments files?

I'm trying to list attachments based on different taxonomies. Right now it only work for the basic url (no pagination added). For example ...
52
votes
7answers
5k views

Updates for a private plugin?

If I write a private plugin, is there any way to use the WordPress auto-update mechanism to update it? I want to encapsulate the functionality, but it's specific to my own 5 or so blogs, so it's not ...
1
vote
4answers
198 views

How can I execute some small piece of PHP code in a sandbox area of my WP?

I'd like to execute some small piece of code like the following one: global $wpdb; $rows = $wpdb->query('SELECT DATE(post_date) AS date, COUNT(*) AS count FROM ' . $wpdb->posts . ' GROUP BY ...
3
votes
1answer
33 views

Install an external plugin within the current plugin

I'm trying to install an additional plugin, and all I have is the slug name of the plugin under api.wordpress.org. I've figured out that one could get the zip file's path (download_link) when going to ...
3
votes
4answers
2k views

How to run Two Wordpress blogs with different themes and with single database and same content

How do you run two Wordpress blogs with different themes using one database where the content remains the same in both sites? The issue that I am getting is at the Domain mapping in both blogs.
0
votes
3answers
454 views

Error uploading plugin zip file

I have a question here and hope you guys can help me with that. Couldn't find the exact answer from search and I am not a coder myself. I was given the instruction (to change plugin name) by my ...
0
votes
0answers
7 views

Stop form submission on photo uploding (userpro plugin)

I am using user-pro plugin and in my registration page having field like below.. (1)profile-picture (2)first name (field required validation) (3)last name (field required validation) ...
0
votes
4answers
884 views

Can't get plugin settings page to save data

have a simple plugin that inserts text (a Google ad) partway through the content of a single post. I'm trying to create a settings page that will let users change the ad code, and change after which ...
0
votes
0answers
9 views

Widget Development: As I add widget to Widget Area, it doesn't work until refresh page

I just created a custom text widget with a bit more styling options in it, but as I tested on widgets page I got some issues. For example as I save anything on that widget, it lost all styling and JS ...
0
votes
1answer
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
0answers
5 views

Show h1 intro, while outside my shortcode output

How I can add my h1 heading out ?, but not from inside the loop. Each output has a <div class="relacional"> but I want to have a h1 that falls outside the loo and that above all <div ...
0
votes
1answer
15 views

It possible to implement an adhoc php web application with wordpress?

I need to implement a web app in php and I wonder if it would be a good solution to use wordpress or just do it with external php code my web app: Has some panels with forms for the users to fill, ...
0
votes
0answers
13 views

Options not getting saved in my plugin, more over returns an error

I am trying to code this plugin, but In the options page when I try to save the values, it is not getting saved. Moreover it is giving me this error: http://prntscr.com/72jg4e Can somebody please help ...
0
votes
0answers
14 views

Admin Editor Issue

I want to enable multiple <br /> tags in the back office editor as user press [SHIFT + ENTER]. Like Gmail Editor. Otherwise I need to disable linebreaks on [SHIFT + ENTER] and it should just ...
0
votes
1answer
21 views

Date query for a custom meta field

I would like to use something similar to the following date_query but I would like to use some custom meta fields instead of the existing post columns. For example instead of post_date_gmt I would ...
3
votes
1answer
10k views

Lightbox popup on WooCommerce add_to_cart action

I would like to create a modal 'pop-up' window in WooCommerce to appear when the "Add to cart" button has been clicked. This has to occur after the WC actions that actually add the product to the cart ...
0
votes
0answers
7 views

Using remote data in post/pages/widgets in Wordpress custom plugin by jSON

I have a URL like this: http://examplesite.com/manage/access?id=22&access_key=12345678 This is a jSON file. I want to create custom Wordpress plugin and put this access key in the plugin. When I ...
0
votes
0answers
14 views

No file when adding media directly to a post

I am working on a plugin to do some processing of uploaded images. The code below works fine when I upload an image using the media library. However, when I try to upload media directly into a post ...
-1
votes
0answers
11 views

Delete user after Contact Form 7 submission [closed]

I am building my website and testing my Contact Us email. Form 7 does not clear entered names on fields required after I close web browser and return to Contact Us.
0
votes
0answers
27 views

Editing a built plugin: How to activate it only on a single post page

I'm working on an old version of wordpress 3.9.5. I Installed a Pintrest plugin "Pinterest Pin It Button On Image Hover And Post" - which just pops-up a share button for pintrest whenever you hover ...
1
vote
2answers
31 views

Problem in loading javascript in footer

I have written a small plugin where i have loaded following scripts wp_enqueue_script('jquery', plugins_url('/js/jquery.min.js', __FILE__),'','1.7',true); wp_enqueue_script('new-cycle', ...
0
votes
3answers
2k views

Adding rich text editor to my plugin

I'm trying to add a rich text editor to my own plugin. So I googled it first of course and I found several answers on dev4press and Stack Overflow. This code displays nothing so I tried another ...
0
votes
0answers
11 views

Stop plugin updation when customized the plugin [duplicate]

My site is built in WordPress, i have installed so many plugin. but some of the plugin which i customized based on my requirement now i want that plugin can't be update so what are the technique for ...
0
votes
1answer
549 views

pre_set_site_transient_update_plugins wont call on hosted webspace

Iam trying to use "pre_set_site_transient_update_plugins" to update my plugin from a GitHub repository. For that Iam using this example https://github.com/bfintal/Plugin-Update. On my Dev-System ...
2
votes
1answer
51 views

How to hide /wp-content/uploads/ from URL?

I have a Wordpress mulitsite and I want to hide the /wp-content/uploads/ part form URL in images and files. The url now like this: ...
0
votes
2answers
57 views

How to add single function for all WordPress hooks

How can I add a single WordPress function for all WordPress actions/event. I want to add something equivalent to the one which is below add_Action('All WordPress Event/Actions', 'My_Function'); ...
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
27 views

Can't update/install plugins or Wordpress

I just finished setting up Wordpress on my apache webserver, but now I'm having this problem which is pretty much preventing me from doing anything with my site. Whenever I try to install or update a ...
0
votes
1answer
20 views

How to rename WP plugin?

I have been modifying free opensourse WP plugin on my test site and I want to change it's name to a new one. I tried doing so by going to my plugins list on wp-admin/plugin panel and using 'edit' ...
6
votes
1answer
1k views

get a list of all registered actions

I'm trying to debug a plugin which I didn't develop and I want to list all the registered actions. I've read this SO thread: WordPress: How do I get all the registered functions for 'the_content' ...