WP Supersized
[resolved] integrate with WPEC (2 posts)

  1. Iamhere
    Posted 4 years ago #


    I am attempting to integrate this with WPEC - see the following code -

    Working perfectly in all browsers except IE which is returning an error because of the final comma not being removed.

    How can I implement a fix to use a foreach argument that will strip out the final comma ?

    global $wp_query;
     $my_query = new WP_Query
    ( array(
              	'post_status' => 'publish',
                'post_type'   => 'wpsc-product',
    			//'numberposts' => 5,
                'orderby' 	  => 'title',
    			'order'       => 'ASC',
    			'showposts'   => 50 ));
    while( $my_query->have_posts() ) : $my_query->the_post(); 
    {image : '<?php echo wpsc_the_product_image(); ?>', title : '<div class="slidecaptioninside"><a href="<?php echo wpsc_the_product_permalink(); ?>"><?php echo wpsc_the_product_title(); ?></a> <br /><div class="slidedescription"><?php $excerpt = wpsc_the_product_description(); echo string_limit_words($excerpt,5)."...";?>  <br />Priced from- <?php echo wpsc_the_product_price(); ?> - <a href="<?php echo wpsc_the_product_permalink(); ?>">find out more</a></div>', url : '<?php echo wpsc_the_product_permalink(); ?>'},


  2. Iamhere
    Posted 4 years ago #


    I solved this now. Although I am not using your plugin, you may find this information useful to perhaps implement into your next release (to be able to pull images globally)


Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic