Category "wordpress"

WordPress Loop Post Counter Never Changes

I want to style the first post differently so I am trying to use a simple counter that will add a class to the first post. First, on index.php I have this if (

How to take a JSON content and return it in a wordpress function (php)?

I have a wordpress endpoint and I have some json data. Unfortunately I dont know how to return this json data in the function. I tried json_decode but it doesn'

WooCommerce Subscriptions automatically change status of manual recurring orders to processing

I am using WooCommerce Subscriptions with manual payments using the 'bacs' payment method. When recurring orders are created, the code below changes the status

How to Keep wp-content folder after releasing a new container?

I have a Wordpress instance on Azure App Service. I release it as an Azure Docker Container. I use a single DockerFile. My release process is working as expecte

Flutter WooCommerce Customer registeration failed using Dio?

I am buidling flutter woocommerce store app for customers. I want to create/register a new customer using Dio() and I am using WordPress Plugin JWT Authenticati

Woocomerce Local Pick Up - I want to add a reference on pick up / collection

Hi am using Woocomerce for pre sale of items at an event with a collection only option. When these are collected I want to update the order to Picked Up (or Col

Can we use a webservice with Wordpress?

I change the details with the new information. Here is the situation: Our customers have Wordpress sites, they can customize it as they wish with the theme of t

Can you add apps made from (js, nodejs, express and mongodb) in a wordpress website?

I already have a wordpress website. I studied web development using js, node.js, express and mongodb and build some projects. I would like to add it to my websi

Store when a coupon last time was used in WooCommerce

I need to record the date of the last time each coupon was used in WooCommerce. I have seen that the post_meta table saves a used_by record with the emails of t

Adding aria-label to dropdown using contact7 form plugin

Am using contact7 plugin to design form for my client. I want to make it ADA compliant, somehow not able to add aria-label to dropdown boxes. This is how my cod

WordPress Elementor hiding sections when having a shortcode

as soon as I add a shortcode to my WordPress site some sections disappear on the actual Site if I save it in the preview Elementor I see everything but if I ope

Create missing .htaccess file in wordpress and add the default wordpress .htaccess rewrite rule in it

I am stuck in a difficult situation here I have hundreds of addon and subdomains under my "public_html" having WordPress instances inside them. While cleaning u

Query to get Woo products in a parent-children order

I want to build a MySQL query for a Woo database schema to get simple/variable products, but in a specific order: I want to get them in an ID ASCending order, b

Why is 'szbd-shipping-method:5' not being unset by my snippet here? [duplicate]

To open, I do not know PHP. I have cobbled this snippet together from the information in these two links -> Show and Hide div based on day

Bike parts in box are not fixing in one place - html css

I am using Visual Products Configurator as per client needs. The product is a bike, and it is divided into 4 parts. Bike body Front wheel Back wheel Seat I am

Imitate click with jQuery to get filtered multigallery by URL

I have website, created with Elementor. Website belongs to photographer. He has got there an Elementor Multigallery, with filter at the top. I need to create ex

SetaPDF Merger for Wordpress result with error “Headers already been send in”

I am using SetaPDF Merger and I am almost finished with my project to set it up for my WordPress site. But of course I run into trubble. I have a repeatable fie

Filter function for wordpress seo title

I do SEO for a client of mine and we use a plugin to showcase cars, getting the data from Mobile.de. Now this plugin takes the cars name e.g. "Nissan X-Trail 1.

From Advanced Custom Field's checkbox, I need to add something as checked in the checkbox

this is what my code looks like: Any help will be very appreciable. <?php $btn = get_field('line_btn'); if( $btn && in_array('stu

Why is Elementor is causing my wordpress website to not load?

I'm very new to WordPress and php, I started using it yesterday and it was all going smoothly until I decided to install some starter templates. the installatio