Evan Mattson
Forum Replies Created
-
Forum: Plugins
In reply to: [Last Modified Timestamp] Custom Shortcode Doesn’t Always WorkHi there ??
The
[last-modified]
shortcode is the only one added by this plugin so[lmt-post-modified-info]
must be coming from another plugin or your theme.Wish I could be of more help; good luck!
Forum: Plugins
In reply to: [Last Modified Timestamp] Plugin UpdateHey, thanks for the kind words. Just pushed an update! Cheers ??
Hey there! Thanks for the request. This is doable and sounds like a good idea.
I don’t mind adding it, but I can’t tell you when that will be. I’ll add it to the repo as a todo though ??
Cheers!
Forum: Plugins
In reply to: [Last Modified Timestamp] Without TimestampHi Troy,
You certainly can customize the format of the output, either via shortcode attributes or using a filter. The plugin does not currently support showing the last modified author though.
For more information, see the FAQ
Hi @enteons ?? I see you have Autoptimize installed.
Can you tell me if you have the “Remove query strings from static resources” setting enabled or not? You can find it here: https://d.pr/i/xF71mU
Thanks for reaching out on Slack @manuelrocha88, awesome to see this fixed now in the latest version!
Cheers! ??
Forum: Plugins
In reply to: [Last Modified Timestamp] I want to center the text.I’m not sure if you’re referring to wp-admin or the front end, but in both cases the styling can be customized with your own css.
E.g.
.last-modified-timestamp { text-align: center; display: block; }
@webfactory if the intention is to not perform output buffering and link rewriting of REST responses, I think you could hook
ob_start
later in the request (currently is being hooked oninit
) where you could know if it was a REST request or not. For this plugin, I would thinktemplate_redirect
would be a better hook for starting output buffering since this would never be called for REST API requests as it serves responses on theparse_request
action.Hi @elein. Would you please try clearing your browser’s cache and your CDN if you use one (such as Cloudflare). This issue is specific to some assets cached in the browser (and/or CDN) which aren’t re-fetched after updating. Please give that a try and let us know if that fixes it for you ??
Please try again with the latest release (1.1.2) which was released earlier today as this contains the fix James is referring to. Give that a shot and let us know if you’re still having trouble!
Can you elaborate on how you’re using it?
The plugin doesn’t add any output of its own just by activating.
Forum: Reviews
In reply to: [Last Modified Timestamp] Should be a standard featureHey, that sounds like a great use case.
Thanks for the review!
Forum: Plugins
In reply to: [Last Modified Timestamp] Suggest plain text output without HTML tagsI left a comment on your gist with a suggestion.
Basically, you should be able to usewp_strip_all_tags
for use within an attribute.Let me know how that works for you.
Forum: Plugins
In reply to: [Last Modified Timestamp] Suggest plain text output without HTML tagsHello and thanks for the kind words!
This is a good idea. Can you elaborate on how you are using it? (shortcode or template tag?)
Forum: Plugins
In reply to: [Last Modified Timestamp] Reformatting WordPress Admin Table TimeThe timestamp is broken into 3 components: date format (datef), time format (timef), and the separator (sep).
Here it looks like you’re trying to override the whole format with a new date string but you’re only changing the time format. By default, it displays
%date% %sep% %time%
Your filter works but you would want to change it to modify each component like so:
$d['contexts']['messages']['datef'] = 'm/j/Y'; $d['contexts']['messages']['timef'] = 'g:ia'; $d['contexts']['messages']['sep'] = 'at';