Hi,
The shortcode should be placed into any page that you want to show the listing. That means if you want the listing to be shown on each product page then either each product should have the shortcode, or you should add some code to your theme’s product-page templates to call the shortcode. The following PHP illustrates how to call the shortcode within a template:
echo do_shortcode( '[a-z-listing ...options here...]' );
Note that the default styles are not applied when you call the shortcode yourself like this, so you also need to add the following to your theme’s functions.php
file to force the styles to be included on each page:
add_action( 'init', 'a_z_listing_force_enable_styles', 99 );
-
This reply was modified 3 years, 5 months ago by Dani Llewellyn. Reason: add missing `echo` to shortcode function response