post_excerpt not working
-
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
- The topic ‘post_excerpt not working’ is closed to new replies.