All Questions
116,375
questions
0
votes
0
answers
2
views
Tree Table rate shipping plugin compatibility with woocommerce 9.2
I am using the tree table rate shipping plugin version 1.29 from this site>> https://tablerateshipping.com/
The problem is>> the save changes button is disabled, i mean you can not click ...
0
votes
0
answers
15
views
rest_api custom csp-endpoint not working (404)
Set a target endpoint for the browser to send the report:
function add_csp_header() {
header("Content-Security-Policy-Report-Only:
report-uri ".get_bloginfo('url')."/wp-json/csp/v2/...
0
votes
1
answer
14
views
Add Imports to Existing WordPress Import Map
How can imports be added to the existing WordPress import map?
Preparing the Module
I have a JavaScript module threeDTest.js which is enqueued using a PHP short-code (set to run everywhere):
...
0
votes
0
answers
11
views
How to add Youtube button in addtoany plugin?
I have no idea how to do.
I tried with php line code but it seems to have a mistake.
/* AddToAny Youtube */
function addtoany_add_share_services( $services ) {
$services['example_share_service'] ...
0
votes
1
answer
15
views
Load specific CSS file
I am learning WordPress Plugin development. I would like to load my specific CSS file in my specific Admin Pages not in other Admin Pages.
How can I do that ?
0
votes
0
answers
22
views
Help me understand this WP_Query argument
I am trying to understand what arguments are used to order products on a page by using var_dump on $wp_query->query_vars.
I get this arguement that I don't understand how it's working [orderby] =&...
-1
votes
0
answers
7
views
Need Help with Project Roadmap: The7 Theme, Elementor, Bookly, and Add-ons [closed]
I'm starting a project that involves cloning the design and functionality of another website using WordPress. I’m using The7 theme (fresh setup) and need to integrate a few key things:
Bookly (for ...
0
votes
0
answers
13
views
PSD File Upload - Media Library not Displaying Thumbnail
I've managed to modify WP so it allows .ai and .psd uploads using the following code:
add_filter('upload_mimes', 'custom_upload_mimes');
function custom_upload_mimes ( $existing_mimes = array() ) {
...
0
votes
0
answers
8
views
Link from outside website or another page to a text widget title
I have a conference theme running on Wordpress, in the main page which is named as FrontPage, I need to add a link in the menu bar to one of the text widgets on the page.
I do not know how to target a ...
0
votes
0
answers
11
views
Disable interactivity for core navigation
I want to disable the default interactivity behavior from the core navigation block. I tried the following:
Load my block variation in the functions.php:
function da_custom_block_variations() {
...
0
votes
0
answers
10
views
How to have this layout using Download Monitor Plugin categories [closed]
I am having an issue with my catalogue page , basically I was using the download monitor plugin with the PAFE plugin ( Piotnet Addons For Elementor), where I could get download files by category, it ...
0
votes
0
answers
25
views
WP_Users_List_Table::display() not working [duplicate]
<?php
if (!class_exists('WP_Users_List_Table')) {
require_once ABSPATH . 'wp-admin/includes/class-wp-users-list-table.php';
}
$user_list_table = new WP_Users_List_Table();
$user_list_table->...
0
votes
0
answers
8
views
How to prevent Frontend Sorting of a CPT from effecting ACF Field group order in admin?
With the free version of ACF, I created a CPT, taxonomy and field group. On the frontend, I wanted to display the CPT by Alphabetical order of the Title so I wrote a query and put it in functions.php. ...
0
votes
0
answers
9
views
Is there a way to suppress deprecation messages only when raised by specific plugins
My ISP has recently updated their default php version, and now a couple of plugins are raising "PHP Deprecated: Creation of dynamic property". I didn't develop these plugins and I don't ...
0
votes
1
answer
21
views
Custom page template from plugin does not work with pre-installed themes in WordPress 6.6.1
So I have a simple Wordpress plugin that just allows me to use custom page templates. Here's the code:
my-special-template.php
<?php
/**
* Plugin Name: My Special Template
* Description: Awesome ...
0
votes
0
answers
9
views
Fatal error with start_lvl and start_el in an abandoned theme
I have been unable to resolve this problem even after reading many related posts. This problem begun after updating to PHP 8. It concerns a theme that I bought many years ago and that has been ...
0
votes
0
answers
14
views
Wordpress content admin approval flow
I need to solve a problem but am not sure how to approach it.
A user can edit a post, but the changes must be approved by an Admin before they take effect. In the meantime, the previous version of the ...
0
votes
1
answer
14
views
Filter hook for the action of listing users
I need to modify the list of users return on the 'All Users' admin page. I am producing a list by having added the list_user capability to the author role and this has produced a list of users. Now I ...
0
votes
0
answers
6
views
Referral system by products category in Wallet for woocommerce [closed]
At present, in wallet for WooCommerce, a fixed amount of referral bonus is credited after sign-up and order completion. We need the referral credited amount will be according to product category wise, ...
0
votes
0
answers
10
views
"Managed Hosting" and wordpress - Are there hosts who will also develop if needed? [closed]
Does anyone know if there are Wordpress hosts that offer code support? Like an hourly rate developer support for light weight tasks.
Basically, we want to hand the finished product to clients on the ...
0
votes
1
answer
15
views
How to clear capabilities cache?
I ran the following code on init:
$author_role = get_role('author');
$author_role->add_cap('manage_options');
That added the Settings menu at the left for a logged in Author. Then I removed the ...
0
votes
1
answer
10
views
How can I add the User Menu for Authors (role)?
I have authors on my site and I want them to be able to add/edit/remove users. I can see how I can add the relevant capabilities to the author role with get_role and add_cap. But, this does not ...
0
votes
2
answers
20
views
How to auto rename JS files to prevent browser cache issues
Im creating a block plugin in worpress and each time I update my JS files, changes do not reflect to frontend because there's a browser cache.
I found some strategies in others frameworks that rename ...
0
votes
0
answers
14
views
Correct way of implementing complex navigation in Gutenberg
I am a bit lost in creating a block theme. I have read a lot about theme development and block development in the wordpress documentation and also at fullsiteediting and have some kind of ...
0
votes
0
answers
21
views
Event: when theme swapped
I want to do some clean-up when my theme is changed out: unregistering cron jobs and other theme-specific things.
I've been trying to look for an event that fires when my theme is being swapped out (...
1
vote
0
answers
16
views
Can I integrate Gutenberg on one page only?
We have WooCommerce now which is specially developed and we use a custom design.
But we would like to use a page builder on the product page itself, so that we can set up, correct and add more easily.
...
0
votes
0
answers
11
views
Custom Dynamic Tag in Elementor not showing image
Hi I am trying to add dynamic tags to the wordpress "image" widget, so that I will be able to choose custom featured image: second-featured-image and third-featured-image.
These second and ...
-1
votes
0
answers
17
views
My wordpress is not working and unable to login. Few files are getting downloaded when clicked on WordPress site
Today I have updated my WordPress version and suddenly now my website is not working. When I click on anything, there are some files that are getting downloaded instead of opening the web page. Also I'...
1
vote
1
answer
42
views
Add independent connections for reading and writing to the database in WordPress
I want to add a read/write separation to my database in WordPress, to optimize queries. I do it as follows (with a MU-Plugin):
class Custom_Read_Write_DB extends wpdb {
public $read_connection;
...
0
votes
0
answers
20
views
Block validation failed for React Component block that rehydrates after taking effect
I have this specific block
than when I insert in the Editor, gives me this error:
and the error states:
Content generated by save function:
<div class="data-props" style="display:...
0
votes
1
answer
38
views
Force logout when role is changed
I'd like to forcefully log users out when their role is changed. For example, if a user is logged into the site and has an existing role of 'Editor' and I change the role to 'No role for this site', ...
0
votes
0
answers
17
views
What do you think about headless WordPress? [closed]
What do you think about headless WordPress?
Does it have any advantages over CMS platforms that were headless from the beginning?
make.wordpress.org/cli/
0
votes
0
answers
29
views
Why can't I see all the views in my stats?
I have a friend who has a wordpress blog, too. Sometimes he opens and reads my blog but it doesn't appear in the statistics. The wordpress showed it a long time ago. Why not now? What changed? How can ...
1
vote
1
answer
39
views
Using a shortcode to get User Emails by role as specified in the shortcode, need help to allow for multiple roles
I have the following working code:
function get_emails_by_multiple_roles ( $atts ) {
$user_args = shortcode_atts ( array (
'role' => 'role' ,
), $atts );
$users = get_users( $...
1
vote
1
answer
78
views
Problem in MySql query on Wordpress
According to https://developer.wordpress.org/reference/classes/wpdb/
I'm trying to retrieve a value in a WP table with a simple query
<?php
global $wpdb;
$results = $wpdb->get_results( "...
-1
votes
0
answers
14
views
Why my products Thumbnail not show ,after this products already have rankings in Google?
When i upload the products by wordpress editor, i have uploaed the thumbnail, such as the pics reference:
And now this products keywords have rank in google, but the thumbnail is not show in the ...
0
votes
1
answer
16
views
How to clear backbone cache?
I use backbone to display content. So, something like...
postsCollection
.fetch({ data: data })
.then((posts) => {...});
This works well.
However, when I create a new post that is supposed to also ...
0
votes
0
answers
28
views
add_filter not Working after WordPress Upgrade [closed]
I am using the Paid Membership pro plugin to manage payments. I have a custom field that I want to validate in a child theme. I had the code that used to work with the previous version of WordPress. I ...
0
votes
0
answers
15
views
How to get woocommerce product vendor information by product id [closed]
I have woocommerce plugins 'product vendors' installed on my woocommerce. I am trying to add certain information if the product is from a certain vendor. Now the problem is that I can't find any ...
0
votes
2
answers
36
views
Split titles by the " - " in Wordpress
I wanted to divide a Wordpress post title by the hyphen, in PHP and HTML in a Wordpress page for different div's.
Here's an example of the title i wanna divide "Charli XCX ft. Billie Eilish - ...
0
votes
0
answers
11
views
Page linking issue
I have the following navigation items: Home, About Us, Services, and Contact.
Under the Services menu, I have two sub-menu items: 1. Business Analysis and 2. Training Management. I have created ...
0
votes
0
answers
20
views
Why does website not scroll to top of container when phone is rotated?
I'm using Elementor. I have a container that has a price list in it which looks terrible on mobile portrait. I used the responsive setting to hide that container on mobile portrait. Then I added a ...
0
votes
0
answers
19
views
Get_Template_Part and Template files in TwentyTwentyFour Block Editor
I am building a project using WordPress 6.6.1. I have opted to create a child them which extends TwentyTwentyFour and therefore relies on the new block editor which is packaged in that parent theme.
...
0
votes
0
answers
9
views
wp_plugin_dependencies_slug filter hook to activate plugin with dependency in pro version
I am creating a WordPress plugin that needs to have two dependencies: Contact Form 7 and Advanced Custom Fields.
I am trying to use the new Plugin Dependencies introduced in WP 6.5: https://make....
0
votes
0
answers
9
views
Display Gutenberg blocks from "Posts Page" above the post list?
I have created a page that is set as my "Posts Page" in the "Reading" settings. On that page I have added a Gutenberg block but it doesn't show up on the page so long as I have the ...
0
votes
0
answers
19
views
Can't save/get Patterns' `post_content` attribute
I am currently successful at getting the WordPress patterns via the following query:
SELECT * FROM {$wpdb->posts} WHERE post_type = 'wp_block'
Problem is, I realized post_content is empty, except ...
0
votes
0
answers
19
views
When i create a blog and add an image to it, the blog of the that image is created and Published and search a blog to show both ? how to solve it?
I have created a blog on my website and added images. However, when I search on Google, both the image (Media) and the blog are showing up, but I only want the blog to appear. For example, the blog ...
1
vote
1
answer
64
views
wp_verify_nonce for comment form is not returning false
Nonce creation; for testing purposes with 30 seconds:
//function to generate nonce field
function noncelife(){ return 30; }
add_action( 'run_custom_nonce_value', 'custom_nonce_value' );
function ...
0
votes
1
answer
18
views
Function to filter numbers from string
I'm looking to filter numbers from a string, and make them bigger in one case, and hide them in the other. The best way, as I understood, would be to use a custom function via functions.php and ...
1
vote
0
answers
13
views
Custom true nonce in conjunction with WP nonce in PWA
I'm looking for security advice on a nonce scheme I'm considering.
I have single page application with a WP backend. When the WP nonce expires, a page reload is necessary for the app to resume ...