|
Calculate Freight Price from 2 Destinations using Maps
Started by: waldemarW
in: Toolset Professional Support
|
|
2 |
2 |
6 years, 8 months ago
Nigel
|
|
Filter by checkbox (yes, no, both)
Started by: rieW
in: Types Community Support
Quick solution available
Problem: I would like to let my site visitors filter a View by date, using checkboxes "Past", "Future", and "All".
Solution: Toolset offers a date range filter, but the input fields represent start and end dates. You could use this date range filter to accomplish a similar task, or you could use multiple Views with Query Filters applied.
|
|
2 |
6 |
6 years, 8 months ago
rieW
|
|
information disappears when adding query filters to author archive
Started by: coetzeeG
in: Toolset Professional Support
Quick solution available
|
|
2 |
10 |
6 years, 9 months ago
coetzeeG
|
|
How to organize gallery for multipurpose (and external) usage
Started by: Ljuba
in: Toolset Professional Support
Quick solution available
Problem: I would like to use CRED to allow my site Users to upload multiple images, and associate those images with CPTs. Some of those CPTs are child posts, some are parents, some are grandparents. What is the best way to associate the images with all levels of the CPT hierarchy?
Solution: It depends on your site's requirements. There are several things to consider.
- It is easier to create custom search filters using custom fields attached to the same post type shown in the View.
- However, it is not possible to use repeating fields in child posts in the current stable version of Types. The new beta M2M features will address some of this issue.
- Taxonomies can be used to relate the images to multiple CPTs, but they must be managed by your Users.
- Galleries and Carousels in Divi Builder have limited options for filtering the results, and it is not possible to use shortcodes as filters. So Divi cannot access custom fields effectively in the Gallery or Carousel module.
- Elementor ACF Gallery modules may or may not work with Types custom fields. Types custom fields are stored in the postmeta table using the previx "wpcf-".
|
|
2 |
11 |
6 years, 9 months ago
Ljuba
|
|
Job posting site
Started by: ericW-5
in: Toolset Professional Support
|
|
2 |
2 |
6 years, 9 months ago
Shane
|
|
What are the options for displaying different content to different users on the front-end?
Started by: Ljuba
in: Toolset Professional Support
Quick solution available
Problem:
What are the options for displaying different content to different users on the front-end?
Solution:
To display different content on the front-end according to some criteria you essentially have two options.
If the thing being tested relates to the person doing the looking (the user browsing the website is registered and has a certain role because they have paid for a particular membership, for example) then you can use Access to restrict the visibility of whole pages, or to selectively show certain content on a page (as described here: https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/).
If the thing being tested relates to the thing being looked at then you would need to add custom fields to the content being viewed and then use the wpv-conditional shortcodes to test the content of those custom fields and selectively display what is wrapped in the shortcode, as described here: https://toolset.com/documentation/user-guides/conditional-html-output-in-views/
|
|
2 |
7 |
6 years, 9 months ago
Ljuba
|
|
Checkboxes or taxonomy
Started by: Ljuba
in: Toolset Professional Support
Quick solution available
Problem:
Is it recommended to use taxonomies (with checkboxes) or checkboxes custom fields?
Solution:
If you intend to filter a View using these checkboxes you should probably use taxonomies rather than a checkboxes custom field, because within WordPress taxonomy filters are more performant that meta query filters (https://tomjn.com/2017/02/27/not-post-meta-bad/).
See the answer below for a more detailed discussion.
|
|
2 |
3 |
6 years, 9 months ago
Ljuba
|
|
Ad custom search to author page
Started by: coetzeeG
in: Toolset Professional Support
Quick solution available
|
|
2 |
9 |
6 years, 9 months ago
coetzeeG
|
|
Confusion between Views a7 Layouts
Started by: hollyG
in: Toolset Professional Support
|
|
2 |
21 |
6 years, 9 months ago
Beda
|
|
Step by Step Classifieds Instruction Video.
Started by: melT
in: Toolset Professional Support
|
|
2 |
2 |
6 years, 9 months ago
Agnes Bury
|
|
Auto “expire” all of an authors posts on specific date
Started by: coetzeeG
in: Toolset Professional Support
|
|
2 |
2 |
6 years, 9 months ago
Christian Cox
|
|
Customize rss feed
Started by: coetzeeG
in: Toolset Professional Support
Quick solution available
|
|
2 |
7 |
6 years, 9 months ago
coetzeeG
|
|
Search not performing as expected
Started by: coetzeeG
in: Toolset Professional Support
Quick solution available
Problem:
Search not working correctly on installed Classifieds site for price field
Solution:
You should check your view that displays the search filter and double check that correct "Query filter" is added for your each filter at "Query filter" section.
You can find the proposed solution, in this case, with the following reply:
=> https://toolset.com/forums/topic/search-not-performing-as-expected/#post-616723
Relevant Documentation:
|
|
2 |
12 |
6 years, 9 months ago
coetzeeG
|
|
No user information shown on a Layout user Archive
Started by: coetzeeG
in: Toolset Professional Support
Quick solution available
Problem:
I created a Layout with a User Archive as a cell and inserted some user fields in the loop of the View Archive.
They do not display on the front end of the author archive.
Solution:
Make sure that the user is the author of at least a post.
Otherwise, WordPress does not know what to display and have nothing to display with our ShortCodes.
A user needs to be an author to appear on an author archive.
|
|
2 |
9 |
6 years, 9 months ago
coetzeeG
|
|
How to change Classifieds reference site email notifications
Started by: coetzeeG
in: Toolset Professional Support
Quick solution available
Problem: I would like to know how to make some changes to the email notifications sent by CRED in the Classifieds reference site. I would like to change the "from" address to match the message sender, and I would like to include the corresponding Ad title in the message.
Solution:
Include a hidden generic field that captures the listing title in the form. Then use that field value in your email notification. You can edit the form here:
yoursite.com/wp-admin/post.php?post=6337&action=edit
Since the listing ID shows up in the URL where the form is displayed, you can access that ID using the wpv-search-term shortcode like this:
[wpv-search-term param='listing-id']
Then you can figure out the Listing Title from that ID like this:
[wpv-post-title id="[wpv-search-term param='listing-id']"]
Insert that as the value of your generic field:
[cred_generic_field field='listing_title' type='hidden' class='' urlparam='']
{
"required":0,
"validate_format":0,
"persist":1,
"default":"[wpv-post-title id='[wpv-search-term param='listing-id']']"
}
[/cred_generic_field]
Then you can use that title in your CRED notification with this shortcode:
[wpv-post-field name="listing_title"]
and the from address is not from the sender.
There's not an easy way to select the current User's ID as the "from" address in the notification editor. You can use the CRED API method cred_mail_header to modify the "From:" email header programmatically.
Here's an example:
//Customise CRED notifications
add_filter('cred_mail_header', 'customise_cred_message_from', 10, 5);
function customise_cred_message_from( $headers, $formid, $postid, $notification_name, $notification_number ) {
if ($formid==12345 && $notification_number==67890) {
$current_user = wp_get_current_user();
$myheaders = array( 'From: ' . $current_user->user_email );
return array_merge($headers, $myheaders);
}
return $headers;
}
Modify 12345 to match your CRED form ID, and change 67890 to match the notification index (zero if no other notifications exist for this form)
Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-search-term
https://toolset.com/documentation/programmer-reference/cred-api/#cred_mail_header
|
|
2 |
5 |
6 years, 9 months ago
coetzeeG
|