WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Iamhere
    Member
    Posted 2 years ago #

    Hi

    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(); ?>'},

    http://wordpress.org/extend/plugins/wp-supersized/

  2. Iamhere
    Member
    Posted 2 years ago #

    Hi

    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)

    http://stackoverflow.com/questions/10794009/jquery-supersize-show-ie-error

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic