Prevent or Stop Spam Emails in Contact form 7 If you're receiving spam emails through your Contact Form 7 (CF7) in WordPress, here are some effective ways to prevent them: 1. Use reCAPTCHA (Recommended) 2. Use Akismet Plugin 3. Enable a Honeypot Field using Plugin( Install and activate Contact Form 7 Honeypot plugin) 4. Custom Code (Best) So this tutorial will not cover 1-3 points because that is self explained in the heading . lets try 4th method, how to stop spam emails and block email in wordpress contact form 7 forms. we can use same method in any plugin or custom website. First we need to add an hidden field in our cf7 form. Add below code in your contact form [hidden trap-field class:spam-check] and this code you can add in contact form 7 <script> document.addEventListener("DOMContentLoaded", function() { document.querySelectorAll(".spam-check").forEach(field => { ...
Go to theme and add custom liquid block where you want to show related products and also mention meta field value that you want to show instead of product title {% assign related_products = product.metafields.custom.related_products.value %} {% if related_products and related_products != blank %} <div class="related-products"> <h3>Related Products</h3> <div class="related-products-list"> {% for recommended in related_products %} <div class="related-product"> <a href="{{ recommended.url }}" class="related-product-link"> <div class="related-product-image"> {% if recommended.featured_image %} <img src="{{ recommended.featured_image.src | img_url: 'medium' }}" alt="{{ recommended.title }}"> ...