توضیحات
A dateline is a brief piece of text included in news articles that describes where and when the story occurred, or was written or filed, though the date is often omitted. This plugin gives you ability to store datelines as a meta field so you don’t have to include them in your post body.
You can use either [better-dateline] shortcode to insert dateline manually or automatically prepend post content with a dateline. (See Frequently Asked Questions)
If you’d like to check out the code and contribute, join us on GitHub. Pull requests, issues, and plugin recommendations are more than welcome!
نصب
- Upload the
better-datelinesfolder to your plugins directory (e.g./wp-content/plugins/). - Activate the plugin through the ‘Plugins’ menu in WordPress.
- You’ll see a dateline textarea on post edit screen.
سوالات متداول
How do I enable automatic prepending of dateline to the post content?
Put 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; } نقد و بررسیها
نقد و بررسیای برای این افزونه یافت نشد.
توسعه دهندگان و همکاران
“Better Datelines” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کردهاند.
مشارکت کنندگانترجمه “Better Datelines” به زبان شما.
علاقه مند به توسعه هستید؟
کد را مرور کنید، مخزن SVN را بررسی کنید، یا از طریق RSS در گزارش توسعه مشترک شوید.
گزارش تغییرات
0.1
- Initial Release


