Unanswered Questions
1,474 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 ...
6
votes
0
answers
248
views
Customize WordPress Media Manager - Media Window
Im trying to customize the wordpress media manager "add media" window to get it as simple as possible to use. So i want to disable/ hide the following fields/ functions because i dont need some or ...
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 ...
3
votes
0
answers
82
views
Can I customize any WordPress parent block-based theme template files by child theme like a parent classic theme?
Usually, I can replace the template files and PHP codes of any parent classic theme with child themes. Since block-based theme templates rely on HTML, how can I replace parent block-based theme files ...
3
votes
0
answers
2k
views
Changing order title and featured image in blog post (Astra theme)
The HTML of a post type, I want to swap the position of the title and the thumbnail. I noticed that the title and thumbnail are inside a <header> tag. So I went looking which template file has ...
3
votes
0
answers
388
views
Remove elementor header and display default theme header
I am using Elementor pro and I am using Tabor wordpress theme(Here theme link: https://themebeans.com/themes/tabor/). I create custom footer within elementor pro and I noticed that the default theme ...
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
668
views
replace parent theme images in child theme
My images are found in the parent theme in this folder directory structure:
public_html/wp-content/themes/listingpro/assets/images
I tried placing replacement images with the same name in the ...
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
2k
views
Updating users_can_register option?
I have a custom setting page, where i have a radio to Enable or Disable Registration then try to update the wpoption (users_can_register).
Screenshot:
I've tried both true/false & 1/0 but it ...
3
votes
0
answers
39
views
Date/time limitation of posts where function must be executed
I have this piece of function in my functions.php file:
function user_content_replace($content) {
$sentences_per_paragraph = 3; // settings
$pattern = '~(?<=[.?!…])\s+~'; // some punctuation and ...
3
votes
0
answers
5k
views
Force update all posts in custom post type, no content changes
I have imported data from a custom post type that has location data for a map plugin (Progress Map). I have about 500+ posts each with different location data. For some reason the location data isn't ...
3
votes
0
answers
182
views
WP REST API route request explain
Maybe can someone explain or show additional info about "WP REST API route request" from beginning to the end.
Main questions, how handle this request in most earlier stage. For example for ajax ...