Questions tagged [plugins]

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.

2,507 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
1k views

How to pull email and name from Flamingo plugin

I am trying to pull the name and email from the database and show on the front end of my website. I tried many scripts and looked on the flamingo forum as well. But couldnt find a solution. All the ...
1
vote
1answer
35 views

Is there a way to test that readme looks in other language before submitting translation?

I am adding the translation for my plugin's readme file in Spanish. I want to check if there is a way to test how my file will look on Wordpress site's page before submitting the translation?
1
vote
0answers
36 views

Wordpress plugin/theme or other wayout to create portable pages?

Here is my problem - I have my production server running my wordpress site. I have mirrored the site on my localhost to play around and make updates before I push them to production. Staging process ...
1
vote
2answers
38 views

Use of Templates in a Plugin

I´am creating a Plugin. For this I wrote my own templates. Now I want to have the templeates files in my Plugin directory. But that doenst work fine. Since I used the Plugin directory, wordpress ...
1
vote
1answer
46 views

Insert content of a post into another

I am writing a little plugin that creates a custom post type. I created a filter that copies the content of such a post into another one. Thereby I loop through all the custom posts. For each one I ...
1
vote
0answers
126 views

Insert data from .sql file in wordpress plugin

I'm creating a wordpress plugin that need to create a table and insert location data to that. There are more than 50000 locations in that INSERT query, so that in separate .sql file. I need to run ...
1
vote
0answers
257 views

WP_Async_Task doesn't appear to be running asynchronously

