Meta Box
Support Forum
Support › MB Views › How to show time ago date format in Meta Box Views
Hi,
I created a views in meta box and i want to display human_time_diff or time ago date format in it.
How can i do that?
To run a PHP function in View, you can add the proxy mb. before the function name. For example:
mb.
{{ mb.human_time_diff( post.datetime ) }}
Please read more on the documentation https://docs.metabox.io/extensions/mb-views/#running-php-functions https://developer.wordpress.org/reference/functions/human_time_diff/
Hello, it's not working.. Why?
Can you please share the code that creates the custom fields on your site?