Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
13 views

Create a custom table with column as an index

I want to create a table in my wordpress database with a column that is an index. But I can't seem to make it work with this code: $table_name_t2mtokens = $wpdb->prefix . "t2mtokens"; $...
1
vote
1answer
21 views

Internationalization autocomplete JS variable

I'm working in a plugin (My first plugin) that uses autocomplete (Via JQuery UI) via an array and I'm wondering if I have to translate the array too if I want to make my plugin fully translatable. ...
0
votes
1answer
15 views

How can I make my custom shortcode work in a Custom HTML Widget?

I created a plugin and tried to use its shortcode in a Custom HTML Widget, but for some reason it's outputting [my_shortcode_name] instead of executing the shortcode. The shortcode works fine if I ...
0
votes
1answer
27 views

multiple image upload using wp_enqueue_media

I have created a custom plugin and there has an image upload option. In view page: <div class="form-group"> <label class="control-label col-sm-2">Trade Photo:</label> ...
0
votes
0answers
22 views

WP REST API Problem Bad Request In PHP curl code

When I run this curl code. It gives me a Bad Request Error from Apache Serve. I give a screenshot of this. Also, Give my code. Please Give me solution Of this. Screenshot : My Code is : $wprest = ...
0
votes
1answer
23 views

WP core and plugin updates fail AWS

I'm trying to set up an AWS LAMP environment for WordPress. Everything on the AWS side is working. EC2, S3, EFS, RDS, Cloudflare, the whole package. The site loads and is blazingly fast... however ...
0
votes
0answers
17 views

Problem using woocommerce and color swatch

I have a website where I am importing products from various other websites. I am using WooCommerce Variation Swatches for variable products color swatches. I don't know why some of the products shows ...
0
votes
1answer
23 views

Issue running db create table query from static method

I suspect the way I call the table creation function below is the culprit for no table creation (nothing shows in the debug log or query array). Can anyone see my mistake? // main plugin file, ...
0
votes
1answer
16 views

Load my Inline js footer area

In WordPress we are used a editor that's name muffin builder. It's create dynamic google map script. I just put my Google Api key in this editor and apply it in my home page and its autonomic create a ...
0
votes
1answer
50 views

Plugin not working & permalink erorr after upgrade to php 7x on Nginx

This plugin code was working fine on apache server with php5 but now i am installing on nginx with php7 & wordpress 5.x, its having permalink error (showing 404 error). It's working with wordpress ...
0
votes
0answers
17 views

I am not receiving className in a ServerSideRender component

I'm trying to render a block from PHP with ServerSideRender as follows: js file: /** * WordPress dependencies */ const { __ } = wp.i18n; const { registerBlockType } = wp.blocks; const { ...
1
vote
1answer
35 views

“add_post_type_support” with Custom Post Type & ACF

I have a Custom Post Type named conferences (same slug, supports custom-fields), which is using the Advanced Custom Fields plugin. One of those custom fields is "conference_date", which I want to ...
2
votes
0answers
14 views

How to change ID of an attachment in wp_posts and its related tables correctly?

I have two posts in my wp_posts table where post_type='attachment' The picture below shows the records related to those in wp_postmeta table I need to change the IDs of those files. What I am doing ...
0
votes
0answers
21 views

How do you remove question mark in URL in get method?

I'm trying to create a plugin for Wordpress and in the plugin, I am using the Get method to store a string which I will use to call an API. I created a custom page and the url is: http://localhost/...
0
votes
1answer
24 views

How can I capture Memberpress user info after signup

I'm currently working on a website where users can purchase subscriptions using memberpress, I want to capture the user data after the signup process is completed and the payment transaction is also ...
0
votes
1answer
28 views

Clear out old images, any advice?

I'm working on a site which has a media library that is now 7GB - and I really want to clear out all the unused images. I've tried using the Media Cleaner Plugin: https://wordpress.org/plugins/media-...
0
votes
0answers
35 views

Authenticate my WordPress Plugin Client via OAuth2 “Authorization Code Grant”

I am about to create a WordPress Plugin with Client functionality. I basically want to post wordpress-data to a remote server using the servers REST-API (short overview: I want to simultaneously add ...
2
votes
0answers
37 views

How to Replace Words with Hypertext Link But Ignore Previously Existed Links?

Auto-linking for "selected words" in the_content I am currently using the following code: function wp_affiliate_links($text){ $replace = array( '/ example /' => ' <a rel="nofollow" href="...
3
votes
2answers
33 views

Show missing Sidebar from Gutenberg admin area

I hid the custom sidebar from Wordpress example https://wordpress.org/gutenberg/handbook/designers-developers/developers/tutorials/plugin-sidebar-0/ by pressing remove from toolbar star in the panel. ...
0
votes
0answers
11 views

CMB2 Output Select Box Chosen Option

I have the following code for a metabox which allows the user to select a post category but I cant seem to ouput the chosen option on the front end. Any ideas ? Heres what I have so far : // Choose ...
1
vote
1answer
12 views

How can I perform high-level database merging for WordPress within continues delivery?

I've a bit of a problem. I'm currently trying to realize a WordPress development process regarding to one of my old question / topic: https://stackoverflow.com/questions/48890019/wordpress-...
-1
votes
1answer
22 views

Different search results with Wordpress and Relevanssi

I am new here in the forum and in the WordPress world and need help with following problem. It's about a website that is using WordPress and several plugins like Avada, Fusion Builder, Fusion Slider ...
0
votes
0answers
29 views

Why do plugins need to be deactivated to update Wordpress?

In the Wordpress update instructions, it is strongly instructed to deactivate all plugins before manually updating Wordpress' core. Why is that necessary ? What are the potential consequences if I ...
0
votes
1answer
21 views

Public WP website with one area just for members

I want to create public WordPress website (for a sports club), but with one closed area just for the members. The public part of the site will have the usual pages: club info, photo gallery, contact ...
1
vote
1answer
19 views

My plugin wants to update another plugin

I am having issues when I view my installed plugin page, it's telling me there is a new version available. If I click the view version or view details links, it shows a completely different plugin ...
0
votes
1answer
28 views

How do I render content from a wp_editor in a plugin setting field?

I have a plugin setting that uses wp_editor() to handle the input and will get echoed as part of a shortcode. Everything is working great on the admin side but when I echo the output on the client ...
-1
votes
1answer
26 views

correct validate inputs

How correct validate data from user to save in database from inputs? I use this for textfields: $name = trim(sanitize_text_field($_POST['name'])); But if i add special signs like "&*({} ...
0
votes
0answers
16 views

How to link my plug-in to form parsing PDF plug-in?

I've developed a plug-in with specific (I'm mean non WordPress native) permission system, specific tables, specific tab system (each tab actually has a distinct form given that each has like hundreds ...
0
votes
1answer
21 views

problem with sql query

I have a problem with quotes with query. My code: $this->table_name= 'table_name'; $how_much = $this->wpdb->get_var($this->wpdb->prepare("SELECT COUNT(*) FROM {$this->...
0
votes
1answer
29 views

correct sql query

I wrote database queries some time ago and now I would like to improve them. But something I do wrong and i need help. class tags{ private $wpdb; public function __construct(){ ...
0
votes
1answer
11 views

How to get data from a private API and add it to wordpress pages

I got a private API (Cliniko) I want for example the full list of clients to be listed where I want on a page. I know how APIs work, what I don't know is how to implement them in Wordpress. Is there ...
0
votes
2answers
16 views

WordPress filter from custom table is not working properly

I want to filter the exact information from a custom WordPress table no matter the user has filled all the text boxes or not. I have used a LIKE query but it`s not working properly if the user left ...
1
vote
1answer
33 views

post_type_link filter causes 404 on the CPT page it's used on

When i change the permalink of my CPT using filters it gives a 404. I clicked save in the permalinks settings and switched and saved, but there's still a 404. Is there some kind of hooking up i need ...
1
vote
0answers
9 views

How to set a CPT to have a page as a parent, then rewrite urls accordingly?

i have a CPT (called review) for review pages and I want to set these as children of pages i've created. right now my CPT slug looks like this: example.com/review/chewy-review but i have a page on ...
0
votes
0answers
9 views

Updraft Backup is breaking my site and turning all URLs to 404 errors?

I was getting this weird error where all my pages would give 404, obviously a massive nightmare for SEO. I fixed it by disabling all plugins, then turned them back on and resetting permalinks by ...
0
votes
1answer
21 views

Woocommerce budget search

I have woo commerce setup. Now requirement is like say If I search budget lets say 5000,It should show products whose price total is 5000 (ex. one product of price 3000 & one product of prize ...
0
votes
1answer
91 views

Issue with post request to admin-post.php

I am trying to make a post request from my admin settings page for a new plugin. The following code takes me to a blank page after submit (URL is: http://192.168.1.33:3000/wptest2/wp-admin/admin-post....
0
votes
0answers
29 views

extra comma is appearing after shortcode attribute while creating custom gutenberg block

I have created a Gutenberg block which returns shortcode in RawHtml component but while returning dynamic shortcode in edit() function it gives extra commas appending in the shortcode, can anyone ...
0
votes
1answer
12 views

Get all user meta_keys and then group users by matching values

One of the plugins I am using generates user meta from our AD. One of the keys is the user's Manager. As many users will have the same manager, I want to be able to group all users. I was trying to ...
1
vote
1answer
22 views

Add Products to user's ID Woocommerce

I have made an REST API for synchronize user's cart item to web view to android view. I have used CoCart WP plugin Here are some scenarios: If I adding product from website I can get user's cart ...
0
votes
0answers
13 views

Redirection Plugin: Change permalink structure to remove date, want to retain and pass query strings (?utm_)

I have changed the permalink structure from /%year%/%monthnum%/%postname%.html to /%postname%/ I have added the following regex rule to the Redirection plugin: Source URL: ^/([0-9]{4})/([0-9]{2})/([^...
0
votes
0answers
28 views

How do I get fresh post data in post_publish hook?

I'm using the post_publish hook to do some operations in my plugin based on the post's taxonomies. If update a post, calling get_the_category($id) returns the categories for the post version before ...
4
votes
3answers
98 views

Plugin stability | Using a plugin VS Developing functionalities yourself

I work at a webdev company where we are experiencing the following problems: The plugin not functioning properly with other plugins that are already installed. Things that don't work the way we ...
0
votes
0answers
15 views

How to use LinkedIn socialActions Api for displaying comments on my WordPress website blogs page?

I share my wordpress blogs on linkedin as a post. There are comments on those blogs.How to use LinkedIn socialActions Api step by step for displaying comments from linked on my WordPress website blogs ...
0
votes
0answers
29 views

WordPress Thickbox Navigation Issue in Gallery

I am adding an image gallery via wp media uploader. In the frontend, I am trying to show these images in Thickbox pop-up. However, it shows the images in pop-up but when I navigate [next and prev ...
0
votes
0answers
23 views

Not able to get my callback URL to work with my wordpress plugins

I have installed a Wordpress Plugin (Revive old Post). This plugins on my wordpress website to send old post to my twitter account.. I have setup my developer account with twitter.. for this plugin ...
0
votes
1answer
30 views

Only return taxonomies that are linked to a category & product

What's the best way, to return taxonomies, but only taxonomies that are linked to a product, within the category, I have a heirachial taxonomy, I want to get all the top level options, once an option ...
0
votes
0answers
21 views

The product link in the category does not coincide with the product link

I have category page like this : "/product-category/{category}/{subcategory}" And in this page i get list of all products with url like this: "/product-category/{category}/{subcategory}/{product}"....
0
votes
0answers
11 views

Removing | separators from bbPress

I took off from source codes of bbPress some separators. I didn't find any reasonable way to take from the screen | separators than editing the source code. https://www.sanaristikkofoorumi.net/...
0
votes
1answer
15 views

Access post title from custom meta box on title change

I have a custom meta box as part of my post editor. When the user changes the post title, I want to reflect this change in the content inside the meta box. I have seen plugins like Yoast do this but ...