Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

Inserting code into MULTI-POST pages


  #1  
Old Jan 29, 2010, 05:29 PM
jonasgrumby
 
19 posts · Aug 2009
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
  #2  
Old Jan 29, 2010, 05:32 PM
jonasgrumby
 
19 posts · Aug 2009
p.s. maybe I don't even need the "else" part but I figured it couldn't hurt...

Bookmarks

Tags
archives, center column, ecommerce, page layout

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying comments and comment form below each post on multi post pages, in 3.4.x Flynn Comments, trackbacks & pings 12 May 28, 2011 08:27 PM
[SOLVED] Removing Post Headline on Multi and Single Post Pages jen Center area post/pages 2 Jan 8, 2010 08:46 AM
How do I choose between Single Post Pages and Multi Post Pages? BradyKelly Atahualpa 3 Wordpress theme 2 Jan 3, 2010 06:17 AM
[SOLVED] Display 'Post Count' on all MULTI post pages joan Post-Kicker, -Byline & -Footer 1 Nov 18, 2009 04:08 AM
Inserting between Body and Footer on Multi-Post pages JakeThePeg Post-Kicker, -Byline & -Footer 1 Aug 27, 2009 05:52 AM


All times are GMT -6. The time now is 11:21 AM.


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