All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
12 views

event/callback on block update?

I am attempting to put together a custom block that produces an embed from a third party. The embed is generated by an external script scanning for an element with a data attribute holding a unique ...
0
votes
0answers
10 views

PHP Error message Upload images to remote server

I'm trying to fix an old plugin that is giving me a php error. I've work with website developer for years but my knowledge of php is limited. If anyone can get me advice I would appreciate it. The ...
0
votes
0answers
16 views

Hello everyone! Is there a function to call the wordpress loader?

I would like how can I run my wordpress loader on an Ajax load when I send the data I want the loader to appear, is there any function to call the wordpress loader?
0
votes
1answer
13 views

How to get a post views count using 'WordPress popular posts' plugin

I am using 'WordPress popular posts' plugin, and I'm trying to get post total views by ID using: wpp_get_mostpopular() function. Is there anyway to achieve that? or is it even possible?
0
votes
1answer
20 views

How to transform WordPress user role code to WP shortcode?

I want to learn how to create a WordPress shortcode that checks for a user role. If a WP user has user role 'member1', then show the content. Otherwise, show nothing. This is the WordPress code I ...
0
votes
0answers
6 views

i need a button to change my status [closed]

I am searching for a plugin that change the status of my client. So there are different clients and on thier profile I need some kind of button to change the status "not paid" to "paid" or vice versa. ...
0
votes
1answer
18 views

Bedrock Boilerplate under a sub-directory and access through a reverse proxy setup

I need to setup bedrock wordpress boilerplate in a sub-directory and get accessed through a reverse proxy setup. Please see below the setup as per my REQUIREMENTS: Main Domain https://www.domain.com/ ...
-1
votes
0answers
9 views

WP User Frontend Pro issue with Date Picker [closed]

