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

Gzip compression not working

I have enabled mod_rewrite, mod_deflate, mod_headers and mod_setenvif in Apache and not mod_gzip, mod_filter. Tried <IfModule mod_deflate.c> # Compress HTML, CSS, JavaScript, Text, XML and ...
0
votes
1answer
17 views

How to change the wording of front-end `next article` for custom type registered in a plug-in?

I am working with another developer on a plugin that register and defines a custom type of posts. It's working as intended in the back-end but I would like to change the wording of next article and ...
1
vote
1answer
21 views

Unable to write test cases for a WordPress plugin using PHPUnit and WP-CLI

WordPress setup: Installed WordPress using VVV. PHPUnit setup: I have setup the testing suite as mentioned in Pippin's blog. And accessing PHPUnit after logging into the box machine by using vagrant ...
0
votes
0answers
20 views

AMP (Accelerated Mobile Pages) in a plugin not working

I am trying to make an edit to a plugin. This plugin adds a shortcode which the user enters the YouTube ID and on the WYSIWYG editor it will create the shortcode. The shortcode will just generate the ...
0
votes
1answer
428 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
2answers
49 views

How to get all product in the woo-commerce?

I want to get all the product data in the WooCommerce (sku, name, price, stock count, availability and etc.). Can I do that using WP_Query?
0
votes
1answer
10 views

multidimensional array within options table contains same information- for custom plug in

I've created a multidimensional array for some settings within my custom plug in, and when I print_r the original and the inner array I receive exactly the same output. $options = get_option ('...
2
votes
0answers
23 views

How to create thumbnail of different files?

I am storing my uploads in a separate folder and using separate table to save the location in database. I have gone through WP_Image_Editor , wp_image_editor_gd and wp_image_editor_imagick . I also ...
0
votes
0answers
16 views

Wordpress calls my plugin while trying to update Wordpress Core

I am developing my plugin right now, and I have faced with one issue. I tried to update my Wordpress core to the latest version but it shows me an error in my plugin. I think I doing something wrong. ...
14
votes
4answers
27k views

How to add a javascript snippet to the footer that requires jQuery

