Categories
CMS Mastering Development Wordpress

How to prevent multiple post with same meta value being created simultaneously in WordPress (with ajax)

I’m trying to make my own appointment system for WordPress. For this, I created a post type called "appointments". When users select a service from the service list, the available dates and times are listed. When the available date and time are selected and the appointment is created, a meta key named "appointment_datetime" is added […]

Categories
CMS Mastering Development Wordpress

How to prevent multiple post with same meta value being created simultaneously in WordPress (with ajax)

I’m trying to make my own appointment system for WordPress. For this, I created a post type called "appointments". When users select a service from the service list, the available dates and times are listed. When the available date and time are selected and the appointment is created, a meta key named "appointment_datetime" is added […]

Categories
CMS Mastering Development Wordpress

How to prevent multiple post with same meta value being created simultaneously in WordPress (with ajax)

I’m trying to make my own appointment system for WordPress. For this, I created a post type called "appointments". When users select a service from the service list, the available dates and times are listed. When the available date and time are selected and the appointment is created, a meta key named "appointment_datetime" is added […]

Categories
CMS Mastering Development Wordpress

some one help . search not jump to search page

i have form search : <form action="<?php echo esc_url( home_url( ‘/’ ) ); ?>" method="GET" role="form" class="searchform"> <div class="row"> <div class="col-md-3"> <input type="hidden" name="post_type" value="tourdl"> <div class="item"> <label><img src="<?php bloginfo(‘stylesheet_directory’);?>/assets/images/search-1.png" class="img-fluid" alt="">Nơi khởi hành</label> <input type="search" name ="noi_kh" placeholder="<?php echo esc_attr_x( ‘Search &hellip;’, ‘placeholder’ ); ?>"> </div> </div> <div class="col-md-3"> <div class="item"> <label><img src="<?php bloginfo(‘stylesheet_directory’);?>/assets/images/search-2.png" […]

Categories
CMS Mastering Development Wordpress

How to make meta_query according to dynamic meta_key values in WordPress?

I’m trying to list some users using the get_users function. An online learning plugin I use saves some data in user metadata as course_COURSEID_access_from. For example; If the course ID is 123, the metadata is saved as: course_123_access_from. And the value of this metadata is a timestamp. For example; 1600724678. // First day of the […]

Categories
CMS Mastering Development Wordpress

When looping by a specific variation it shows in stock if a different variation is in stock and need it to not display at all if out of stock

need major help with this one. So i have developed a fully from scratch woocommerce site on wordpress. Its for a client that has tons of different products and product variations. Now I have individual pages that are "shop by specific style page" . Here is my issue, I need to display a loop of […]

Categories
CMS Mastering Development Wordpress

How to filter product by date range in wordpress WooCommerce product archive page

I have a WordPress food site through Woocommerce. The store page is a weekly menu, and I want to show on the store page only the menu for this week. A new list is entered every week. I found the following code and tried to make it do what I wanted, but it never works. […]

Categories
CMS Mastering Development Wordpress

WP_Query not ordering correctly

I have two custom user meta fields created with ACF. One is quantidade_corretas_dia_4 (Numeric, integer) and another tempo_dia_4 (Numeric, decimal). I am using WP_User_Query to get users ordered by both this values like this: $args = array( "fields" => "ids", "number" => -1, "meta_query" => array( "relation" => "AND", "query_one" => array( "type" => "NUMERIC", […]

Categories
CMS Mastering Development Wordpress

WP_Query not ordering correctly

I have two custom user meta fields created with ACF. One is quantidade_corretas_dia_4 (Numeric, integer) and another tempo_dia_4 (Numeric, decimal). I am using WP_User_Query to get users ordered by both this values like this: $args = array( "fields" => "ids", "number" => -1, "meta_query" => array( "relation" => "AND", "query_one" => array( "type" => "NUMERIC", […]

Categories
CMS Mastering Development Wordpress

WP_Query not ordering correctly

I have two custom user meta fields created with ACF. One is quantidade_corretas_dia_4 (Numeric, integer) and another tempo_dia_4 (Numeric, decimal). I am using WP_User_Query to get users ordered by both this values like this: $args = array( "fields" => "ids", "number" => -1, "meta_query" => array( "relation" => "AND", "query_one" => array( "type" => "NUMERIC", […]