NEW Set Up Tap to Pay on Mobile Devices
Set Up Tap to Pay on Mobile Devices
It's not just about schema markup - it's about turning your blog into a sales engine.
The SEO featured_products metafield is powerful for connecting your blog content to actual products - creating a bridge between educational content and sales opportunities. Let me break this down completely.
Blog post mentions "4-inch ornaments" with no direct product connection
Blog post automatically displays your actual 4-inch ornaments with prices, links, and schema markup
Manual linking that breaks when products change
A Dynamic system that updates automatically when you modify the metafield
You write about decorating tips and mention:
Instead of manually linking, you select products in the metafield:
The system automatically:
The SEO featured_products metafield creates a structured connection between your blog posts and specific products mentioned in the content. This serves multiple purposes:
Instead of manually linking products in blog content, you tag which products are featured using their Shopify handles, then use this data to:
Product Handle = URL slug for the product in Shopify
Example:
running-soccer-boy-with-uniform-personalized-ornament
yourstore.com/products/running-soccer-boy-with-uniform-personalized-ornament
yourstore.com/products/running-soccer-boy-with-uniform-personalized-ornament
running-soccer-boy-with-uniform-personalized-ornament
/admin/products/[PRODUCT-ID]
running-soccer-boy-with-uniform-personalized-ornament
Shopify Admin Path: Settings → Metafields → Blog posts → Add a definition
Configuration:
Note: Shopify automatically creates the namespace and key based on your name - you don't need to manually enter these.
custom.featured_products
custom.related_items
custom.mentioned_products
custom.article_products
article.metafields.custom.featured_products is self-documentingPro Tip: If you're creating multiple product-related metafields, use consistent naming:
When editing a blog post, you'll see:
Featured Products: [Search and select products...] Selected Products: - Red Glass Christmas Ornament 4-inch - Ornament Hooks Heavy Duty - Christmas Tree Garland Gold
Behind the scenes, these stores: red-glass-christmas-ornament-4-inch,ornament-hooks-heavy-duty,christmas-tree-garland-gold
Note: When you create a metafield named "Featured Products", Shopify automatically generates the namespace and key (typically custom.featured_products).
Blog Post: "How to Decorate a 6-Foot Christmas Tree"
Content mentions these products:
Featured Products Metafield Setup:
red-glass-ball-ornament-4-inch
gold-glass-ball-ornament-3-inch
heavy-duty-ornament-hooks
christmas-tree-star-topper
led-string-lights-warm-white
Blog Post: "Back to School Outfits for 3-Year-Olds"
Content features:
Featured Products Setup:
hanna-andersson-organic-cotton-dress-3t
mini-boden-cardigan-navy-3t
stride-rite-school-shoes-size-9
personalized-lunch-box
This is where most people get stuck - knowing exactly where and how to add the code. Here's the complete step-by-step process:
Access Theme Files:
Create New Snippet:
blog-featured-products (no .liquid extension needed)
Add the Liquid Code: Copy and paste this code into your new snippet:
{%- comment -%}
Display products mentioned in blog post
Place in snippets/blog-featured-products.liquid
{%- endcomment -%}
{%- if article.metafields.custom.featured_products -%}
<div class="blog-featured-products">
<h3>Products Featured in This Article</h3>
<div class="featured-products-grid">
{%- for product_handle in article.metafields.custom.featured_products -%}
{%- assign featured_product = all_products[product_handle] -%}
{%- if featured_product -%}
<div class="featured-product-card">
<a href="{{ featured_product.url }}">
<img src="{{ featured_product.featured_image | img_url: '300x300' }}" alt="{{ featured_product.title }}" loading="lazy">
<h4>{{ featured_product.title }}</h4>
<p class="price">{{ featured_product.price | money }}</p>
<button class="btn btn-primary">View Product</button>
</a>
</div>
{%- endif -%}
{%- endfor -%}
</div>
</div>
{%- endif -%}
Internal Linking Boost:
Reader Experience:
Editorial Workflow: