|
|
Repeater field shows same information on all posts
Started by: erikD-7
in: Toolset Professional Support
Quick solution available
Problem:
Query related items of repeatable field groups.
Solution:
Toolset repeatable field groups are based on one-to-many relationship, you can follow below document to query related items, for example:
Create a post view
- Query your "repeatable field groups" posts
- Filter by post type relationship of your "repeatable field groups"
Relevant Documentation:
https://toolset.com/course-lesson/displaying-related-posts/
|
|
2 |
3 |
4 years, 1 month ago
erikD-7
|
|
|
Toolset forms (CRED & login) issues when using WPML
Started by: caroleM-4
in: Toolset Professional Support
Quick solution available
Problem:
The user is encountering 3 issues, with WPML, for a user form when edited while the admin language is set to a secondary language.
The admin language is set by a cookie. This can happen in two cases:
- Switch to the secondary language, then edit the form from Toolset->User Forms->Edit form.
- Switch to the secondary language in the latest opened browser tab.
The user has a user form that is meant to redirect to a page. The user was encountering the following issues:
- The repeat password label was displayed translated on the primary language
- The pages to redirect to appears on the second language.
- The redirects takes the user to the homepage.
Solution:
Toolset forms are not translated manually. They are translated using WPML through the WPML translation management workflow.
Toolset enforces a form to be created on the primary language. But, it does not enforce this while editing a form.
This will be addressed in a future update. As a workaround add the following code to your a Toolset custom code snippet:
add_action( 'current_screen', 'ts_enforce_form_language' );
function ts_enforce_form_language( $screen ){
if ( in_array( $screen->id, array( 'cred-form', 'cred-user-form' ) ) ){
$default = apply_filters( 'wpml_default_language', NULL );
$current = apply_filters( 'wpml_current_language', NULL );
if ( $default != $current ){
do_action( 'wpml_switch_language', $default );
}
}
}
|
|
2 |
30 |
4 years, 1 month ago
caroleM-4
|
|
|
How to display [wpv-conditional] content based on intermediary post type custom field
Started by: chantalM
in: Toolset Professional Support
Quick solution available
Problem:
How to display [wpv-conditional] content based on intermediary post type custom field
Solution:
To display the intermediary post type custom field, you will have to use the types shortcode as given under:
[types field='your-field' output='raw' item='@post-venue.intermediary'][/types]
To use the intermediary post type custom field with [wpv-conditional] shortcode, You can find proposed solution, in this case with the following reply:
https://toolset.com/forums/topic/how-to-apply-wpv-conditional-to-code-in-loop-item-template/#post-2229849
Relevant Documentation:
|
|
2 |
7 |
4 years, 1 month ago
chantalM
|