Currently wp-days-ago Shows Output as :
11 minutes ago
5 hours ago
19 days ago
1 month ago
But if we want it to show output with 2 part for example :
11 minutes & 30 Sec ago
5 Hours & 17 min ago
19 Days and 12 hrs ago
1 Month & 4 days ago
Than ?? Please HELP me.. in this to achieve…
I Have try all the OLD Version of this plugin also…
I am using Old version of this plugin on MCX tips website it shows output what i need but same plugin when i copy to other site it was not showing output as i needed.. so same plugin display different output of 2 different site ….
]]>I’m not very experienced with using code, but I do have the plugin installed and it’s working, so that’s half the battle.
I would like to plugin to show the date after 1 week, but I do not know how to configure this using $showDateAfter.
<?php wp_days_ago_v3 ($showDateAfter 604800); ?>
Where/how do I specify the length of time?
Thanks for your help.
]]>Hi,
Does anyone know where to put code in newspaper theme to work on posts and pages (modules and blocks on pages)?
Thanks!
]]>Hi,
I hope you can help me with a small modification.
I need to change x years, x monts and x days ago to just x days ago.
so for example 2 months ago becomes 60 days ago.
and 1 year ago becomes 365 days ago.
is this possible?
Thank you.
Remy
]]>Here is my code
<?php
$args = array( 'numberposts' => '100', 'tax_query' => array(
array(
'taxonomy' => 'post_format',
'field' => 'slug',
'terms' => 'post-format-aside',
'operator' => 'NOT IN'
),
array(
'taxonomy' => 'post_format',
'field' => 'slug',
'terms' => 'post-format-image',
'operator' => 'NOT IN'
)
) );
$recent_posts = wp_get_recent_posts( $args );
foreach( $recent_posts as $recent ){
echo '<li class="anilist"><div class="recent"><a href="' . get_permalink($recent["ID"]) . '">' . $recent["post_title"].'</a></div><div class="ago">' . wp_days_ago_v3() . '</div></li> ';
}
Can someone fixed this code problem with wp_days_ago_v3()
]]>Many thanks for the plugin.
With WP_DEBUG
set to true
in the wp-config file, the plugin is returning the following php errors anywhere the wp_days_ago_v3();
function is called.
Strict Standards: gmmktime(): You should be using the time() function instead in /wp-content/plugins/wp-days-ago/wp_days_ago-core.php on line 19
Strict Standards: gmmktime(): You should be using the time() function instead in /wp-content/plugins/wp-days-ago/wp_days_ago-core.php on line 49
Could you please resolve these errors?
]]>Hi dear
I am testing with ColorMag theme and not working
Thanks for support
]]>Hi,
I just installed the wp-days-ago plugin.
Now, can anyone say where to install the code <? wp_days_ago_v3(); ?> and what’s next?
I am using Fashionistas WordPress Themes
Thanks
Sree
Dear Sir
i have used Your plugin (wp-days-ago) on my mcx website – https://mcx.freetips.tips in which it shows post time as
1 min & 17 sec ago
4 hrs & 14 min ago
1 days & 6 hrs ago
I Mean it displays time in 2 factor that is min with sec, hours with min & days with hours
While i used this plugin on my other website – https://www.mcxtargetcalls.com
it just shows single factor as ..
3 min ago
17 min ago
5 hrs ago
.. So how to make it work like my first site in which it shows with 2 factor of times…
thanks HELP NEEDED …
even i uploaded the same plugin from my old site still its now showing the time as i needed …
THANKS
]]>Hello there,
I’m looking for a way to use wp_days_ago_v3() outside the loop with a given post id. Is there such a thing ?
Thank you for this amazing plugin.
]]>So I was just wondering — First and foremost, I love the plugin–but one of things I want to do is hide dates from posts from a year back. Is it possible to set in the functions that after a certain amount of time no dates or time ago is displayed? Is this possible?
]]>I would like to change how long after I post for Just now to appear. Would love for it to say Just Now for 30 minutes or even up to an hour (if possible) before it changes to hours.
How can I make these changes?
]]>Hi for some reason the plugin is showing the wrong number of days ago that a post was modified.
For example I modified a post a few minutes ago and it shows 3 days ago. If I replace wp_days_ago_v3() with the standard wordpress the_modified_date(‘F j, Y’) then it shows the correct date. However this is obviously in the wrong format which is why I am using this plugin.
Have you got any suggestions?
Kind regards,
Luke
Hi. You’ve built such an awesome plugin, good job! ??
I’ve translated your plugin into Ukrainian. Here
You’re welcome ??
]]>Is there a way to not show the days part when it shows the months like 1 month, 8 days ago…I want just 1 month ago and not the 8 days??
]]>Hey Vegard!
How can I display “wp_days_ago” for comments?
Is it possible? Found nothing to this..
As I’m no Coder, I played around but just always get the time or time-diff from the post-time displayed for every comment, not the comment-time.
Or am I just in the wrong “loop”?
]]>Hi there,
1- I have translated your plugin to Kurdish. But I have no idea where to insert the code into? I just copied <? wp_days_ago_v3(); ?> into index.php but didn’t help.
2- Please provide your email so that I can send you the translation file.
PS: I hope to get you answer soon, unlike the others ??
]]>After some time (i set this:) <?php wp_days_ago_v3 (0, 259200); ?>
it displays the date and time. Now I want to only display the date – without the time stemp. but leave would like to keep the language specific date format. like “23. Juni 2015” for german. And “June 23, 2015” for english. At the Moment i get it like this bus with time stemp 12:34
Hey there,
I’m trying to add the code <?php wp_days_ago_v3 ($showDateAfter) ?> into the php where the date coding resides. However, I’m having trouble doing this. This is the code and you can see below where I’m trying to insert the plugin code. Any help would be greatly appreciated. Thanks!
printf( __( ‘<span class=”byline”><i class=”fa fa-user”></i>%1$s</span><span class=”posted-on”><i class=”fa fa-calendar”><?php wp_days_ago_v3 ($showDateAfter) ?></i>%2$s</span>’, ‘themememe’ ),
sprintf( ‘<span class=”author vcard”>%2$s</span>’,
esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) ),
esc_html( get_the_author() )
),
sprintf( ‘<!––>%2$s<!––>’,
esc_url( get_permalink() ),
$time_string
)
);
Hi,
I am using this code <?php wp_days_ago_v3 ($showDateAfter [172800]);?> to display the wp post date after the third day, but the code does not change anything.
Any ideas what I am doing wrong? Thank you.
Hello
I do Persian translation and i want to send for you, so how can i send these files to you ?
Dear All,
I have MCX tips Website with Domain : https://mcxfreetips.tips
I Have Used W3 Total Cache Plugin to cache my pages…
Cache Interval 3600 is my HTML Cache Value and All other CSS and JS resources has 3690000 value.
Second Whenever New Post Posted Cache is Cleaned and New Cached Generated…
So i am Not getting What Value for these 3 Parameter to set for AJAX to work Properly…
I am Very New to AJAX…
SO WE NEED TO SET VALUE IN : wp_days_ago-core.php file ??????
And in These Function —
function wp_days_ago_v3 ($stopUsingAjaxAfter = 1800, $showDateAfter = -1, $showDateFormat = null)
??? am i right ?? if yes than what will be the Value ???
Please HELP… Your Plugin was awesome If these worked in Cache Plugin than was superb….
waiting for some help…
]]>Hi, I think the recent update has changed the core file code quite a bit. For some reason the Ajax option no longer works for me and simply displays the time of posting. (This may be due to another plugin update though). However, for me it is not an issue. I can manage without the ajax option completely if I can make a post show ‘today’ as the post date. I do not need seconds, minutes or hours ago.
So today, yesterday, days ago, etc, etc, etc would be ideal for me. Is the code easily adapted for this?
]]>Hi, don’t think this is possible at the moment? I post weekly and have it set to revert to normal date format after 90 days. All seems to work well. What I’d really like to do though is keep the units rounded up or down. So for example ‘1 week ago’ rather than ‘1 week and 3 days ago’, ‘1 month ago’ rather than 1 month and 12 days ago’. It just feels cleaner and for my purposes accurate enough (I only use it on archive pages rather than the post itself). If it were one or the other I would prefer to round down. Is this possible? Many thanks.
]]>Hi, I am generating my displayed time with this function:
function posted_difference() {
printf( __( '<time class="entry-date"><a href="%2$s">%1$s</a></time>', 'tdsimple' ),
esc_html( wp_days_ago(1) ),
get_permalink()
);
}
However, this returns:
14 days ago<time class="entry-date"><a href="https://mywebsite.com/another-test/"></a></time>
instead of
<time class="entry-date"><a href="https://mywebsite.com/another-test/">14 days ago</a></time>
Can you help me?
]]>Hi,
This plugin is great and i’m using it a lot actually but i wanted to know if i can translate the output to make it work in french by example ?
]]>When a new post is published, the date displays as ‘Some time in the future.’ I don’t know where to change this if it’s possible. I’m using wp_days_ago_ajax since I’m using Super Cache.
Any thoughts?
Thanks!
Carlos
I want to customize it a little, but I’m not very good with the coding, and I don’t have a single clue how to do what I want this plugin to do.
I want it to be pretty much like on Twitter. The first hour after publish I want to show the minutes, then each hours from 1 hour to 23 hours ago, then days for about 7 days or so, so 1 day ago, 3 days ago, 7 days ago. But then on the 8th day I want to show the actual date, not 8 days ago.
This is because I don’t like when it says 50 days ago, 130 days ago and so on. So I want the actual date after 8 days, like February 1. 2013.
Can someone please help me do this? Please!
]]>Hi. I was trying to use this plugin to style posts differently according to their age. So I put the output of the template tag inside class element and tweak the CSS. For example, this works:
<h3 class="<?php wp_days_ago(1); ?>">
The problem is with post elements that use post_class
. I want to add the wp_days_ago
tag to all the other tags, not replace them.
I have tried passing wp_days_ago
to post_class
as a parameter, but the result is something like ‘todayclass=”post”‘, instead of ‘class=”post today”‘.
I’ve been trying with get_post_class
, but I know little PHP and all I can get is either ‘Array’ or ‘Array(key > value)’, instead of ‘value value value’.
I’d be grateful if anyone could do any suggestion.
]]>for the post i just published, it says ’42 years, 303 days ago’ with the usage (wp_days_ago), but when i use wp_days_ago_ajax, it works fine.
Any idea?
]]>