Denra.com
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Date and Time Shortcode] show date using epochDo you have the correct timezone set in the General Settings of WordPress?
Forum: Plugins
In reply to: [WP Date and Time Shortcode] show date using epochPS: Do you have the correct timezone set in the General Settings of WordPress?
Forum: Plugins
In reply to: [WP Date and Time Shortcode] show date using epochHi @pietgolf,
What is the date and time format you wish to be displayed and in which timezone? Show me an example date and time format you would like to have r.e. October 12, 2020 – 10:44, 2020-10-12 10:44:15, or other.
Forum: Plugins
In reply to: [WP Date and Time Shortcode] show date using epochHi again,
There is no direct way to do this via our plugin, but you can put the code below in your functions.php in the child theme.
function denra_last_update() { return date(get_option('date_format') . ' ' . get_option('time_format'), do_shortcode('[last_update]')); } add_shortcode('denra-last-update', 'denra_last_update');
Then you can use the [denra-last-update] to display the date and time in the default readable format taken from the WordPress General Settings in the same way you have used the previous shortcode by now.
If you wish to use another format, just remove the first part in the date function (to the comma) and replace it with any PHP date() function string that you like. Something like this:
date('F j, Y H:i:s', do_shortcode('[last_update]'));
Pease try it and let me know if it works.
Forum: Plugins
In reply to: [WP Date and Time Shortcode] show date using epochHi @pietgolf,
Can you please describe in details a little bit?
Do you need to put epoch (timestamp) somewhere and produce date and time like May 23, 2020 20:28? Or something else?
Forum: Plugins
In reply to: [WP Date and Time Shortcode] Settings Question + DonationHello,
We are closing this thread. Please re-open it or create a new one if you need more help.
Forum: Plugins
In reply to: [WP Date and Time Shortcode] Settings Question + DonationHello,
Please let us know if we can close this thread. If we do not hear from you in the next days we will close the case as solved.
Thank you for trying and using WP Date and Time Shortcode.
Forum: Plugins
In reply to: [WP Date and Time Shortcode] Date and time font sizeHello,
I am closing this thread. Please re-open it or create a new one if you need more help.
Forum: Plugins
In reply to: [WP Date and Time Shortcode] Settings Question + DonationHello @gavinmountford ,
Thank you for trying our plugin.
Yes, you can use the
next
attribute of the shortcode and add any number next values in the attribute and then display with a predefined or custom item display format.[wp-dt-time next="mon 10:00, mon 15:00, wed 11:00, fri 10:00, fri 16:00"]
[wp-dt-custom format="D, M j – H:i" next="mon 10:00, mon 15:00, wed 11:00, fri 10:00, fri 16:00"]
Please let us know if this will solve your issue.
Forum: Plugins
In reply to: [WP Date and Time Shortcode] Date and time font sizeHello,
Please let us know if we can close this thread. If we do not hear from you in the next days we will close the case as solved.
Thank you for trying and using WP Date and Time Shortcode.
Forum: Plugins
In reply to: [WP Date and Time Shortcode] Date and time font sizeHi @liftoffofficial ,
Currently you can do this by simply applying the font and the style directly on your shortcode using the default WordPress editor (making sure in HTML mode that you do not place html in the middle of it and break the shortcode itself).
OR you can use HTML and CSS around it directly in HTML mode and then add CSS to your style.css in the child theme. For example, you can put this in content:
<span class="my-date-style-1">[wp-dt-date-time next="Mon 16:00"]</span> <span class="my-date-style-2">[wp-dt-custom format="D, M j, Y – H:i"]</span>
and then:
.my-date-style-1 { color:red; font-size:20px; font-weight:bold; } .my-date-style-2 { color:#008000; font-size:18px; }
We are working on the coming Pro editin to make it easier for everyone to apply fonts, styles, and colors even without programming knowledge as a part of the shortcode. I am not sure if it will be fully available in the first release but will definitely come in future.
Forum: Plugins
In reply to: [WP Date and Time Shortcode] Exclude weekendsHello,
I am marking this thread as solved.
Forum: Plugins
In reply to: [WP Date and Time Shortcode] Exclude weekendsPlease let us know if we can close this thread. If we do not hear from you in the next days we will close the case as solved.
You may follow our plugin updates and be informed if/when the feature required by you will be available.
Thank you for trying and using WP Date and Time Shortcode.
Forum: Plugins
In reply to: [WP Date and Time Shortcode] Exclude weekendsHi,
Now I understand that you want to display 5 working days ahead (not 5 days). In this case the shortcode above will really not work and unfortunately we do not have the exact functionality you are searching for. There is a compromise solution that will work correctly except for the Sundays since Sunday result will show not the next day (Monday) but the Monday one week later. It might be achieved adding 6 days:
[wp-dt-custom format="d/m/Y" days="+6" next="Mon,Tue,Wed,Thu,Fri"]
We will discuss if, when and how this specific functionality might be added (probably in the coming soon paid Pro edition of the plugin which will contain many additional non-basic features).
- This reply was modified 4 years, 11 months ago by Denra.com.
- This reply was modified 4 years, 11 months ago by Steven Stern (sterndata).
Forum: Plugins
In reply to: [WP Date and Time Shortcode] Exclude weekendsHello,
I don’t know if I understand you correctly, but probably the following attributes will do something like this:
[wp-dt-weekday-name days="+5" next="Mon,Tue,Wed,Thu,Fri"]
We’ve tried it with
days="+1"
anddays="+2"
and it works (since it is Friday today).Please let us know if it works for you.