Problem: I have a View of Products that should be ordered by a custom field on the Products post, but the order of posts does not seem to be correct based on the custom field value.
Solution: Our developers have issued a patch for this problem in Views 3.5.1 / Blocks 1.5.1, and the issue will be solved in the next release of the plugins. To solve the problem in Views 3.5.1 / Blocks 1.5.1, you have two options:
- Create a Query Filter based on this custom field, where the field value is not empty or not equal to a blank value.
- Apply the patch to the Toolset Views plugin or the Toolset Blocks plugin as described in the comments below.
The issue will be addressed in the next release of Views/Blocks, and the workarounds mentioned here will no longer be required once the plugins are updated.
Problem:
The user would like to filter orders by the day. Display the orders for a selected day.
Solution:
Toolset stores the dates and times as a number, it is the timestamp of the date or time. It is the date/time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT).
The view's datepicker will provide the day, at 00:00:00, configure the filter to look for a value that is greater than the provided filter value(from URL param). We'll still need to look if the posts are lower than the next day(22/12/2022 00:00:00).
Unfortunately, this will need some custom code to calculate it. Please check this similar thread https://toolset.com/forums/topic/between-dates/#post-1537199
Is it possible to add a button (or link) to a form, which set the date/time field to the NOW value?
Solution:
There isn't such kind of built-in feature within Toolset Forms plugin, As a workaround, you can setup the default value of date field inputs as timestamp value of now, for example:
Is it possible to create a custom shortcode to get the current user "role" and compare that to a string?
Eg. [get_logged_in_user_role] == "administrator"
Solution:
It is possible with Toolset Access plugin, for example:
Problem: I am experiencing an error when I try to add a custom image size in a View block. "Something went wrong on resizing the image".
Solution: This issue was resolved in a recent update of Views/Blocks. After updating, it may be necessary to recreate an image block where the problem was previously experienced.