Hi team,
I’m using the Nepali Date Converter plugin to display post dates in the Nepali calendar. The plugin works by hooking into default WordPress filters like get_the_date (example: Line 613).
However, it seems the NewsPaper theme uses custom date output functions instead of WordPress core functions like get_the_date() or the_date(). Because of this, the plugin’s filters do not apply, and the date is not converted to Nepali.
I would really appreciate it if you could provide a solution or workaround so that the theme’s post date output is compatible with plugins that use WordPress’s default filters. For example:
A way to allow fallback to get_the_date() if no special formatting is applied.
A hook or filter where we can tap into the theme’s date output and apply conversions.
Or any suggested method to ensure compatibility without modifying core theme files directly.
Looking forward to your guidance on making this work with the theme.
plugin code link: https://github.com/codersantosh/nepali-date-converter/blob/main/inc/class/ndc-post-date.php#L613
Thank you!
Hello!
If you are using cloud templates, the data can be changed in the tagdiv Composer or set by default to take the WordPress date format from Dashboard -> Settings -> General.
The default templates take the format from there, too, without possibly changing the date format from somewhere else. So, you can refer to that option from WordPress.
Thank you!
Hi,
Thanks for the clarification!
It seems like, regardless of the settings, the theme is still running some customization logic for the date. Even when the default option is selected, the date appears to be modified rather than pulled directly from WordPress.
Would it be possible for the theme to simply use the_date() or a similar native function without applying any custom formatting, especially when the default format is selected? That way, plugins like ours can work seamlessly without conflicting overrides.
Appreciate your help!
Hello!
For customization and other services, contact our custom work team here: https://tagdiv.com/premium-customization-services/.
I appreciate your understanding!
