wpdreams / ajax-search-pro-development

Issues and dev tracking repository for Ajax Search Pro for WordPress plugin
0 stars 0 forks source link

Advanced Title & Content fields HTML tag stripping issue #94

Closed ernestmarcinko closed 3 months ago

ernestmarcinko commented 3 months ago

Describe the bug

Any field that is uses in the advanced title field, which returns any HTML is being stripped. This happens because a hook to the asp_cpt_advanced_field_value is incorrectly attached, and is affecting both the title and content fields.

To Reproduce

Steps to reproduce the behavior:

  1. Use the {_price_html} field on the title field
  2. The first result title contains the HTML tags correctly
  3. All other result titles are stripped

Expected behavior

The title should not be affected by the hook.

Additional context

Reference ticket.