Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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, 04: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, 04: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 07:27 PM
[SOLVED] Removing Post Headline on Multi and Single Post Pages jen Center area post/pages 2 Jan 8, 2010 07:46 AM
How do I choose between Single Post Pages and Multi Post Pages? BradyKelly Atahualpa 3 Wordpress theme 2 Jan 3, 2010 05:17 AM
[SOLVED] Display 'Post Count' on all MULTI post pages joan Post-Kicker, -Byline & -Footer 1 Nov 18, 2009 03:08 AM
Inserting between Body and Footer on Multi-Post pages JakeThePeg Post-Kicker, -Byline & -Footer 1 Aug 27, 2009 04:52 AM


All times are GMT -6. The time now is 10:50 PM.


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