WP eCommerce
Using do_shortcode with wpsc_products category_id (1 post)

  1. Blubsi
    Posted 2 years 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">
        <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>
       <?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']
        <p>Nam enim risus, molestie et, porta ac, aliquam ac, risus.
        Quisque lobortis.Phasellus pellentesque purus in massa.</p>
          <li>List item one</li>
          <li>List item two</li>
          <li>List item three</li>
    				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Secondary Widget Area") ) : ?>
    				<?php endif; ?>	
    			<div class="right-col">
    				<div class="contents">
    					<?php the_content(); ?>
    			<div class="clear"></div>
    		<?php endwhile; ?>

    What I get as output is:
    How could I get it working?
    Thanks in advance,


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic