<?php if( have_rows('your_repeater_field', 'option') ): ?> <?php while ( have_rows('your_repeater_field', 'option') ) : the_row(); ?> <?php $post_object = get_sub_field('your_post_object', 'option'); ?> <?php if( $post_object ): ?> <?php $post = $post_object; setup_postdata( $post ); $title = get_the_title( $post_object->ID); ?> <h4><?= $title ?></h4> <?php wp_reset_postdata(); ?> <?php endif; ?> <?php endwhile; ?> <?php endif; ?>
Free
ACF Query Upcoming and Past Events
events-query.php
upcoming.php
past.php
ACF Repeater & Post Object & Options Pages
Option Page template for Advanced Custom Fields
Accordion for ACF Repeater Field
PHP
JS
SCSS
Hide Free Shipping Notice of Current User is WholeSale Customer
Shadow Divider with CSS
Add Custom Fields to Rest API
Query Posts by Custom Fields in WordPress
Query WordPress Posts by Advanced Custom Fields
Unset Shipping Methods if Free Shipping is Available
Unset all other shipping methods
Unset specific shipping method
Add fee to checkout for COD shipping except specific shipping zone
Display Breadcrumbs without Plugin in WordPress
Add custom class to WordPress excerpt
Archive with numbered pagination – loop posts
template-parts/content-archive.php
SASS
Add hreflang markup to head section of WordPress Multisite
Let’s set up hreflang language markup in HTML for all language versions
Add hreflang to the HTML of each page that you want to specify alternative versions. The tag should be added at the beginning of the head section after Title and Description.
Variable hreflang x-default
- If there is a language selection page, a line of code should be added to it with the hreflang attribute and a “default” value.
- The x-default value of the hreflang attribute tells you that this page has no specific language, regional settings or it is an IP-dependent page, in other words, it is the default page.
- If there is no specific language version for a user, the default page will be shown to him.
echo '<link rel="alternate" hreflang="x-default" href="https://YOURWEBSITE.com" />';
Conversion Tracking for WooCommerce
Google Ads Global tag
Event snippet for conversion page
Display Product Price with VAT in Single Product WooCommerce
WordPress asking for my FTP credentials to install plugins
sudo chown -R www-data:www-data PATH_TO_YOUR_WORDPRESS_FOLDER