pmpro-advanced-levels-shortcode icon indicating copy to clipboard operation
pmpro-advanced-levels-shortcode copied to clipboard

Code to show Member Badges not working in Compare Table Layout

Open MaryOJob opened this issue 5 years ago • 1 comments

Steps to recreate:

  • Add a shortcode to display pricing like this: [pmpro_advanced_levels levels="1,3,2" layout="3col" compare="Compare Item 1,1,1;Compare Item 2,1,1;Compare Item 3,1,1;Numerical Thing,10 Things,20 Things"]
  • add this code gist to display member badges icon
  • change layout attribute in the shortcode to compare_table and in the code gist to 'compare_table'
  • member badge does not get displayed. change layout to Div, 4Col, or any other attribute, it works as intended.

MaryOJob avatar Apr 07 '20 10:04 MaryOJob

There are currently no hooks on the compare_table layout. We are planning to add a filter to the compare attribute that will allow any custom HTML or special characters. This new filter can be used for displaying the badge.

kimcoleman avatar Aug 19 '20 23:08 kimcoleman