Category "wordpress"

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

Playing audio/video files instead of downloading them on Woocommerce "My Account" downloads section

I have a quick question in regards to WooCommerce and downloadable files. I would like to make the purchased products play in My Account section rather than eas

woocommerce product variation color attributes on product list page redirect to single product page on-click

I want, when I click on these color attributes on the product list page it redirects me automatically to the single product page. it shows similar behavior to

How to show related posts in two columns

I want to show related posts in two columns at the end of the post. My blog is techbyet.com Can anyone help me with this?

Google Tag Manager wont fire if I click on the Copy / Text of the Button

My google tag manager wont fire when I click on the copy of the CTA Button. But it fires when I click the CTA Button area around the copy. If I click "Talk to u