190,468 questions
-4
votes
0
answers
41
views
Get WordPress post_id to use in post_meta action with 1 form [closed]
I have a fun challenge for you. The only problem is, I'm not 100% sure it's actually possible.
I'm using YOOtheme Pro with the FORM element from ZOOlanders Essentials.
I'm creating a new post via a ...
1
vote
1
answer
40
views
ddev saying "ngrok not found in path, please install it" when trying to share my wordpress project
I setup my WordPress local site using ddev without issues but now I want to share it with a friend using ngrok. Even though I have installed ngrok and put it in c:\ngrok and added it to my PATH system ...
0
votes
1
answer
50
views
iFrame got blocked after update WordPress 6.9 [closed]
I'm facing trouble with displaying an iframe from my subdomain on the main domain.
It was working well until I updated WP core to 6.9
What didn't work for me
put the code into the wp-config.php
use ...
2
votes
3
answers
155
views
+50
How to insert text beside price in woocommerce checkout page review order table?
See comment in the code:
// Here I want to attach som text to checkout page under order review table for this specifik product id 7498 if quantity is 1
I have in the code bellow tried many things in ...
-3
votes
1
answer
60
views
Google Search displays other favicon than my website [closed]
I built my website with WordPress. When I search for my website (amngroup.se) on Google, the search results display a strange or incorrect favicon (a bird) instead of my own. However, when I visit the ...
4
votes
1
answer
74
views
Why doesn’t Loco recognize these strings?
I have dynamic text that Loco Translate isn't recognizing.I added the text myself to a plugin file I downloaded from the WordPress repository.I ran several different tests; I'll only include two here ...
-1
votes
0
answers
63
views
Embedding/Communication between Apps Script Web App/iFrame on Custom Domain Web Site (WordPress based) [closed]
I'm trying to integrate a Google Apps Script (GAS) web app into a WordPress site via an iframe.
The basic integration works, but only with a static iframe height.
To achieve automatic height resize, I ...
1
vote
1
answer
41
views
Can not get user role in hidden fields of Forminator form with php code
I'm trying to use the code below to retrieve the currently logged-in user's roles into a hidden field, Custom Value, in Forminator Form. However, after submitting the form, Submission only returns {...
-2
votes
0
answers
74
views
WordPress site infected with malware causing redirect to external domain [closed]
WordPress site infected with malware causing redirect to external domain even after disabling plugins and theme
I’m dealing with a persistent malware issue on a WordPress site that redirects all ...
Best practices
0
votes
2
replies
20
views
WordPress ACF Field Data
I have icon box widget so the title and description dynamic tag are working but when i try to fatch dynamic tag through icon from my acf field so here is no option or icon which help to get icon from ...
Advice
0
votes
3
replies
28
views
Elementor: Containers vs Sections – Which Is Better for Responsiveness?
I have a question regarding layout structure in WordPress Elementor.
In my team, my seniors recommend continuing to use Sections and Columns, stating that sections provide better responsiveness. Their ...
Best practices
0
votes
1
replies
14
views
Section vs Containers in Elementor
I have a question for wordpress and elementor users.
Which is better a container or sections?
My seniors are saying sections are better at responsiveness so we have to use sections, but I researched ...
0
votes
1
answer
108
views
WooCommerce notification does not show product name
I'm using code that displays a pop-up notification about adding a product to the cart.
// Registration of styles and scripts
add_action('wp_enqueue_scripts', '...
-4
votes
0
answers
53
views
WordPress author archive pagination returns 404 on page 2, page 1 works
I’m implementing a custom author archive in WordPress where the author page lists posts based on custom meta fields (ACF user fields), not post_author.
What works
/author/author-slug/ loads correctly
...
Advice
0
votes
2
replies
36
views
Woocommerce stop Buy Button leaving page when clicked
I have a product which i want the purchaser to build up a product by adding additional items, i have looked at using grouped or variable products but cant get the detail i require on the options, i ...
1
vote
0
answers
48
views
WooCommerce Plugin Class Not Loading on Form Submission
I'm working on a custom admin workflow for processing woocommerce order requests. I have a custom form that uses admin-post.php in the wp-admin. I also have a set of classes that add new WooCommerce ...
-1
votes
1
answer
84
views
Drag and drop using Dragula.js on mobile device works not as expected
I have a wordpress site, where I added a new page for testing dragula.js. It works partly, because I can drag and drop, but there are some errors:
when I try to drag the items down, the mobile ...
1
vote
1
answer
96
views
How can I get a single entry from a custom database table in WordPress? [duplicate]
I added a custom table to my database and I want to call on a particular row as defined by the ID and then display the string contents of another column in that row.
The user makes a selection from a ...
Advice
0
votes
19
replies
75
views
Get a single data entry from a custom database table in WordPress?
I added a custom table to my database and I want to call on a particular row as defined by the ID and then display the string contents of another column in that row.
The user makes a selection from a ...
-1
votes
1
answer
62
views
What's the difference between wp_enqueue_script() and directly adding script tags in WordPress?
I've noticed two different ways to add JavaScript files to a WordPress site:
Using wp_enqueue_script() in functions.php
Simply adding <script> tags directly in the header.php or footer.php file
...
Advice
2
votes
1
replies
34
views
How does WordPress store custom post type data and metadata in the database?
I am trying to understand how WordPress stores data internally in the database.
I know that WordPress uses MySQL and that default posts and pages are stored in the wp_posts table.
I would like to ...
-3
votes
1
answer
62
views
WordPress action hook not triggering inside custom plugin
<?php
/*
Plugin Name: Test Init Hook Plugin
*/
add_action('init', 'my_custom_init_function');
function my_custom_init_function() {
error_log('Init hook triggered');
}
I am learning WordPress ...
Advice
0
votes
3
replies
54
views
Issues converting Figma designs to a full WordPress theme using Open AI
What I am trying to do
Fetch design data (frames, components, styles) from Figma using the Figma API
Process that data and send it to the Open AI API
Generate:
WordPress theme structure
PHP ...
0
votes
1
answer
30
views
LocalWP sites missing after C: drive became full & sudden shutdown (sites still exist on disk)
My Windows 10 system suddenly ran out of space on Local Disk (C:) – 0 bytes free.
The computer froze and shut down unexpectedly.
After restarting, LocalWP opened normally but all my old sites were ...
Best practices
0
votes
3
replies
36
views
How does the_excerpt() decide the length of text in a custom WordPress theme?
I am building a custom WordPress theme and using the_excerpt() inside index.php.
I want to understand:
How WordPress decides the excerpt length by default
Whether it is affected by theme or core ...
1
vote
0
answers
66
views
Upload file static link changed in frontend
I have a wordpres website, where I am using the Elementor and Jet plugins.
In an Elementor template I am using a Heading element with a static file link: /afx/wp-content/uploads/2022/02/file.pdf. I ...
Advice
2
votes
2
replies
26
views
How to enqueue scripts properly in WordPress theme?
I am learning WordPress theme development and trying to understand
the correct way to include JavaScript and CSS files in a theme.
I have seen examples where scripts are added directly using <...
-2
votes
1
answer
60
views
How to enqueue a custom JavaScript file properly in WordPress?
I am learning WordPress theme development and trying to add a custom JavaScript file to my theme.
Currently, I am adding the script directly using a <script> tag in header.php, but I’ve read ...
Best practices
1
vote
2
replies
92
views
How to add custom CSS to a WordPress.com site
I am using a free WordPress.com site.
I want to change the background color and font style of my website using custom CSS.
I don’t see the Custom CSS option in the dashboard.
Is it possible to add ...
1
vote
0
answers
76
views
WordPress site freezes when sending FCM notifications to large topics via wp_remote_post()
I'm developing a WordPress plugin that sends push notifications via Firebase Cloud Messaging (FCM v1 API). The plugin works perfectly when sending to small topics (1-2 devices), but causes the entire ...
1
vote
0
answers
85
views
Payment Method Surcharges Not Calculating Correctly in Checkout Total
I am having issues implementing a payment method surcharge on my client's e-commerce store. The goal is to add a fee for PayPal and Stripe payment methods.
I’ve tried using both plugins and custom ...
0
votes
0
answers
83
views
WooCommerce custom category pagination using "catalog"
On a site designed almost 10 years ago, a custom rewrite enables the use of the word "catalog" as both shop and category base. I can also set "catalog" as the custom product ...
0
votes
2
answers
143
views
Add another javascript dropdown submenu
I have a dropdown menu on my Wordpress website that adds submenu items and it's categories into a dropdown menu. This works for one menu-item, with the help of that #id class. Now i can't get it ...
Advice
0
votes
0
replies
64
views
How to programmatically show the context menu in Wordpress Gutenberg editor?
I'm writing a Chrome extension to help with Wordpress Gutenberg editor.
When I click a block in the editor, a context menu appears, like this:
How can I programmatically make this context menu appear ...
Advice
0
votes
6
replies
112
views
Duplicate custom Order Action in WooCommerce
I have the following code on my site which sends a 'Ready to Collect' email to my customers, as well as updating the order status to ready to collect.
function custom_status_action( $actions ) {
...
0
votes
2
answers
122
views
Woocommerce checkout hooks lifecycle with external API call for custom shipping rates
Ok I finally got all my code partially working. It only works in some specific scenarios, which I don't fully understand yet. I think the lifecycle of the checkout is not 100% clear to me. I'll ...
-1
votes
1
answer
112
views
Wordpress' Fluent Form not working in a Barba.js website
My Wordpress project uses Barba.js for transitions. I am using Fluent Forms and when the user arrives at the website through a page that has a form, it works normally. However, if you navigate away ...
0
votes
2
answers
166
views
Shortcode use for Advanced Custom Fields (ACF) Wordpress plugin
I have a wordpress site that displays information about Projects (custom post type). I use the Advanced Custom Fields (ACF) plugin to create custom fields about each Project post, e.g. town and state....
0
votes
1
answer
137
views
Why does the child theme CSS not override the parent theme header styles?
I have created and activated a WordPress child theme. The site loads correctly, but CSS rules in the child theme style.css are not overriding the parent theme styles for the <header> element.
...
Advice
0
votes
1
replies
45
views
Envato Theme License Usage: Can One Theme Be Used for Multiple WordPress Websites?
I have purchased a WordPress theme from Envato and I would like to clarify the licensing and usage terms before proceeding with my projects.
I am planning to develop two separate WordPress websites ...
1
vote
0
answers
95
views
What adjustments should be made to my code to make my products sort alphabetically when multiple items have the same stock status?
I own a website that sells rare clothing products sourced from all around the country. Because no item that we buy is ever in the same condition, we create a different listing for each item with ...
2
votes
3
answers
97
views
Can we get only users with Gravatar profile image by db query?
I need to retrieve registered users on my Wordpress website who have a Gravatar profile image. Would that be possible using a Wordpress core function, a custom user query (using WP_User_Query class), ...
0
votes
3
answers
199
views
How do I use JavaScript to display a div when a radio button is clicked on separate HTML sections [closed]
I'm building a site in WordPress that uses the donation plugin Charitable. On the donation page, there are two sections with two sets of radio buttons for donation values. The plugin does not have a ...
0
votes
1
answer
84
views
update_post_meta Function Won't Work When Called From the updated_post_meta Hook
When a meta field changes, I need to run a function that updates a second meta field for that same post. I'm using the updated_post_meta hook to detect meta field changes, and the callback function ...
0
votes
0
answers
148
views
How to create a “sticky scroll animation” (scrollytelling) section in Elementor? My CSS + JS setup is not working
I’m trying to reproduce a “sticky scroll animation” (also known as scrollytelling / pinned scroll) inside a WordPress page built with Elementor.
The effect I want is the same as the one used on thelot....
Advice
0
votes
2
replies
50
views
In Wordpress Gutenberg editor, how to trigger change detection in a html block?
I'm trying to write a Chrome extension for editing a WordPress page. I'd like the extension to modify an HTML block. I've tried to modify the textarea element's value and textContent but these changes ...
0
votes
0
answers
73
views
update programmatically value of a field in wooCommerce checkout blocks
In WooCommerce Checkout Blocks, suppose I have added a custom text-input field using woocommerce_register_additional_checkout_field, and I want to update the value of that input via js.
The update ...
1
vote
1
answer
106
views
How can I make WordPress handle .php URLs instead of returning a 404 error?
I have a WordPress website hosted on a server (Apache or Nginx). I am facing an issue where .php URLs (e.g., https://example.com/page/test.php) return a 404 error page from the hosting server, not the ...
0
votes
0
answers
65
views
WooCommerce How to Display Stripe Based on PostCode
In WordPress 6.9 version and WooCommerce version 10.3.6,
I want to display the Stripe based on the shipping zone.
Shipping zone 1 consists of Post code 3000
Shipping zone 2 consists of Post code 4000.
...
8
votes
2
answers
1k
views
Remove inline block CSS in WordPress 6.9
How can I remove all the inline block styles in WordPress 6.9?
Before WordPress 6.9, I removed the global inline CSS with something like:
wp_dequeue_style('wp-block-library');
But in 6.9 this no ...