WooCommerce Price Filter – Trigger When Slider Changes
So that when filtering prices in the WooCommerce CMS online store of the WordPress standard filter system, automatic filtering occurs without clicking a button, you can insert this js code into the file with...
A simple script for tabs in jQuery
Let's look at a simple tab script written in html, css and js (jQuery). You can implement this tab script into any CMS system or any framework.
HTML code:
<!-- HTML BLOCK -->
<div class="tabs-wrapper">
<div class="tabs">
<span class="tab">Tab...
Outputting information from ACF fields in WordPress shortcode
Let's look at how to display information from ACF (Advanced Custom Fields) fields via the Wordpress shortcode anywhere on the site. Let's display a field of type "Repeater". For example, we have a task...
Ajax requests in WordPress using jQuery
How to write Ajax requests in WordPress using php and js? To create an ajax request, you need to register an action handler (method) in the functions.php file:
// Mini cart ajax in functions.php
add_action( 'wp_ajax_minicart',...
Custom api route for updating ACF fields in WordPress
Let's write our own custom api route to update ACF fields. The api request will have two handlers - POST and GET. GET - will display any information upon user request by post id...