You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.
Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"
I'm asking for help because I don't know. Which script and where do I add it in the template?read time if i not wrong, you can add it via plugins i think,
so they count the total word so we can calculate it
for x days ago... we can deal with it with system like this
date the article posted - current date = [x] days ago
if more than 365 days = 1 years ago
i think as simple as that, so you need to add simple counter on function
on the template itselfI'm asking for help because I don't know. Which script and where do I add it in the template?
there is no such option in the template. By God help me or direct me to a link that has the step by step pleaseon the template itself
maybe you can edit on single.php on show date section or other related php file since i not using theme that u used
create a code for itthere is no such option in the template. By God help me or direct me to a link that has the step by step please
Bro, the function in wordpress for this is human_time_diff()Please my friends I am using the GAMEIFY template I would like to add this script that changes the date and shows how long the post was and also shows the reading time. Please help me how to do it, someone teach me please
function my_timeago_post()
{
return sprintf( esc_html__( '%s ago', 'textdomain' ), human_time_diff(get_the_time ( 'U' ), current_time( 'timestamp' ) ) );
}
add_filter( 'the_time', 'my_timeago_post' );
function my_timeago_comments()
{
return sprintf( esc_html__( '%s ago', 'textdomain' ), human_time_diff(get_comment_time ( 'U' ), current_time( 'timestamp' ) ) );
}
add_filter( 'get_comment_date', 'my_timeago_comments' );
We get it, advertisements are annoying!
However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.
If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.