Plugin Directory

!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Better Datelines

Lightweight plugin for better dateline management for news sites. Store dateline as a custom meta field instead of putting it in the post content.

How do I enable automatic prepending of dateline to the post content?


add_filter( 'better_datelines_prepend_the_content', '__return_true' );

to your theme's functions.php

How do I change the format of automatically prepended dateline?

There's another filter for that: 'better_datelines_formatted_content', filter accepts 3 arguments, so to add a filter

add_filter( 'better_datelines_formatted_content', 'my_better_datelines_formatted_content', 10, 3);
function my_better_datelines_formatted_content( $formatted_content, $dateline, $original_content ) {
    // Do something

    return $formatted_content;

Requires: 3.6 or higher
Compatible up to: 3.8.16
Last Updated: 3 years ago
Active Installs: Less than 10


5 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.