Category "wordpress"

WooCommerce: duplicate category child slug, different parent

We have a WooCommerce site with 2 parent categories: New Furniture and Used Furniture. They both have a child category called Chairs. These are the URL's we get

WPDB::prepare incorrect. The query argument of wpdb::prepare() must have a placeholder

having this error do you know what is wrong with my code? Notice: wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeh

Get page permalink in contact form

Hope someone can help me. function leverage_handle_ajax_request() { if ( ! empty( $_POST ) ) { require_once( plugin_dir_path( __FILE__ ) . 'recapt

Hiding certain sections from "quick-view" of wordpress with woocommerce

I am trying to hide a section from either PHP template or CSS override from a website I am working on. The snippet of concern is as follows: div class="widget w

$_SESSION array is empty after redirection - Wordpress

I have a WordPress page template themename/template-payment.php <?php /** * Template Name: payment */ session_start(); ?>

How to add single product tag as body class?

I have seen a lot of references as to how to add a body tags based on WooCommerce categories, but what I am wanting to achieve is to add body classes from produ

WordPress add JavaScript just to one page via functions.php

On one page of my WordPress site i use a photo-gallery. For this i need a js-file. Now the js-file is loading on everypage but its just needed one this specific

How to fix floating header

I've finished my website and everything, but I'm having trouble with the floating header on top, which, as you can see in the image, takes up half of the page.

two toolset custom post type connect with relationship to change permalink structure

i create two custom post type using toolset plugin 'movie' and 'song'. The movie post title is 'titanic' and url is example.com/movie/titanic. The song post tit

How can I hide products from the shop after certain time out of stock?

I'm managing a big store that has a really big rotation of different products. We get new products, after a few days they sell out and then we may or may not re

Change post status to draft (on button click - front-end) with wp_update_post()

I'm adding a button via shortcode into my post on front-end. On click, this button should change the current post status to 'draft'. Changing to 'draft' seems t

How to display post from spesific custom post type's category on Elementor free?

I am trying to make an Elementor module for Custom Post Type, separate into 2 files. [File 1] for setting control. [File 2] to display the custom post type on t

Get start date of event, format it and then display it with a shortcode

I have an [essential grid] grid which goes through some [the events calendar] events. Now in each of those items, I want to display the event start date but whe

Using WPML wordpress with Multilingual laravel application as subfolder

I have a multilingual laravel application. My url structure like that: https://example.com/en/paths https://example.com/es/paths I installed wordpress in /publi

Term_title not working for taxonomy on second level of hierarchie: title not replaced in TITLE tag of Wordpress

I added my own CPT together with a taxonomy. cpt is called: angebote taxonomy: themen (hierarchical) I created my own template file and redirected all calls for

How to upload a video using ACF in WordPress?

I am still at learning phase in WordPress. I cannot figure out in ACF which field type should I choose to upload a video file and which code should I write to s

How do I disable wc-cart-fragments without console error?

I have a client who does merchandise 'drops' where they receive a lot of traffic. In order to limit some of the excess load on the server I am disabling AJAX wc

The Elementor does not work just loaded, when go to custom WordPress page

I try using Elementor for creating a WordPress website but I have this page when I open Elementor on the website. I am using DigitalOcean droplets with Cloudfl

The slider widget doesn't run on elementor builder but runs on the frontend

I just created my first elementor widget. I created a slider widget using the slick slider. This works on the front page, but not on the builder. Does anyone kn

How can I send email to an email stored in a custom post type?

//Sending Email add_action( 'transition_post_status', 'notify_author_on_publish', 10, 3 ); function notify_author_on_publish( $new_status, $old_status, $post )