I am using the Add to Cart shortcode on a Post. I am listing posts in a certain category on a page using a Display Posts shortcode.
I want users to be taken to their shopping cart whenever they click Add to Cart, but instead they are being taken to the Post.
I’ve tried adding an tag around the shortcode like this:
But the href code only works on the price part of the Add to Cart button, while clicking on the button itself still goes to the Post (although it does add the item to the cart itself).