| | |

WordPress Tip: Imbedding NextGEN Gallery Into WP e-Commerce Description Field

Problem: Can’t embed NextGEN Gallery short code (eg: [ nggallery id=1 ]) into WP e-Commerce’s product description field.

Partial solution (for version 3.7.7 only):

  • File location: wp-content/plugins/wp-e-commerce/wpsc-includes/wpsc_query.php
  • Line 278
  • Replace the return statement:
    return wpautop(wptexturize( wp_kses(stripslashes($wpsc_query->product[‘description’]), $description_allowed_tags )));
  • WITH:
$description2 = wpautop(wptexturize( wp_kses(stripslashes($wpsc_query->product['description']), $description_allowed_tags )));
$description2 = apply_filters('the_content', $description2);
$description2 = str_replace(']]>', ']]>', $description2);
return $description2;

Result: This mostly works. The NextGEN Gallery displays fine, but the pop-up slideshow simultaneously overlaps the lightbox image overlay. Still gotta figure this out.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *