Unexecuted PHP codes are being displayed on Shop sections & products.
Here are some codes that are appearing at the front-end:
get_id() ) ) { $attachment_ids[0] = get_post_thumbnail_id( $product->get_id() ); $attachment = wp_get_attachment_image_src( $attachment_ids[0], ‘full’ ); ?> get_gallery_image_ids(); foreach( $product_image_ids as $product_image_id ) { $image_url = wp_get_attachment_url( $product_image_id, ‘full’ ); echo ”; } } // Closing div found in Close Summary Wrap element ?>
‘name’, ‘order’ => ‘asc’, ‘hide_empty’ => true, ); $product_categories = get_terms( ‘product_cat’, $cat_args ); if ( ! empty( $product_categories ) ) { echo ‘
‘; foreach ( $product_categories as $key => $category ) { printf( ‘
%2$S
‘, get_term_link( $category ), $category->name ); } echo ‘
‘; } ?>
Note: This is testing for my client but once it’s solved I’ll create the same site for my client so please let me know why the issue happened.