Category "wordpress"

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

How do I update Advanced Custom Fields on Wordpress with node-WPAPI?

I'm using node-wpapi to interact with my Wordpress site. I have the Advanced Custom Fields and ACF to REST API plugins installed. I'm trying to use wpapi to upd

Post content/image not showing up on a wordpress website; only when clicking on the post it shows

I can't find the solution to this problem. On my wordpress page some content is showing up and some content is not. Usually if I made a post of just a single im

Remove add to cart button on WooCommerce single product page if product has been purchased and show MP3 player instead

We have a WooCommerce store that sells files (MP3/MP4) to registered users and enables the user to play them in the "Downloads" section of their account (we hav

TextLocal.in SMS Api for new order Woocommerce

I am using the following API code to send an SMS when a new order is placed, the SMS API code is working to send SMS... Placed at the end of child theme in func

Wordpress/Apache rewrite/redirect rule and regex

I need to do some apache rewrite/redirect rules to external webservice in case of 404 error for specific file extensions: .jpg, .png, etc. Wordpress is used her

button doesn't add to cart - WooCommerce

I'm not sure why this is not allowing me to add to the cart. I have access to the global product but it's not capturing the ID to add to cart <?php /**

How to use React for Wordpress templates without the Gutenberg editor

My current Wordpress setup uses the classic editor, ACF and Twig templates. Most of the theme is hardcoded in the templates, and only values are pulled from ACF

Is there any way i can load my inline and external scripts in WordPress plugin for AMP site?

I got stuck on loading scripts in amp sites (WordPress). I have built a custom plugin and it's working fine in WordPress but in mobile amp view, the scripts are

Strategy for deploying finished React app in Wordpress

I'm developing a web application using React and WordPress as a headless CMS, since WordPress as a backend is easy for my client to access and change. The React

Add PHP to page.php in WordPress via a plugin

I am trying to add the below code to a page.php file but call it from a custom plugin. At the moment, I have modified the theme's page.php but want to move cust

Wordpress Multisite brakes wp-load.php

I'm trying to write a small tool using php. This temporarily connects to one of two Wordpress systems on the same web space by loading the wp-load.php of the ne

Google map plugin in custom fields how to add custom division

How to override custom fields template google map plugin page.custom-fields.php