[acf field="delta"]
. In this example, this field contains -30
as a negative number.[wpdts]
shortcode?
This is what I tried without success:
[wpdts days=[acf field="delta"]]
and as nested shortcodes:
[wpdts days=]
[acf field="delta"]
[/wpdts]
How can I use a variable or shortcode to calculate a relative date?
]]>I’ve got a problem using that command line:
<?php echo ‘Il y a ‘ . human_time_diff(get_the_time(‘U’), current_time(‘timestamp’)) ; ?>
As you can see on that page displaying all 2000 year posts, the relative dates for articles published between june and december are OK (20 years ago) but they are wrong for all articles published between january and may (21 years ago)! Why?
Thanks for your help
]]>Thanks
https://www.ads-software.com/plugins/recent-facebook-posts/
]]>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?
https://www.ads-software.com/plugins/wp-days-ago/
]]>https://www.ads-software.com/plugins/recent-posts-widget-extended/
]]>Anyone know of an update to this or a similar plugin that I’m just overlooking? Thanks!
https://www.ads-software.com/extend/plugins/when/
]]>I’m using KB Advanced RSS widget — https://www.ads-software.com/extend/plugins/kb-advanced-rss-widget/ — and it’s working great.
There’s a modification I want to make that I can’t seem to figure out how to do myself. I’d like to display the pubdate for each item in an RSS feed as a relative date/time (e.g. how many minutes ago, hours ago, or days ago). I found these codes that can be used to display date/time in this kind of relative format:
I have also found a couple of plugins that can be installed to do this kind of thing automatically, such as https://www.ads-software.com/extend/plugins/wp-relative-date/
However, these are all for displaying the date/time of posts and comments, not items in an external RSS feed. I’m trying to figure out how to modify the code of the KB Advanced RSS widget so that pubdate will display in a similar way, but I’m stumped. The widget creator no longer provides support, but it’s a popular plugin so there might be some people here who use it and have created mods for it already.
Does anyone have any suggestions for how to do what I’m trying to do? Thanks for any help that anyone can provide!
Eric
]]>The Facebook Connect button appears on the WP admin login page but not in pages or posts that allow comments.
The dates are not changed to semantic/relative dates with the Relative Date plugin.
I guess this is because P2 “hard codes” (?) commenting and dates in the theme templates rather then using the default tags that the plugins look for. But I’m not much an expert on templates or PHP.
]]>