How to customize Wordpress comment_form();

I am currently developing my own Wordpress theme and have been recently working on a custom comments_template();. I have read that using the wp_list_comments(); method is best practice for...

Wordpress theme: The font awesome icons not displayed

I have a wordpress theme and i wand to add genericons. My problem is genericons not displayed in any browser: This is my theme files tree: This is the genericon.css...

Getting "Uncaught ReferenceError: google is not defined" error using Google Maps API

I'm trying to customize a marker on the map but I keep getting 'google is not defined'. I've tried different things but it's still not working. I have used an API key and also included the maps...

Change color of sticky menu when scrolled

Am editing a client's website and one thing has got my head spinning. I would like to change the color of the sticky menu once it is scrolled. Can someone help me with a custom css to make those...

Wordpress and Ajax form submission

I'm totally lost here. Can anyone check what is going wrong with the form I'm trying to create here? It should send data with Ajax in WP custom theme without storying anything in the DB. The...

How to change nginx rtmp stream name after call on_publish

My original stream name is 7a0938b1a5e64c5597f959610cb219c9.And I want to change my stream name into testchannel1 after call on_publish.But in hls_path the steam name still same as before.How to...

Avada Wordpress wp_remote_get()

Hello All I am at a loss of what to do on our word press site it is saying wp_remote_get() failed. Some theme features may not work. Please contact your hosting provider and make sure...

NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory)

I've just recently moved my websites from apache2 to Nginx as my new web server backend. got to love problems aha. HTML files in the web host director work prior to php files making there way main...

admin-ajax.php returning 0

I'm currently working on a WordPress contact form, which is created as a plugin. I need the form after submit to send an email without reloading the page. When it reloads everything is ok. The...

How to use form fields in Wordpress to make calculations and display the results in a table?

I'm quite a beginner, and I've been trying to make a form on Wordpress that would enable me to make calculations with the customer inputs, and then display the results in a table (rather in a new...

--allow-root doesn't work running wp-cli in docker container

When using WP CLI in docker, I need to execute it as root. I need to add the flag --allow-root directly in .bashrc and I am trying to figure out why it doesn't work. FROM webdevops/php-dev:7.3 #...

Trying to trace error for why email is not sending after webhook should be triggered in woocommerce

I am trying to see why sometimes the webhook seems to fire and sometimes it doesn't after a purchase in Woocommerce. There is a custom plugin that is supposed to add in a custom topic to the...

NLog initial send and multiple bulk emailing

Background I have a web application written in asp.net core v2.2. I use NLog as my 3rd party logger which emails me each time there's an application error which works well. <targets> ...

How to add open email in browser, in the simplest manner, php, mailto

I am sending out an email with the following line from a webhook that is fired at the end of a purchase in woocomerce in wordpress mail($to, $subject, $message, $headers); the email successfully...

How to submit the custom form data in database in WordPress without plugin using ajax?

I have a created a contact form in the function.php and added short code on my page and it's working. I am getting my form. function st_contact_form(){ ob_start(); ?> <div...

Top align <td> in EDM template

Hoping someone can help me with a small problem I'm having modifying the code for an email template. The template contains <td>'s that when additional copy is added, they center align, but I can't...

Mpdf errʔr during PHP output?

I have an error and don't know why. When I delete part of the form with checkbox it works. When I add it back has this error: Warning: Cannot modify header information - headers already sent...

How to send HTML form data to wp_mail function on wordpress?

I have created a custom html form on WordPress and placed it using HTML widget <form id="form"> <label for="fname">Full Name</label> <input type="text" id="fname" name="name"...

How can I make a docker-compose file with mailhog and wordpress images work?

I have a docker-compose.yml file like this (you might have to go through the article in the link in it): version: '3.3' # +...

WooCommerce 4.0.1 order emails not formatting correctly

Since upgrade to WC 4.0.1 the order emails formatting is not correct. Before, on WC 3.x, the formatting of the emails was correct. Words with spaces between letters, inline HTML, different font...

Unable to use http2 on nginx docker container

I want to use http2 by nginx image, but i tried very long the protocol are still using http/1.1 Dockerfile for nginx: FROM nginx COPY ./docker/nginx/etc/nginx/nginx.conf /etc/nginx/nginx.conf COPY...

PHP Fatal error: Uncaught Error: Cannot use object of type stdClass as array

I'm currently trying to get the ID from the code I've posted below. Array ( [0] => stdClass Object ( [extraData] => stdClass Object ( ...

Uncaught Error: Call to undefined function get_user_locale() in Wordpress?

As of now I have a pro version of WP Mail SMTP And I successfully added that plugin to my wp-admin But when I tried to deactivate the old WP Mail SMTP and activate my new WP Mail SMTP Pro This...

Custom action missing from WooCommerce Order actions Metabox dropdown

With the help of this page I've added an additional email to the WooCommerce emails. I wanted it te be a manual email that I can send to the customer, but it's not showing up in the order in the...

How to keep textarea form values after post only using PHP

I'm trying to design a page for my son who is starting a new business and I require some help with two components. I'm new to this so I've included the full page code, with many references...

How to use ngrok tunnels correctly for best workflow with wordpress and docker compose yml

I am using docker-compose.yml to run Wordpress container with a few other containers... version: '3.7' services: # here is our mysql database db: image: mysql:5.7 volumes: -...

certbot --nginx generates PR_END_OF_FILE_ERROR

a Ubuntu 16.04.6 LTS VPS running nginx is presently bricked in terms of serving pages through port 443. This happened unexpectedly, I assume when a renewal kicked in automatically. Following are...

How to fix "Uncaught Error: Call to a member function get_tax_class() on null" in WooCommerce?

I've an ecommerce app that's was working fine some days ago. After I update the wordpress and woocommerce plugin, the app suddenly stopped working. I think that's something about the plugin that I...

Upload image attachment and send it via wp_mail

I'm trying to make a form where the user will be able to attach image file and then the image will be send on e-mail as attachment via wp_mail. Here is what I've done so far: The code for the...

Multiple Hosts wordpress docker with Traefik

Hello ! I have a question about Traefik using Docker and docker-compose, Indeed, I want to use traefik as a reverse proxy to redirect several services (in my case, several wordpress...