Unanswered Questions
2,696 questions with no answers
6
votes
0
answers
636
views
How to load paginated post pages via ajax
Here's the case I got: I've setup post pagination for my website and everything works well. Except one thing - on every new page request all the resources are loaded again. This makes the website ...
4
votes
0
answers
442
views
extend Meta Box / Document Panel
For a project, I'm trying to figure out the best way to implement a checkbox, related to a post type.
What I'm trying to to:
On the final website, there should be a dropdown-button, with upcoming ...
4
votes
0
answers
3k
views
Gravity Forms: Create fields programmatically
Is there any possiblity to create and manage gravity fields dynamically?
I have form with ID 4 with couple fields. I want to add some fields of type checkbox with my own custom external data which can ...
3
votes
0
answers
569
views
ACF won't load from a custom JSON location
I’m trying to set up local json sync with ACF on a multisite installation. It worked with the default acf-json folder in the child theme, but I’d like to save and load everything from the parent theme....
3
votes
0
answers
394
views
How to fix wrong attribute error for Visual Composer Grid Builder?
Hello I am facing this issue in editing media grid layout of Visual Composer V6.2.2. Below is the error I am getting
Fatal error: Uncaught Exception: Wrong attribute for 'vc_single_image' shortcode. ...
3
votes
0
answers
246
views
How to save a ToggleControl value in a meta field?
I registered a boolean meta field called _meta_restrict in a custom post type:
PHP:
function register_meta_fields() {
register_post_meta( 'custom_post_type', '_meta_restrict', array(
'...
3
votes
0
answers
1k
views
ACF Upload Image in repeater from front-end with custom form? - add_post_meta()
I want to upload images in the ACF repeater. That repeater means the gallery of page.
Point is to create post in custom post type using add_post_meta() method.
Here I have the form :
<input type=...
3
votes
0
answers
572
views
Solve cors problem using rest api or ajax
I'm building an app with nuxt using WP as a CMS, so I have this code in my functions.php to allow any origin (temporary) using the rest api and admin-ajax urls
function add_cors_http_header(){
// ...
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
78
views
How to find out what blocks are added by a plugin
I am creating a plugin, which adds a number of blocks defined by JS/PHP as per Gutenberg documentation. I want to display these block names on an admin page.
Is there a hook or function I can use ...
3
votes
0
answers
679
views
Inserting Schema Markup (JSON-LD) Manually with Custom Fields or any Better Ways?
what is a simple and reliable way to insert schema markup (JSON-LD) in my static WP pages manually? My question is not about creating the JSON-LD code, but how to implement it in the WP source code. I ...
3
votes
0
answers
50
views
Yoast SEO blocking/re-initialising longer running process
I have created a custom plugin, the job of which is to calls an external API to fetch data and fill in some custom tables in WordPress database.
This is really a long-running process (maybe over 30 ...
3
votes
0
answers
479
views
Install plugin remotely
I have seen a couple services ( ManageWP, BlogVault ) where we supply them with the admin login details to our WordPress site and they programmatically install their respective plugin and then connect ...
3
votes
0
answers
608
views
Plugin could not be activated because it triggered a fatal error. (No Error??)
I am having the error while trying to activate a plugin.
"Plugin could not be activated because it triggered a fatal error."
I set WP_DEBUG true from wp-config.php file, but there is no other ...
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” ...