Firstly, I adore this plugin, it is beautifully crafted and this is the only issue I’ve had so far.
I’m using the plugin as an excellent way to show related products with the eshop plugin (as it uses pages for its products) and I want to be able to display the Add-to-cart button for these products in the sidebar. The Add-to-Cart button is displayed using shortcodes.
I have modified a custom template so it shows the product thumbnail, title and the excerpt, however in the excerpt for the related pages it shows the actual text for the shortcode, e.g. [eshop_addtocart id=404] and doesn’t execute it.
I’ve added a filter to my functions.php and this makes the shortcode work for all my other excerpts.
: `add_filter(‘the_excerpt’, ‘shortcode_unautop’);
Does anybody know how I can execute the shortcodes in the excerpts displayed using the YARPP plugin?
- The topic ‘Executing shortcodes in YARPP excerpts’ is closed to new replies.