- This topic has 1 reply, 2 voices, and was last updated 13 years, 6 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › How do I get the 'Add to Cart' button to show up in archive.php?
Tagged: shortcode filtering on excerpt
I guess this is a WordPress bug as I have the same issue with any type of plugin when trying to get the blog post archive to display anything but the basics.
For example, if I move the [wp_eStore:product_id:1:end] shortcode up to the top of my post there is no way that archive.php will actually display my ‘add to cart’ button in the post summary.
It’s the same deal with the WP Audio Player plugin, shows fine on the actual blog post page but doesn’t display on archive.php
Is there any way around this?
Cheers
Hardgristle
Usually on an archive page the theme only shows the excerpt of the post and by default shortcode filtering is not on for excerpts.
This post will tell you how you can enable shortcode filtering on excerpt:
https://support.tipsandtricks-hq.com/forums/topic/display-add-to-cart-button-in-post-list
Also, use the following shortcode (this is the proper shortcode version implemented using shortcode API):
[wp_eStore_add_to_cart id=1]