Newest Questions
116,404 questions
0
votes
0
answers
16
views
How to override Dokan dashboard date fields to use a Jalali (Shamsi) datepicker?
I'm building a WordPress Jalali Date module that converts WooCommerce + Dokan dashboard date fields from the default Gregorian datepicker to a custom Jalali (Shamsi) datepicker.
I need to replace ...
0
votes
1
answer
20
views
How do I disable click on featured image on WordPress and auto set only post title as alt
I am trying to disable clicks on featured image — findings show I have to force it to img tag as it's currently set as background.
Also, I want to set alt to post title. It currently showing "...
0
votes
1
answer
16
views
Block theme/FSE Navigation submenu: How to trigger hover state in inspector to work on CSS styles
So this is about the Navigation block in FSE themes like Twenty Twentyfive (the theme I'm using right now). What I want is to add styles to the submenu that pops up when you hover/click on a menu item ...
1
vote
1
answer
37
views
Adding custom column works for user list, but not for custom post type
I'm trying to add a column to the post list for my custom post type, boardgame. I know the post_type is boardgame because that shows when I show All Board Games in the left nav
/wp-admin/edit.php?...
0
votes
0
answers
18
views
WooCommerce - Products that are hidden in the catalog are not clickable or accessible in cart [closed]
If the user adds a product that is only visible via searching or fully hidden to their cart, they're unable to click its name to go to its single product page, as you would with other products.
Is ...
0
votes
0
answers
15
views
How to correctly define an array attribute with restricted enum values in WordPress block.json?
I'm building a custom WordPress Gutenberg block and want to define an attribute in block.json that is an array, but whose items must be one of three allowed strings (“A”, “B”, “C”), and with a maximum ...
0
votes
1
answer
33
views
disable plugin only on non WooCommerce pages
This code is placed in the mu-plugins directory:
function disable_plugin_on_non_woocommerce_frontend( $plugins ) {
// is frontend page not part of WooCommerce
if ( ! is_woocommerce() &&...
0
votes
1
answer
25
views
Deleting old WordPress pages
I have a website on WordPress, we recently rebranded the website with Avada website builder, but I can't figure out how to get rid of the old links. They have nothing on them, it just says page not ...
0
votes
2
answers
35
views
Running 2 domains on wordpress
I am new to WordPress and created my first website this week, replacing one created years ago.
I need to build another one for an entirely different domain, these are 2 clubs I belong to with no ...
0
votes
0
answers
14
views
Why does my WordPress site load slower on some devices but fast on others? (Different Core Web Vitals) [closed]
My WordPress site loads very fast on my laptop and local environment, but some users report slow loading and layout shifts on their mobile devices.
Here is my live site for reference:
https://...
0
votes
0
answers
61
views
Wordpress times out with large data [closed]
I have a properties wordpress site, with about 160,000 properties .. the database has over 8,000,000 records more than 7,000,000 are in postmeta table only.. the site runs on a superb server 64 GBs ...
1
vote
0
answers
20
views
Block themes/FSE: Show navigation sub-menus as expanded by default on desktop
In Full Site Editing themes, it seems that Navigation blocks with a Submenu, always end up showing the Submenu as collapsed, i.e. that you have to hover over the parent item to make the children show (...
0
votes
1
answer
17
views
interactivity API cannot execute getContext()
I am trying out iAPI with help of ChatGPT AI and Claude AI but stuck with getContext() function.
As soon as I use getContext() in action, it will fail.
debug.js?ver=619affca133d04fbead9:81
Uncaught ...
0
votes
0
answers
29
views
do_shortcode Escaping
Please tell me how to escape the widget shortcode.
There is a function:
if (!function_exists('foo_do_shortcode')) {
function foo_do_shortcode($name, $attrs = array()) {
$special_chars = ...
0
votes
0
answers
32
views
How to disable formatting for a specific block variation
Currently using the Block bindings API with some custom paragraph block Variations, and I'm wanting to disable RichText formatting for just those variations.
I know I can use unregisterFormatType ...
0
votes
1
answer
19
views
How can I change the background color of the built-in navigation modal of WordPress Full Site Editing
I'm using twnentytwentyfive with FSE and I want the modal that comes up on mobile when you click the hamburger icon to have a different background color from the rest of the site (in my case site is ...
0
votes
1
answer
42
views
WordPress adding <br> tag after first <p> in existing text blocks
When editing an existing page or post, WordPress keeps adding a <br/> tag after the first <p> in a Text Block upon opening, but only if the <p> doesn't contain any additional ...
0
votes
2
answers
26
views
Is sanitize_file_name() broken?
On an input form, I have a select element. The select element is pre-populated with NN options. The options are built by scanning a given directory for files matching custom-*.min.css, thus returning ...
0
votes
0
answers
40
views
Exclude specific DIV ID from WordPress search results without plugin
For example, in a WordPress content has the following text and Div element.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type ...
0
votes
1
answer
19
views
Is there a way to modify the list items returned in the Appearance > Menus "Add menu items" form/box?
When searching for pages to add to the menus in the Appearance > Menus section of WordPress, users are unable to differentiate pages that have the same title. For example, searching for "news&...
0
votes
1
answer
16
views
Details Block Missing from Inserter
The Details block, a totally standard block type in WordPress, is missing from my inserter for some reason.
I've tried disabling all my plugins, switching to a default theme, clearing cache, etc. It ...
0
votes
1
answer
16
views
How to highlight post in Custom Wordpress?
I would like to highlight a featured post above all other posts.
I didn’t see the “Stick this post to the front page” option in my Publish > Visibility section. Maybe it’s because I am using a ...
0
votes
2
answers
143
views
How to properly fetch attachment meta fields in a WordPress block when using MediaUpload?
I'm building a custom Gutenberg block that displays a gallery of images. Each image has a custom attachment meta field called _oembed_url, which stores an external video URL (e.g. YouTube or Vimeo). ...
1
vote
1
answer
73
views
Wordpress-login crashes permanently :: Login fails because PHP's `password_hash()` cannot generate a salt
good day dear
see the newest: update: on november, 7th well i still struggle with the login-it does not work!!!
what is needed: we need to have good compile configuration for PHP 8.2 or 8.3 correct ...
1
vote
1
answer
48
views
How to programmatically create a page without WP post type or custom post type? Just build out with data from various tables based on URL query
I have a process which creates invoices and store in a table wdcm_invoices. Another process takes the data and output HTML format and URL as https://inv.com/billing/richard-invoice-2036/ the digits ...
0
votes
2
answers
57
views
How to migrate a PHP 7 based site for which we have no server access? [closed]
We have a WordPress site hosted by a third-party provider who has gone completely unresponsive. It is running on an old version of PHP (7.4.33). We were never provided access to FTP/SFTP, phpMyAdmin, ...
1
vote
0
answers
40
views
Using ACF fields from a Gutenberg block in a load more function [closed]
I have been trying every which way to make my 'load more' work with ACF fields. I have a complex query that works correctly, but I need a 'load more' added. This is where I am. I can load more, but ...
2
votes
1
answer
34
views
Customized WordPress search URL to same post and search results
We used the following code, If search correct post name or URL (panda) in WordPress search box, users redirect to the same post like https://example.com/panda/. It's well.
While search wrong keyword, ...
0
votes
1
answer
24
views
Block publish if a category and subcategory haven't been selected
I'm trying to block publishing if a category and subcategory (that belongs to the the parent category) are not selected (uncategorized does not need a subcategory). The publish button should remain ...
0
votes
0
answers
30
views
Put to image file
I have to do Gutenberg block which contain static image.
So, I have written $image = plugin_dir_url(__FILE__) . 'images/montain.webp';
But I have output: src="http://localhost:8888/wp-content/...
0
votes
0
answers
30
views
How to Processs Form Data sent from Custom Settings Page in Admin Dashboard
:edit:
To clarify what I'm trying to do: I need access to form data submitted to options.php so that I can preprocess it into a specific data format. Then, depending on one of the fields, I either ...
0
votes
0
answers
25
views
The page jumps to top back when you scroll down, if paragraph block is selected in custom child block
Need a little help to solve the behavior issue.
I’ve developed two custom Gutenberg blocks — a parent block and a child block. When a user clicks a paragraph block inside the custom child block and ...
0
votes
0
answers
23
views
move a custom taxonomy from the right sidebar of the post edit page to the central space
I have this code but it doesn't do the desired work. Besides it makes disappear all the custom boxes I have in the center of the post edit page) I want to shift the custom taxonomy in the center of ...
0
votes
1
answer
28
views
Make this navigation bar link exclusively to posts within the same category using the URL structure already provided
<div class="nav-previous">
<?php
$previous_post = get_previous_post(true, '', 'category');
if (!empty($previous_post)): ?>
<a href="/southlake/?oldest">«</a>...
0
votes
1
answer
29
views
Put Page Under Custom Post Type Slug
I have a Custom post type called 'books'. All 'books' have a slug of /books/{post slug} and i've initiated the CPT with this code:
function create_books_custom_post_type() {
$labels = array(
'...
0
votes
1
answer
38
views
Make navigation in single.php only link to posts within the same category as the post being viewed? [duplicate]
Please look at the navigation bar on this webcomic website before responding to understand the objective.
I have navigation set up in single.php to be laid out in the standard way for webcomic ...
0
votes
1
answer
29
views
wordpress twenty twenty five portfolio updating one image updates other columns images [closed]
I am creating a blog and I added a portfolio page to my wordpress blog.
But it is mysterious when I add a image to a column, it updates other two columns also. is it possible to overcome this?
Before
...
0
votes
0
answers
12
views
How to style Forminator's TinyMCE textarea field?
The editor's body has .mce-content-body class and is within an <iframe>. Custom CSS option doesn't work as that's not injected into the <iframe>. I don't see any other way that exists to ...
0
votes
1
answer
35
views
Getting data out of response from REST API in javascript
I am working on a Gutenberg block and am modifying the Edit.js file. I want to fetch the root categories in the database. From the reading I have done, it seems a good way to do this is to use the ...
0
votes
0
answers
14
views
WooCommerce + WPML: Bundle price resets to 0 when switching languages
I’m running a multilingual WooCommerce store using WordPress with WPML and WooCommerce, and I’m facing a persistent problem with bundle product pricing when switching languages.
Setup
WordPress: 6.8....
3
votes
2
answers
151
views
Show exact search results and include post comments?
I'm resurrecting two older Q&As in this question to ask: is it possible to show exact search results which includes comments? Without any plugins?
This function is from an older Q&A Incude ...
0
votes
0
answers
64
views
Starter Templates not loading or freezing during import – WordPress + Elementor PRO + Astra
I’m reaching out for advice regarding a persistent issue with importing templates via the Starter Templates plugin in WordPress.
This problem has been ongoing for over two weeks, and despite multiple ...
1
vote
1
answer
49
views
How do I use fields => ids in an array with WP Query?
In my example below, when using fields => ids https://developer.wordpress.org/reference/classes/wp_query/#return-fields-parameter to get an array of post IDs, why does var_dump($args->posts) ...
0
votes
0
answers
24
views
WordPress Multi-Network, wildcard subdomains returning 404 after custom .htaccess rewrite
using Ubuntu + Hestia control panel (wildcard for subdomains "*.mydomain.com"
In a WordPress Multi-Network (MultiSite inside MultiNetwork with WP Multi Networks plugin) setup,
Each network ...
0
votes
2
answers
30
views
Validating form data register_setting
I defined a setting:
function mypluginblock_browsers_init() {
add_settings_section( 'mypluginblock_browsers', '', '', 'mypluginblock_browsers' );
add_settings_field( 'mypluginblock_browsers', ...
0
votes
1
answer
33
views
After upgrading php 7.4 to 8.3 a selector of my custom search-box doesnt work correctly [closed]
My search box is composed by various selector, if I dont use the selector of the "distance from the sea" I have no results, if I use it, also the other selectors work and I get results. It ...
0
votes
1
answer
48
views
How can I set up WordPress with files in docroot but with apparent directory in URL?
The problem
I have a client site example.com that historically has had WordPress served from https://www.example.com/web/ and a non-WP forum at https://www.example.com/forum/
For performance reasons ...
0
votes
0
answers
29
views
How do I update a WP_Post
The following code shows all post titles. Lets say I change the post_tile and the post_content.
How do I save it? Class WP_Post does not have a save/update method and wp_update_post() wants a '...
0
votes
1
answer
37
views
Disabling Plugin while awaiting a security update
I've read that insecure plugins can still present vulnerabilities, even when disabled, and that it's recommended to completely remove them. However, if a plugin has a security vulnerability, what is ...
1
vote
0
answers
48
views
How to chill out Wordpress ajax requests? (Rate limiting)
How can I configure wordpress to stop spamming my server with ajax calls when I'm editing an article?
Note: this question is about rate limiting my client, not setting rate limits on the server. I'm ...