Unanswered Questions
3,810 questions with no upvoted or accepted answers
0
votes
0
answers
16
views
Is AJAX relevant when inserting a new post programmatically?
What I'm already able to achieve :
Inserting a new post with the WordPress function.
Doing it programmatically when some conditions are fulfilled.
The downside of this way of creating new post is ...
0
votes
0
answers
13
views
How do I ensure that the URL parameters are updated correctly when multiple filters are applied
I am writing a product filter, and ran into this issue.
I have 2 different attributes of my product filter:
Tilt -- as a checkbox with "Yes" or "No", and Multibrand Compatible -- ...
0
votes
0
answers
17
views
Filtered queries not responeding to page path
I am writing a product filter, and ran into this issue.
I have 2 different attributes of my product filter:
Tilt -- as a checkbox with "Yes" or "No", and Multibrand Compatible -- ...
0
votes
0
answers
17
views
Is it possible to alter or replace the onChange function of an input within the InspectorControls panel?
I am writing a plugin and attempting to alter what attribute gets updated when changing the value of an input in the editor sidepanel. I am filtering a function through editor.BlockEdit using wp....
0
votes
0
answers
15
views
My wordpress plugin defaults to English (US) I would like it to default to English (UK)
I have written a Wordpress plugin which has been accepted into the repository:
https://en-gb.wordpress.org/plugins/english-chess-data
I have noticed that the language it is listed as is English (US), ...
2
votes
0
answers
40
views
Ways to reduce code duplication when creating custom blocks
I'm a bit of a rookie, so I may be looking at this all backwards - but if that is the case having someone point me in the right direction would be incredibly valuable!
I'm creating a few custom blocks ...
0
votes
0
answers
36
views
how to include an image in the build of a multi block plugin
My WP plugin should show some (default) images in the font-end and editor UI. However, the URL generated with my code, refers to the build folder, while the images are not.
This is my structure:
lucy-...
0
votes
1
answer
22
views
When a foreach loop is used multiple times in blocks, is there a way to ensure a variable always has a unique value?
I'm a bit new to this so sorry if my explanations are a bit daft.
We use custom gutenberg blocks on our site. One of them is a FAQ block where you can add questions/answers and they display as an ...
0
votes
0
answers
17
views
WordPress Block with Interactivity API e Preact Component
Good evening, everyone. I am developing some custom blocks with the new Interactivity API. Within some of the blocks I need to use some complex components that I decided to develop with Preact, so as ...
0
votes
1
answer
30
views
WP_Query with multiple categories unexpected behavior
I'm working on a custom filter that uses checkboxes to choose which categories to show. I'm trying to get it show posts based on selecting more than one category. When I test with hard coded ID's it ...
0
votes
0
answers
15
views
media_sideload_image only works on localhost and without return id or src
I'm trying to use media_sideload_image like in this question:
Can't upload image using media_sideload_image
it works on localhost with add_filter('https_ssl_verify', '__return_false'); for testing ...
0
votes
0
answers
20
views
npm ERR! notarget No matching version found for @wordpress/components@^12.5.0
I am trying to create a Gutenberg block and have issues compiling it. I get this error when I run the following command. Can anyone help me in fixing the issue or atleast suggest/tell me what to do ...
0
votes
0
answers
22
views
How can I keep a WordPress dropdown menu open when navigating to a child page?
I'm using WordPress with the Astra theme (free version), along with Elementor Header & Footer Builder (free version) and the WP Mobile Menu (free version). I've set up a dropdown menu, but it ...
0
votes
1
answer
18
views
Custom theme on multisite has issues with standard loop output
I am experiencing the following error output when using the standard loop on page.php and single.php on a multisite-based WordPress installation. The loops are the same for both template types, with ...
0
votes
1
answer
9
views
Files in build directory no longer working as expected
I have a serious issue with the files in my build directory after running the wp-scripts build command. None of them work when I try to run my plugin. The build directory used to have files along the ...