Unanswered Questions
35,422 questions with no upvoted or accepted answers
5
votes
1
answer
75
views
How to move the customizations done in the Editor to my child theme?
Dashboard -> Appearance -> Editor -> 3-dots menu -> Export lets one download a zip file, which contains the folders parts and templates that - according to various online tutorials - ...
5
votes
0
answers
880
views
Is doing_wp_cron a necessary query string when scheduling cron.php as a cron job?
I have seen various ways to schedule the WordPress cron so that it is triggered by the server. Some will run the php file directory from the crontab and others will use a wget and reference the url. I ...
5
votes
1
answer
2k
views
Adding a custom PanelColorSettings control to a core block, and using the color slug in a custom className
I'm trying to add a custom color control to the group and cover blocks, and if a color is selected, construct a custom className for the block. This custom class is used for a section separator.
What ...
5
votes
1
answer
2k
views
Once Again: How to Remove Option from Gutenberg Editor for Specific Block in theme.json
Since WP 5.8 we can define various settings in the theme.json which is much appreciated and really helpful. But there are still some options I cannot find, e.g. how can I remove the layout panel from ...
5
votes
0
answers
613
views
How to support Lazy Loading Assets in a WordPress Theme?
I'm using the create-block module provided in Gutenberg Core to build my custom blocks within a plugin. It works great, but I'm struggling to figure out how to conditionally load the assets on the ...
5
votes
0
answers
233
views
Does WordPress only support HTTP 1.1?
I'm not sure if this is a bug or if I'm missing anything. But according to the documentation for WP_Http::request(), you should be able to set the HTTP protocol version with the httpversion option.
...
5
votes
0
answers
882
views
Is there a core Sortable component in Gutenberg?
I managed to somewhat replicate the product gallery metabox from WooCommerce in Gutenberg using the
third-party react-sortable-hoc component. As it seems that this component is no longer supported, I'...
5
votes
0
answers
1k
views
Remove left alignment option in core/image block
I’m trying this code to disable the left alignment option from the core/image block. I just want to make available the center and right alignment options.
wp.hooks.addFilter(
'blocks....
5
votes
0
answers
1k
views
How to use getBlockIndex
I want to create a block with HowTo microdata markup and automatically assign ID to child blocks. I have created a holder as the parent block, and I want to give the first child block id="step1", ...
5
votes
0
answers
486
views
Is it possible to bulk migrate all deprecated instances of a gutenberg block?
I wrote a plugin which defines a gutenberg block. After using this block in posts, I've changed its definition inside my plugin, so now I have a "deprecated" entry in the block configuration ...
5
votes
0
answers
6k
views
How to get_terms() only of terms matching an ACF meta value?
My custom taxonomy "company" has an Advanced Custom Fields field group with fields including a Checkbox, "tags". (This adds to each "company" term fields including "tags", which accepts multiple ...
5
votes
0
answers
1k
views
Exporting revisions
How do you export revisions for posts?
I cloned a site with it's complete Wordpress DB 4 months ago.
After the clone revisions have been made to the existing posts and new posts has been added to ...
5
votes
1
answer
4k
views
WP REST API returns blank response if post is too long
I'm working on an iOS app that requires the use of WP Rest API to fetch posts. Everything is working smoothly and I fetch posts by ID using this endpoint:
https://example.com/wp-json/wp/v2/posts/...
5
votes
0
answers
600
views
Best way of removing emoji support from url / slug only
Couldn't find anything on the topic.
I guess something could be done with the 'wp_unique_post_slug' filter but how would I go about just removing the emojis from the slug?
I've tried all kinds of ...
5
votes
3
answers
2k
views
Find out what is using PHP sessions in WordPress
Is there a way to find out what is using PHP sessions or spawning PHP processes?
My Wordpress site gets heavy traffic (3.5 million hits per month). We discovered recently that we had permissions set ...