Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   Inserting code into MULTI-POST pages (http://forum.bytesforall.com/showthread.php?t=5593)

jonasgrumby Jan 29, 2010 04:29 PM

Inserting code into MULTI-POST pages
 
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

jonasgrumby Jan 29, 2010 04:32 PM

p.s. maybe I don't even need the "else" part but I figured it couldn't hurt...


All times are GMT -6. The time now is 12:02 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.