Old Post Notification – Display Elsewhere

<?php
// Remove notification from 'the_content'
add_filter( 'old_post_notification_on_content', '__return_false' );
/**
* Add notification to 'genesis_before_post_content'
*
* Uses the 'old_post_notification_display' filter which displays the notification.
* It's wrapped in a function and then placed where needed.
* Alternatively, you could just put this in your template file:
* echo apply_filters( 'old_post_notification_display', '' );
*/
function be_old_notification() {
echo apply_filters( 'old_post_notification_display', '' );
}
add_action( 'genesis_before_post_content', 'be_old_notification' );
view raw functions.php hosted with ❤ by GitHub

Bill Erickson

Bill Erickson is a freelance WordPress developer and a contributing developer to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.

Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk