wpsc_the_product_title
is just a wrapper for get_the_title
, and it doesn’t take any arguments.
Call setup_postdata( $item['prodid'] )
at the start of your foreach
loop, and then the function should perform as expected.
wpsc_the_product_title
is just a wrapper for get_the_title
, and it doesn’t take any arguments.
Call setup_postdata( $item['prodid'] )
at the start of your foreach
loop, and then the function should perform as expected.