How to disable past dates?. I got the snippet from their support team jQuery(document).ready(function( $ ){ $('#wpuf-date-schedule').datepicker( { minDate: 0, ...
0
votes
0answers
5 views

Capture search term, input into 2 searches and output data on 1 page

Apologies if this may seem trivial but, although i've been working with Wordpress for a few years now, i only recently started using slightly more complex code implementations. What i am trying to do ...
0
votes
0answers
8 views

Woocommerce: Display custom tab only on products in category/subcategory

I have created a custom tab and it currently displays on all products. I would like to only show the tab on products in a certain category or subcategory. I have tried several options, all result in "...
0
votes
0answers
21 views

the content of the uploads folder gets deleted periodically, how to figure out what causes it?

The entire content of my uploads folder gets deleted periodically. every few days, I'm not sure when exactly. How can I debug what causes this? My set up is complex: around 10 plugins, some custom. ...
0
votes
0answers
5 views

WooCommerce Dashboard is accessing Public Side Code. Why?

I am separating my public and admin code via is_admin, but for some reason the public code gets executed in the WooCommerce Dashboard, by those "statistics" cards that are getting data. I thought ...
0
votes
1answer
18 views

Remove plugin settings from post creation page for a user role

I want to remove plugin settings from the bottom of the post creating page for a given user type. I want to remove the "Plugin Organization" drop-down from the post creating page for a specific user ...
0
votes
0answers
8 views

Allow an Editor to create a new user with only the role of Client

I have a customer who had the Editor role. I created another role called Client. I want the Editor to be able to create a new user but only allow him to assign that user the "Client" role. I don't ...
0
votes
0answers
51 views

Custom posts set subscriber as author not working [closed]

I have these references but nothing is working for me. Select subscriber as author of post in admin panel? I used below code but I can only see admin in the list add_filter('wp_dropdown_users_args',...
0
votes
0answers
8 views

Check postal code on shop woocommerce page

I want to put postal code form in woocommerce shop page or before web site show it. We have a pizzeria and we want people know immediately if we do or no delivery in their city area. Thank you so ...
0
votes
3answers
25 views

Sorting not working with get_posts

I have been looking at this for hours but can't get it to work. $newsItems2 = get_posts([ "post_type" => "post", "post_status" => "...
0
votes
0answers
8 views

simple add_rewrite_rule not working

I'm trying to redirect https://example.com/register to https://example.com?mode=register I have tried the following code add_action( 'init', 'redirect_urls' ); function redirect_urls(){ ...
0
votes
1answer
17 views

All Titles and Menus changed to “CHILD THEME LOADED”

I'm testing out a theme update on our website using a staged site created by WPStaging. That part seemed to work well. Then I upgraded the theme, created a child theme from it, and applied that ...
0
votes
0answers
14 views

setTimeout not working in jquery

Will someone please tell me why the timer isn't working. Here is my jQuery code. jQuery(document).ready(function($) { var timer = ''; var ajax_url = pin_shop.ajax_url; clearTimeout(timer);...
0
votes
1answer
15 views

Find out div class

could you help me please? Where can I find div class (Easy Digital Downloads plugin) in Wordpress? Appereance -> Edit Theme -> ? <div class="wpb_wrapper">
0
votes
0answers
5 views

What theme to use for my specific reading feature? [closed]

Total newbie here. I'm looking to make a site that has 2 different view modes for all articles. The "normal" mode has 1 column of text & a sidebar & all other fancy stuffs a site has. The "...
0
votes
1answer
11 views

Why does Wordpress uses HTTPS for JS, CSS on EC2

I have migrated Wordpress site to EC2. Domain changes done in wp-config.php & in DB tables Also set AllowOverride All in Apache sites default conf. Issue is: Even though nowhere I'm using force ...
0
votes
1answer
13 views

Post name permalinks File not found — Mac High Sierra

I have read the instructions on the Wordpress site, and have read some lengthy posts here but nothing specific to this environment Environment: Mac OS X High Sierra PHP v 7.1.33 Apache v 2.4.33 ...
0
votes
1answer
7 views

Current WordPress Page Title as Search Parameter into A Tag <a href=“www.domain.com/s?=currentpagetitle”></a>

i would like to include an affiliate link as a widget which inserts the title of the respective page as search parameter. <a href="www.amazon.com/s?=titleofthepage">Link</a> I have ...
1
vote
1answer
13 views

'No Results Found' on single post for custom post type

I'm using the CPT UI plugin to create a custom post type with a custom taxonomy. I'm finding however that the individual post page shows "No Results Found". I'm using this page slug as the CPT custom ...
0
votes
0answers
11 views

Why can I choose mobile or desktop version website on my phone? [closed]

When I'm on my website on my smartphone, all the way down there is an option to choose if you want to view mobile or desktop version. How do I delete one of these options so that you only have let's ...
0
votes
0answers
8 views

How to add 'processing'/custom class when woocommerce/wordpress is processing something

I'm trying to add some loading spinners to my site but I can't seem to find a reasonable way to do it, the only place I see the 'processing' class being added is on checkout when I place click 'Place ...
0
votes
0answers
6 views

Visual Editor content disappeared after migration

I migrated all the content from an old website (around 400 posts) and the content is not appearing in either the visual/text editor of a post. It's surprisingly showing the content in the front-end ...
0
votes
0answers
10 views

Warning: call_user_func_array() expects parameter 1 to be a valid callback,

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'jw_list' not found or invalid function name in C:\xampp\htdocs\wordpress\wp-includes\class-wp-hook.php on line 287 ...
0
votes
1answer
16 views

Gutenberg - Title field required

I'm trying to make the title field required in Gutenberg editor interface. The PHP functions I found work with Classic editor interface but not with Gutenberg. I tried to add required attribute on ...
0
votes
1answer
60 views

posts_per_page not working in block

I have created a new Block for the Wordpress Editor, and I am trying to get a simple WP_Query to work, but so far, the $args in the query are mostly ignored, apart from the post_type setting. For ...
0
votes
0answers
13 views

Automatically set the site title and post title, Alt-Text upon upload

when it add this code to function.php when upload a image new Automatically get title image in the section alt,caption,description i want get (site title+listing title) instead of image title ...
0
votes
1answer
14 views

Getting products information, in woocommerce based on products ID

I have some ids like this $products = (1,2,3,4); I need to query woocommerce database to get info all products with that ids something like when im querying based on cateogory $products = ...
0
votes
0answers
5 views

WordPress WPML Setup Help Needed

I have live wordpress site with WPML plugin 1) https://(my-domain).com -> English 2) https://(my-domain).se -> Swedish it is working fine Now i want to change url structure i.e. 1) https://(my-...
0
votes
0answers
9 views

Multi-site vs 3 separate sites vs one site for all [closed]

I have somewhat of a different situation than most people dealing with the question whether to go multi-site or multiple single-sites. Right now, I have a single site for everything and I am deciding ...
1
vote
1answer
11 views

for class wp_widget, in what order are the member functions called?

When a widget is used, in what order are the members used? Obviously, __construct is first, but what happens next? function widget()? function form()? Which comes first, the chicken or the egg?
0
votes
2answers
22 views

How to insert multiple rows and columns in database using array

Please i want to know if it is posible to use one sql query to insert into multiple columns and rows using array in php $sql = "INSERT INTO MyGuests (firstname, lastname, email) <br> VALUES (...
0
votes
1answer
14 views

Creating a custom post type upon registration for a specific user role

Can anyone help me to create a custom post type content when a new user is registered? But the user should be of specific role only. I have been searching but couldn't find any solution.
0
votes
0answers
6 views

Woocommerce add_to_cart() not saving to session / not visible on checkout

I have a custom function that handles a bundle offer. I get a custom field from the order and if it has the bundle value, I create a new item via add_to_cart. I can see the item in the cart, but the ...
0
votes
0answers
6 views

Pass Sku value on a single product page template using javascript

I am building a wordpress woocommerce site using elementor. Due to integrations I require a script that can pull the sku on the page then pass it through to the following coding (in the parameter data-...
0
votes
1answer
8 views

How to find where an object first instantiatiation

Problem is solved. I have built a theme options class so i can build as many option pages as i want, an i implement a singleton design pattern to fetch options only once, and i have WPML plugin ...
0
votes
0answers
8 views

show credit card option on custom checkout page [closed]

In my site, there are two checkout pages one normal WooCommerce checkout and the other is the custom one-page checkout page that we have custom developed. Right now the stripe model checkout is ...
0
votes
1answer
7 views

Why do I have a reauth=1 redirection loop when I try to log in to WordPress hosted on AWS Fargate?

I have set up an AWS Fargate cluster with ten WordPress containers behind an AWS Application Load Balancer (ALB). I tested that my settings work when I have one container. Why can I not log in when I ...
0
votes
1answer
20 views

ajax response not recieving

Will anyone help me in this regard. My problem is that when I ajax request WordPress, when I log that response in console it shows error/complete not response. jQuery(document).ready(function($) { $("...
-2
votes
0answers
10 views

I want wordpress plugin which will add images to post from google images [closed]

I want wordpress plugin which will add images from google images to post generated by wp automatic plugin.
0
votes
1answer
10 views

Better search on WordPress.org Plugins?

I'm trying to find some specific plugin for Accordion (FAQ), but to be in a form of Gutenberg Block. There is a group of "block enabled" plugins on https://wordpress.org/plugins/browse/blocks/ There ...
2
votes
1answer
12 views

initial open/toggle PluginDocumentSettingPanel panel in document setting block editor gutenberg

i want make new panel inside document setting tab with React Script from this documentation but the problem panel not toggle onload/initial i have try open with dispatch('core/edit-post')....
0
votes
0answers
9 views

Hide Load More Button When Finished [duplicate]

I've tried just about every code on here under the sun and for some reason my load more button is not hiding when there are no more posts to show. I'm using a custom post type and a custom loop to ...
0
votes
0answers
8 views

How to add a flat rate cost for a shipping class

I have customized WC Product Vendors and added as many features as I like. I have a value field Delivery fee that should set a shipping class flat rate cost that equals vendors slug, but I dont know ...

15 30 50 per page