Category "wordpress"

Wordpress - User last login date shortcode not work

I have this shortcode, it should show the last login date to users. The problem I find is that all other users are viewing my last login date and not their date

Digitalocean basic droplet for wordpress website showing database error every now and then

I have created a basic 5$ droplet with digital ocean to host a wordpress website. After installing the wordpress as soon a i login to the dashboard and start wo

Wordpress: give a post a taxonomy if the name is smaller then date

The custom post type has the name/title with date: yyyy-mm-dd-name. I would like to check every hour, if the date is "bigger/newer" then in the title. If yes, a

Wordpress 5.9 and wp_lazy_loading_enabled filter issue on images

since WP 5.5, I had to add this function to my theme to prevent rendering issues in an image slider due to automatic lazy loading in WP: add_filter( 'wp_laz

I want to show the woocommerce shipping methods of only selected state / country?

Is there any way to show the woocommerce shipping methods of the selected country or states and hide all other states and countries' shipping methods? [1]: http

Attribute Not Updating with NumberControl

I have a Attribute which is designed to be controlled by a Number Control Attribute <NumberControl label={ __( 'SM' )

"Edit with elementor" button missing

I've got a site hosted on altervista.org that works with WordPress 5.9.3. I use Elementor for my pages. I've recently installed a plugin called "Redirection", a

Wordpress Block Query Loop ID?

I've created a Query Loop on a Post. It works fine. If I change to Code Editor, I see there is a queryId:{int} which is generated. I'm wondering where that int

Redirect wordpress website to another site

I moved my wordpress website with updraftpluse backup plugin to another domain and now when I open new domain website redircet to Previous domain. what can I do

Menu Item does not break like but pushes one word over the other when re-sizing window

It's probably something small, but I cannot figure it out. When resizing the browser window, the string in the list items don't break onto a new line. (see imag

Weglot does not translate some strings

We translated our WooCommerce store via Weglot and everything worked fine. Unfortunately, some words on the home page were not translated. It is the section on

Ajax Loaded Content - Deeplinking URLs

On my WordPress website I have a custom page template containing a post grid (showing the titles only) and on click on the title it is loading the whole content

How do I remove the links from product names in WooCommerce order emails?

When a customer receives their woocommerce order completed email, there are 2 columns. In the left column is the product name and in the right column is the dow

Change "view-order/order-id" url/endpoint in WooCommerce My account - orders to "orders/order-id"

Currently the URL, under the WooCommerce 'My orders' tab, for the button when you view an order in detail is equal to /my-account/view-order/ORDER-ID/ I would l

Remove Klarna Payments with cash on delivery method

I have a problem with a code. So I have five different payment methods in my site. When a customer select "Cash on delivery" as shipment method all the payment

How to use a custom post type slug within another custom post type's slug

I have created two custom post types in my wordpress project: city and property using the below query. register_post_type('city', array(

ReactJs and Wordpress api is there a way to upload media

I am using ReactJs for my frontend and I am trying to upload a image to my backend which is Wordpress. Currently I am able to create post, pages, and do other t

Issue with saving custom field (custom post type) in WooCommerce coupon usage restriction tab

I'm trying to add a new field in the usage restriction of coupons. Here is my code: function add_coupon_cpt_field() { $value = get_post_meta( $post->ID,

changing the display location of custom product field on a variable product page

i added a custom field to a variable product and displayed it on the front single product page with the help of an answer here https://stackoverflow.com/a/55774

Products color should show through color variations in woocommerce

I have added two variations at product page in woocommerce. Size Color Color image is moving and appearing at the front, once i am selecting the size also. But