diff --git a/templates/single-product/up-sells.php b/templates/single-product/up-sells.php index 75ca4e40c22..baaa90e753e 100644 --- a/templates/single-product/up-sells.php +++ b/templates/single-product/up-sells.php @@ -31,7 +31,7 @@ if ( $upsells ) : ?> get_id() ); + $post_object = get_post( $upsell->get_id() ); setup_postdata( $GLOBALS['post'] =& $post_object );