jreyes

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: HTML in info box/excerpt #18818
    jreyes
    Participant

    Thanks! I tried do_shortcode with a very basic shortcode and it did work, so must be my shortcodes.

    For anyone else that might be reading this ticket – this is the code to put in your functions.php to return your excerpt with the html in your poi:

    function rawpoi($excerpt, $raw) {
    return $raw;
    }
    add_filter(‘mappress_poi_excerpt’, ‘rawpoi’, 10, 2);

     

    in reply to: HTML in info box/excerpt #18816
    jreyes
    Participant

    Hi Chris,

    I used the new filter to get the HTML to show, however my shortcode are being executed. (I realized they were not executed anyway with the filter returning $excerpt).

    Is there a way to have the excerpt with HTML and shortcodes being executed?

    in reply to: HTML in info box/excerpt #18762
    jreyes
    Participant

    Thanks for your quick reply! I don’t think I quite have my head around this. Yes – the code you posted works perfect for all excerpts. I’m not quite seeing how to address this for only the map custom post type.

    I have tried modifying the ‘get_the_excerpt’ filter, but it appress the mappress excerpt is not responding to that filter.

    I found in mappress_poi where the function get_post_excerpt is using wp_trim_words.

    Do I have to filter that result somehow?

Viewing 3 posts - 1 through 3 (of 3 total)