I know I can add a script file to the footer of wordpress that requires jquery using this code: <?php function my_scripts_method() { // register your script location, dependencies and version ...
0
votes
1answer
43 views

Ajax not working to insert, query and result data

On my site, through a form I send/register same information in database, do a SELECT/query and return it! Return the last table saved in database, just that user just entered on the form (along with ...
0
votes
0answers
27 views

wp_mail and mail function not working when mail server is ok

i'm working on plugin with porpose : Get information from user and then send file url to user's email i used ajax and everything is ok without send mail i test my wordpress site for send email with ...
-1
votes
0answers
19 views

Plugin “Remove Slug From Custom Post Type” gives 404 Errors

This plugin did all I wanted, but it started giving me 404 errors, which go away after a while but I'm worried they'll come back. I do get this error while posting a new listing (real estate theme) ...
0
votes
0answers
34 views

Unable to view data in Options table for plugin

I've created a plugin which contains a form and I am trying to get the data from the form to post to options, but the data is not. I've checked in wp-admin/options.php and the plugin does not contain ...
6
votes
17answers
426 views

The Great Plugin Nomenclature Contest of 2011

It's been a while since I've done a bounty challenge, so here's another. Same basic rules: 1 answer per person, most creative/useful/helpful/entertaining answer wins. This time around, the award will ...
0
votes
0answers
11 views

Ajax interfering with widget back end Javascript

I have a plugin that creates a widget that allows users to click a button and select an image. I have noticed that immediately after the widget is dragged and placed into a widget area, two Ajax ...
0
votes
1answer
15 views

Custom post type in Custom widget - $listItem

Hi i have a slight problem when making a custom post type widget. the problem is that when i add a custom field in the code the part that shows the custom field information get's on top of the output ...
0
votes
1answer
15 views

ACF in wordpress

Hi i have a slight problem when making a custom post type widget. The problem is that when i want to get the field i want to use in a inline style it doesn't work. This is my code: class ...
-3
votes
0answers
19 views

Woocomerce vendords saving via ACF

I am trying to post to wc vendors using acf fields but I am not sure as to what hooks that I require to action. Once the vendor has been registerd it needs to send an email. I also need to be able to ...
10
votes
4answers
6k views

What's the difference between term_id and term_taxonomy_id

The title says it all. At the moment in my custom taxonomies I'm getting the terms using the term id and taxonomy name. Thought this question would've been asked before but can't find it anywhere! So ...
-4
votes
0answers
36 views

Use cases for modifying themes and plugins [closed]

I'd like to make the leap from "implementer" to serious "developer" and would like some useful projects to work and learn on. It would be great if I could get a list of real use cases for modifying a ...
6
votes
3answers
2k views

Query Posts by Custom Field 'Price'

I'd like to display all posts within a given price range. For example: When a user inputs 100 and 1000 (in two separate form fields) - my site will display all posts that have a custom field called ...
-3
votes
0answers
32 views

Extend Wordpress plugin “The events calendar” [on hold]

I'm a newb in wordpress plugins, and I need to extend popular plugin "The events calendar" by using hooks in functions.php or creating new plugin. First question, at the moment its twentysixteen ...
0
votes
1answer
1k 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 ...
3
votes
2answers
1k views

Display only certain posts based on visitor's country?

Is it theoretically possible to have the following feature? Each post has a country code. When a visitor comes in, the system will determine the visitor's country code. Then when the page renders, ...
0
votes
1answer
24 views

Get (eventual) permalink from post within Edit Post in Admin panel

I'm working on a plugin that needs to access grab the Permalink from within the Edit Post screen to send it to a link-shortener API. The catch is that I will need to grab the permalink before the post ...
0
votes
0answers
16 views

wp_signon not working on website but it works on localhost

wp_signon() is not working on my online website, though it works on localhost. I am making a custom login for my website, and can't understand how to solve this problem. When I log in on localhost (...
5
votes
1answer
41 views

When to use Exceptions vs Error Objects vs just plain false/null

I'm in the process of writing a plugin and I'm trying to gauge when to use different approaches of handling errors. There are three methods I'm considering: Throwing an Exception (custom class) ...
0
votes
1answer
16 views

Add post type pages with plugin

Can I add the archive and single page for a custom post type added by my plugin? I know it will only have to be a best guess with contents like: <?php get_header(); ?> <h2><?php _e('...
0
votes
0answers
31 views

Custom Meta Box Image Gallery Not Saving

I'm having an issue of a custom meta box I'm building based off of WooCommerce's Product Gallery meta box. The meta box is not saving for some reason. I've tried some options from many different ...
0
votes
1answer
806 views

WordPress REST API Plugin Development - Add Custom Endpoint

I have this question on Stack Overflow but thought here might be a better place for it... I'm almost certainly doing something stupid - or rather not doing something obvious that I should have done. ...
0
votes
0answers
15 views

Correct way check nonce (security) using old Options API

I am developing plugin for Wordpress. Firstly I started using Settings API it looks good, but it is little bit complex and it doesn't provide the way to handle options manually. I have quite ...
-2
votes
0answers
24 views

How to create an inquiry form in Wordpress [closed]

I am currently working on creating tour theme for wordpress. I am looking for ways to create an inquiry form that visitor can submit inquiry. After visitor submit the inquiry, it will - ...
1
vote
0answers
43 views

What is better way to use Bootstrap inside admin panel?

I need to use Bootstrap CSS for better UI in wp-admin but if I enqueue the bootstrap.css, it's affecting the admin default UI by changing background colors, etc. How can I use bootstrap.css inside wp-...
0
votes
1answer
19 views

What is the replacement for rich_edit_exists()?

A plugin inserts users into a database. If the user is an author, the visual editor isn't showing until the user saves their profile. I'm trying to figure out what setting isn't being added to the ...
0
votes
1answer
21 views

Issues separating my Plugin pages into different files

As my last (first) plugin got a bit hard to manage with 6 admin pages in 1 file, I decided to split them up for this one, but I am getting nothing but issues doing so. In my plugins functions file (...
10
votes
6answers
3k views

How can I add an option to the Page Template list from a Plugin?

I've been looking around for the past couple hours for a way to create a custom page template from within a plugin but haven't had any luck yet. What I am specifically trying to do is add an option ...
0
votes
1answer
54 views

Widget Script Loads at Bottom of Page

I've been working on a plugin that adds a script to the sidebar when activated. So far, I've been able to display the code, but it loads at the bottom of the page and not in the sidebar. I'm pretty ...
0
votes
0answers
68 views

Filter the_content() to add custom figure tags

I'm trying to implement responsive images on my site, and have all the required component parts working, and understand the concepts, but need some help putting them together; Knowing that WordPress ...
0
votes
2answers
31 views

My stylesheets are not enqueuing

I'm in Wordpress 4.5.2 on Windows 10 and I'm trying to register and enqueue my stylesheet in Wordpress, but it just isn't working. I'm having the same problem with jQuery. I have this code in a ...
4
votes
2answers
63 views

Unit testing to simulate the loop

How do you construct unit tests with PHPUnit and the WordPress test framework that simulate being in the loop? For instance, if I want to test a function that is only able to be called in the loop ...
0
votes
1answer
425 views

Input with spaces in Shortcode attributes overwritten by defaults

question seems to be similar to the one asked here but the answer went down a different path. Pretty much if a user enters a shortcode attribute with a space it will get overwritten by the default ...
0
votes
0answers
101 views

Problem with creating order in schedule event (woocommerce, wordpress)

I have created a scheduled event in wordpress. The code inside it is below (wordpress + woocommerce), $order = wc_create_order( $args = array() ); update_post_meta( $order->id, '_customer_user', $...
1
vote
0answers
28 views

Difference between wp_salt schemes

I am running a wordpress user system with 15k users/day. I have a custom message system and there is an issue in it. Sometimes (like at 1/1000 users) wp_hash that generates security nonce returns ...
1
vote
1answer
64 views

Including comments meta box on a plugin page

I want to include the 'Comments' meta box (the one usually seen on the post creation page) on my plugin's admin page. Is there a way to do that? I am aware of how you can use add_meta_box() to add a ...
-1
votes
0answers
29 views

How to set up my own PHP classes for WordPress plugins?

I'm coding a plugin using the WordPress Plugin Boilerplate. I'm using wp_products table I and have my own class. How do I to set up that class in WordPress? I want to use my functions from my class ...
0
votes
0answers
56 views

Error extending widget class defined in another plugin

I am trying to extend a widget class from another (widget) class in a 3rd party plugin - so hierarchy like this: 3rd_Party_Widget extends WP_Widget (in 3rd party plugin) My_Widget extends ...
0
votes
2answers
1k 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, ...
-1
votes
0answers
12 views

Develop a plugin which is multilanguage - wrong output of strings

I've a multilanguage (wpml) Page and I want to develop a wp plugin. My .mo and .po files look like this: dmd-consult-de_DE.mo dmd-consult-de_DE.po Problem: If I am in the german section ...