WordPress.org

Ready to get started?Download WordPress

Forums

WP eCommerce
Using do_shortcode with wpsc_products category_id (1 post)

  1. Blubsi
    Member
    Posted 1 year ago #

    Hi again,
    I'm trying to display some categories in a sidebar inside an jQuery UI accordeon.

    I did this:

    <div class="content">
    
    	<div class="container">
    
    		<div class="page clearfix">
    		<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    			<div class="left-col-home">
    
    				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Primary Widget Area") ) : ?>
    				<?php endif; ?>
    				<div class="widget-container">
    					<h4 class="widget-title">Kategorien</h4>
    
    						<div id="accordion">
      <h5>Lochkreis</h5>
      <div>
        <p>Mauris mauris ante, blandit et, ultrices a, suscipit eget.
        Integer ut neque. Vivamus nisi metus, molestie vel, gravida in,
        condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros.
        Nam mi. Proin viverra leo ut odio.</p>
      </div>
      <h5>Buchsenanzahl</h5>
      <div>
       <?php echo do_shortcode('[wpsc_products category_id="24"]'); ?>
    
    	[wpsc_products category_id='26']
    	[wpsc_products category_id='64']
    	[wpsc_products category_id='68']
    	[wpsc_products category_id='72']
    
      </div>
      <h5>Newtonmeter</h5>
      <div>
        <p>Nam enim risus, molestie et, porta ac, aliquam ac, risus.
        Quisque lobortis.Phasellus pellentesque purus in massa.</p>
        <ul>
          <li>List item one</li>
          <li>List item two</li>
          <li>List item three</li>
        </ul>
      </div>
    </div>
    
    					</div>
    				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Secondary Widget Area") ) : ?>
    				<?php endif; ?>	
    
    			</div>
    
    			<div class="right-col">
    
    				<div class="contents">
    					<?php the_content(); ?>
    				</div>
    
    			</div>
    
    			<div class="clear"></div>
    
    		<?php endwhile; ?>
    		</div>
    
    	</div>
    
    </div>

    What I get as output is:
    http://i41.tinypic.com/9to65l.jpg
    How could I get it working?
    Thanks in advance,
    Blubsi

    http://wordpress.org/extend/plugins/wp-e-commerce/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic