Unanswered Questions
2,528 questions with no answers
6
votes
0
answers
521
views
Gutenberg Blocks doesn't render correctly when using do_blocks
I'm trying to render a post_content with blocks using the do_blocks function, that takes a gutenberg content, parses every block, and returns an HTML string.
The problem is that some blocks aren't ...
5
votes
0
answers
2k
views
How to allow users login to WP from external domain and make REST requests
Basically what i want to do is:
Use Wordpress as a login system and data storage for web-application on another domain.
Make users able to register and perform REST calls from the application.
Let ...
4
votes
0
answers
91
views
my function doesn't return my post from today
I'm using gravity form to create some custom post type - as events.
Everything is working great, There is some date field to setup the event from x to y date. ALl of this working great.
However, I ...
4
votes
0
answers
759
views
wp-admin remove the subfolder URL
I have a problem with WP. I have a website with this URL: http://sub.domain.com/subfolder My Website works fine, but when I connect on wp-admin, the subfolder URL disappeared (http://sub.domain.com/wp-...
3
votes
0
answers
2k
views
WordPress Ignoring .user.ini
I have a server using Apache and PHP-FPM. The server hosts several WordPress sites with each site running as a different user and using a different pool.
I'm trying to configure the post_max_size and ...
3
votes
0
answers
1k
views
Is it possible to intercept all ajax requests and get the parameters and the returns?
Is there any hook that always goes through it, where I can see all the requests, and also the returns after the "action" that is executed?
I need to intercept all requests, including requests from ...
3
votes
0
answers
1k
views
Add Product categories to Wordpress menu without losing hierarchy
I need to add product categories to Wordpress menu, but when I'm doing this with WP interface it lose the hierarchy
I tried with WP-CLI, but there is no method to specify wich item is the child.
...
3
votes
0
answers
57
views
Get widget settings function?
I am using this to find if a new widget has been added or removed from my site:
serialize(retrieve_widgets());
Works great for added or removed widgets. But it doesn't detect if a widget setting has ...
3
votes
0
answers
742
views
Setting Up PHPUnit tests for WP development on Windows
I've been following the instructions in this article to try to set up some testing.
I got as far as this instruction bash bin/install-wp-tests.sh wordpress_test root 'mypass' localhost latest before ...
3
votes
0
answers
259
views
allow arabic letters when register new account
How can allow arabic letters when register new account ?
i don't need to lose any security.
If any of us, Arabs, want to register in any wordpress blogs we have to use English letters in “username” ...
3
votes
0
answers
201
views
wp_handle_upload_prefilter valid date from input file
I want to ask some help, i'm having problem with thewp_handle_upload_prefilter
Here is the code:
add_filter('wp_handle_upload_prefilter','mdu_validate_image_size');
function mdu_validate_image_size( $...
3
votes
0
answers
283
views
Dynamically add styles to WP TinyMCE editor
I want to add custom styles to Wordpress using dynamic arrays.
My question is how can I add the two arrays to the style_formats array within the 'my_mce_before_init_insert_formats' function ...
3
votes
0
answers
65
views
Render Selected Categories in Admin Edit Post Screen differently
Selected Categories for a post in the admin screen are rendered by:
// Put checked cats on top
$output .= call_user_func_array( array( $walker, 'walk' ),
array( $checked_categories, 0, $args ) );
...
3
votes
0
answers
701
views
Making a follow button, Ajax not talking to php
I'm trying to make a user follow button using AJAX, but for some reason my AJAX isn't talking to my jk_user_follow function and setting the wp_set_object_terms.
PHP
function register_user_taxonomy(){...
3
votes
0
answers
1k
views
Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
I have 8 custom post types (which are actually for 8 different blogs and used as "blog landing pages"). Each custom post type is also a Blog Category and each has several sub categories to it. For ...