Hello,
I am very grateful to this forum as I have learned quite a bit and have achieved some good results while setting up views. Although, I am not able to figure out how to do something that's probably very basic.
I've created a view for featured products with this code:
[wpv-layout-start]
<!– wpv-loop-start –>
<wpv-loop>
<h4>[wpv-post-link]</h4><h5>Product Category: [types field="product-type" id=""][/types]</h5><div class="drbooks-listing-main-image">
[wpv-for-each field="wpcf-product-main-image"]
<a rel="lightbox" href="[types field="product-main-image" size="full" url="true"][/types]" >
<img src="[types field="product-main-image" width="120" height="120" url="true" resize="stretch"][/types]" class="alignleft" alt="[wpv-post-title]"/></a>
[/wpv-for-each]</div>
[wpv-if url="wpcf-purchase-amazon-link" evaluate="!empty($url)"]<a class="amazon-btn" target="_blank" href="[types field="purchase-amazon-link" raw="true"][/types]"><img src="http://www.drphyllisbooks.com/drbooks2014/wp-content/themes/drbooks/img/amazon-buy-button.png"></a>[/wpv-if][trim length="200"][wpv-post-body view_template="None"][/trim]
[types field="product-learn-more" title="Learn more" class="featured-learn-more"][/types]
</wpv-loop>
<!– wpv-loop-end –>
[wpv-no-posts-found][wpml-string context="wpv-views"]<strong>No posts found</strong>[/wpml-string][/wpv-no-posts-found]
[wpv-layout-end]
It works and displays perfect but rather than having the product-main-image work in a responsive lightbox I would rather have it contain the url of it's post link [wpv-post-link]. That way the end user would be taken directly to the product. Any idea on how I could do this would be great.
I thank you for your time and consideration.