• Resolved finnj

    (@finnj)


    Hi,

    Post excerpt does not work.
    I remembered this is a tricky one from previous challenges with my own plugin.

    Suggestion to solve it:
    class-bnfw-engine.php: line 153
    $message = str_replace( '[post_excerpt]', ($post->post_excerpt ? $post->post_excerpt : wp_trim_words($post_content) ), $message );

    I have tested the above and it works (for me)

    Problem is that $post->post_excerpt only works within the loop, and requires setup_postdata and apply filters etc. – did some google ??

    Let me know if you choose to implement this change

    and an additional wish, can you add a link to the list of shortcode to the page where you add/update the notications (I always struggle to find them)
    https://www.voltronik.co.uk/wordpress-plugins/better-notifications-for-wordpress/

    Thanks

    https://www.ads-software.com/plugins/bnfw/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bnfw

    (@voltronik)

    Thanks for reporting this finnj,
    I’m investigating and will hopefully be pushing out an update today or tomorrow to fix.

    Jack

    Plugin Author bnfw

    (@voltronik)

    Hi,
    This should now be fixed in v1.1.5.2, just released.
    If you have any more problems with this, please let me know.

    Thanks,
    Jack

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘post_excerpt not working’ is closed to new replies.