I'd like to add "Add To Cart" buttons below each post on MULTI-POST pages. I thought I could enter something like this below the loop but it doesn't work...
PHP Code:
<?php
if (is_archive()) {
echo '<div><?php echo do_shortcode('[eshop_addtocart]'); ?></div>';
} else {
echo ' ';
}
?>
This part:
PHP Code:
<?php echo do_shortcode('[eshop_addtocart]'); ?>
Does work when I insert it via the Post Layout plugin but I can't seem to add it to the theme. What I was hoping to do was to make the buttons show below the abbreviated posts on those pages.
Thanks