I have copied the code from this example of how to use WP_Async_Task. But with this modification: add_action( 'wp_async_save_post', 'josh_send_to_api' ); function josh_send_to_api( $id ) { ...
1
vote
0answers
187 views

Display Swift Snippets in Wordpress

I want to display swift code in my WordPress site but I have not found any useful plugin. For now I use Crayon Syntax Highlighter but there isn't a theme for the code that make it look like on the ...
1
vote
0answers
499 views

jQuery for custom plugin not working with Divi theme

I'm writing a plugin, and it requires Bootstrap's nav tabs feature. I added Bootstrap to my plugin, and made sure jQuery was enqueued as well. This is how I did it: function added_scripts () { ...
1
vote
1answer
16 views

How can I make my metabox appear?

I'm fairly new to plugin development but have experience in coding. I've looked into several tutorials and managed to get my post type as slideshows, but I wanted to add a metabox to put an URL in. ...
1
vote
0answers
72 views

Why am I getting ( WooCommerce Services could not be installed (Could not create directory.). ) error and how to solve it ?

PayPal by Braintree could not be installed (Could not create directory.). Please install it manually by clicking here. WooCommerce Services could not be installed (Could not create directory.). ...
1
vote
1answer
334 views

How to retain table data in wordpress phpunit tests

I was wondering is there a way that phpunit for woprdress do not delete any data which i created during test?
1
vote
0answers
147 views

Install plugin remotely

I have seen a couple services ( ManageWP, BlogVault ) where we supply them with the admin login details to our WordPress site and they programmatically install their respective plugin and then connect ...
1
vote
1answer
41 views

How do I hide posts across all loops based on the value of a custom field?

I'm trying to dynamically hide posts across my entire site if the value of a custom field called distribution is "1". I've set up a meta box on the post editor screen to set the value of the field, ...
1
vote
1answer
339 views

How to set add question capability for author role in wp pro quiz plugin

Wp pro quiz has no option to let other user roles to add and edit quizzes and questions other than admin. In the lib/helper/WpProQuiz_Helper_Upgrade.php I saw this code, private static function ...
1
vote
0answers
30 views

Add comments for template variables

I am writing a small plugin that uses a custom template to render content. The plugin uses extract() to add variables that can be used inside the template. I was wondering if there is a standard for ...
1
vote
0answers
60 views

Plugin developer automated documentation

I have published a plugin which provides a nice extensibility. Now, I want to provide my users an automated PHP Documentation which describes the API Functions, Filters and Actions like this page here:...
1
vote
0answers
139 views

How to replace wordpress default text editor (TinyMCE) with a custom one.

I'm on a project that requires me to replace the WordPress text editor(TinyMCE) with a custom one. I've googled it several times but I've not seen a way to make this happen. Does anyone here have a ...
1
vote
0answers
27 views

Consolidate plugin functionality into a theme

I have several plugins installed into a theme a created. I was wondering if it was possible to integrate the codes from all the plugins into my theme so i can export it as one file. That way if i ...
1
vote
2answers
15 views

What would I need to write into a custom plugin in order to add a switch for a custom string of CSS to the edit page?

I have created a page on one of our sites which has a few snippets of custom CSS to make it display in a very modern, 100% width style like this, as opposed to the standard, more constrained style of ...
1
vote
1answer
51 views

Force file download on plugin activation

I am writing a plugin and want to force users to download a file immediately when they activate the plugin. Here is the code that I've written so far but doesn't work. No fatal errors but gives ...
1
vote
0answers
55 views

Create a multisite network for an existing installation

I have a website with some large number of posts like (75k posts). Till now, i am using a plugin called Main Category As Sub-domain to convert categories into sub-domains. ISSUE - 1 → In recent ...
1
vote
1answer
135 views

Ajax with plugins returns 0

I'm trying to create buttons in edit-comments table, and I want to use Ajax with a plugin for the task. This is the code of the plugin under plugins/no_email/no_email.php : <?php /* Plugin Name:...
1
vote
0answers
15 views

All sites themes functions.php have been changed

all of the themes functions.php have been changed for the sites on my web hosting server. Because I couldn't copy it here without making it look ok, the code is here: https://justpaste.it/18emu Is ...
1
vote
0answers
348 views

Bootstrap and Custom CSS in custom plugin are being overwritten by theme

This is my first plugin, and I'm having a real hard time figuring out enqueuing styles/scripts. All the code I wrote for the plugin works great, but I'm having issues with stylesheets and Bootstrap. I ...
1
vote
4answers
1k views

How to pass parameters (data) from plugin PHP to React

I am experimenting creating a WordPress plugin using create-react-app. To make things simple, I am trying to develop a click-to-tweet plugin. The shortcode part (in PHP ) looks like: // Shortcode to ...
1
vote
2answers
150 views

WordPress + JavaScipt + AJAX + MySQL: insert query for form

I'm trying to make booking - plugin with form on wordpress-admin site, where I can add new event in calender (made with JavaScript). I have to submit form with all data and insert data to MySQL ...
1
vote
1answer
465 views

Popup Maker nav menu item not working

I am trying to get my popup that I created using Popup Maker to show when clicking on one of my nav menu items. I found this tutorial here that explains 3 methods of doing so... NONE of them are ...
1
vote
1answer
133 views

php page not found for plugin options menu

I'm trying to make an options page for a plugin and i'm getting The requested URL /site/wp-admin/plugin-email.php was not found on this server. every time i press 'Save settings'. Here is my code: ...
1
vote
0answers
701 views

Add multiple attributes to product from php

I'm trying to update a WooCommerce product entry with data from an API, where the values from the API match taxonomy terms I've created in my WordPress site. For most fields this works, but I have ...
1
vote
0answers
224 views

WordPress Widget Not Saving Data

I'm creating a very simple widget with 3 inputs. but whenever I changed the details, it's not getting saved. Below is my code. Please let me know if there any issue. Thanks. class ...
1
vote
0answers
31 views

Homemade plugin while using Themify Ultra

I am using the theme called Themify Ultra for a webproject. Theme can be found here. I want to make a plugin that changed letters to other letters like leetspeak. Here is the code in my plugin that ...
1
vote
0answers
131 views

XML sitemap over product variations

So i have a smaller webshop, that contains a lot of products - and some of those products have variants - like blue, yellow, red and so on. But the thing is that Yoast SEO's sitemap generator only ...
1
vote
0answers
70 views

Product queue for my subscription box

I'm in the process of developing my subscription box and was struggling a bit with the available solutions on the backend of my site. I only send one item (as a start) in my box every month and I ...
1
vote
1answer
937 views

How to disable a plugin for certain page?

I tried this (inserted into the function.php): if( is_page( 799 ) ) { remove_action( 'plugins_loaded', 'bj_lazy_load' ); } Not working...
1
vote
0answers
20 views

Blog titles from WP blog on plain html site?

My organization has a plain html, actually asp.net website. We recently were required to create a wordpress blog. We host both of these sites ourselves. I have been asked if we could have a dynamic ...
1
vote
1answer
53 views

How to Exclude Files in Sub-Folders from WP Plugin Editor List?

I have a plugin with the following hierarchy: [plugin root] plugin.php readme.txt [subfolder] plugin.js jshandler.php When I visit the Plugin -> Editor, the jshandler.php file is listed (along ...
1
vote
0answers
291 views

WordPress + PHP + IIS + PHP Fatal error: require():

After searching the internet, I found people with the same problem, but that could not be solved in a good way. The problem is as follows, a Wordpress (I've also had the problem with Joomla) + IIS 8 + ...
1
vote
0answers
791 views

Ajax fail and get 504 error

Help guys.. COntact form doesnt work and get 504 Gateway Time-out and ajax fail... what can i do?? Although message is sent. I dont know exactly what to do.. Is there anyone with same problem and ...
1
vote
2answers
104 views

How to disable search as you type plugin suggestions?

In Plugins > Add New screen, the plugin table gets automatically filtered as I type the name of a plugin in the search field. Is it possible to disable this functionality and have the table update ...
1
vote
0answers
93 views

Submit form after reCaptcha is solved

I have installed WP plugin for reCaptcha & add it on registration page, everything is OK but it submit the form before reCaptcha is solved. I don't want to mess with WP code and do something ...
1
vote
0answers
31 views

Why do plugins deactivate by themselves?

What are things that can make plugins deactivate by themselves? I sometimes have issues with this and I was wondering what the reasons were.
1
vote
1answer
595 views

How to Display Taxonomy Custom Meta Box Data in Archive Page?

I'm using CMB2 Plugin for creating Custom Meta Box in a Custom Taxonomy. I added fields into that taxonomy. But the problem is when I'm going to display that data in archive template, It seems blank. ...
1
vote
0answers
27 views

remove_section in a plugin

I tried to remove a section of a child theme in a plugin with the following code: $wp_customize->remove_section('rb_aboutyou_section'); but nothing has changed.
1
vote
0answers
132 views

register_taxonomy and variable rewrite slug

I use Wordpress last version. I have a plugin which uses custom slug for posts. Here is the register code : $args = array( 'hierarchical' => true, 'labels' =&...
1
vote
0answers
77 views

“Micro-Site” Options

We are wanting to start offering Micro-Sites as an option to member in a non-commercial environment. Essentially, each user ideally would have one page to customize the content for. Backgrounds and ...
1
vote
0answers
14 views

Want to take Facebook Page posts and turn them into blog post

My client has a Facebook page where he posts all his news. We want to simplify the process of double posting by finding a way that takes Facebook Page posts and turns them into WordPress blog posts. ...
1
vote
1answer
265 views

Output content to the_content before a plugin does

I'm using a plugin that appends to the_content() at a priority of 100. I want to place some content after the main content but before this plugin outputs. I assumed if I use a priority less than 100 ...
1
vote
0answers
186 views

External Domain on Wordpress Multisite

I have a new wordpress multisite install. I want to point an external domain to a specific site on this install. I'm using the WP mu domain mapping plugin. I'm hosting on Godaddy cpanel. Things I'...
1
vote
0answers
14 views

In the archive widget, how do I sort in between two years?

I want to make custom time periods in my archive widget. Right now it is sorted by month and with plugins I can change it to months and days and stuff, but I don't want that. I want to sort the ...