Here's how to display related products on dripped posts.
- Create a new Custom View with the following settings:

- Add a Product list module to the new Custom View.
- Add the following code to the Product list module:
HTML Code:
<div class="pl">
[product.each]
<div class="t1 col3">
<div class="bdr">
<h2><a href="[product.link]" title="[product.name]">[product.name]</a></h2>
<div class="thmb"><a href="[product.link]" title="[product.name]">[product.image tag='1']</a></div>
<div class="prc">[product.currency mode='sign'][product.price]</div>
<p class="desc">[product.description]</p>
<div class="btns">
<a href="[product.link]" title="View details [product.name]" class="dfbutton dforange dfmedium">Details</a>
<a href="[product.url direct='0']" title="Buy [product.name]" class="dfbutton dforange dfmedium">Buy</a>
</div>
<div class="clearingdiv"> </div>
</div>
</div>
[product.end]
<div class="clearingdiv"> </div>
</div>
- Configure the number of products to show and their sort order in the Product list settings. I set mine to show 3 Products Per Page and sorted the products Randomly.
- Add a Text module to your Default Drip Template view. Add it underneath the existing Product list module.
- Add the following code to the text module:
PHP Code:
<?php echo datafeedr_tag("Dripped Related Products?c=".$product->cat_id); ?>
To prevent the related products from being displayed on Category or Archive pages, add this code:
PHP Code:
<?php if (is_single()) {?>
<?php echo datafeedr_tag("Dripped Related Products?c=".$product->cat_id); ?>
<?php } ?>
- Click the [Update Settings Only] button
That's it.
Eric