samuelH
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Hide a button in view for certain roles
Started by: samuelH in: Toolset Professional Support |
2 | 5 | 3 years, 10 months ago | ||
Access
Started by: samuelH in: Toolset Professional Support |
2 | 3 | 3 years, 11 months ago | ||
User managment
Started by: samuelH in: Toolset Professional Support |
2 | 2 | 3 years, 11 months ago | ||
Custom query
Started by: samuelH in: Toolset Professional Support |
2 | 2 | 4 years, 2 months ago | ||
Best practice – Gutenberg, blocks and theme
Started by: samuelH in: Toolset Professional Support |
2 | 2 | 4 years, 2 months ago | ||
Full width image at top of post / template made
Started by: samuelH in: Toolset Professional Support |
3 | 4 | 4 years, 2 months ago | ||
Order taxonomy field in a Toolset form
Started by: samuelH
in: Toolset Professional Support
Problem: Solution: This plugin "Category Order and Taxonomy Terms Order" seems to do the work. Just install it, then go to your taxonomy link, the "Taxonomy order" link should be below it or at the end of the sublinks. Enter it and reorder your terms. They will, then, be ordered in the form too. Check these screenshots: Check this reply for a custom solution using views and custom code https://toolset.com/forums/topic/cred-form-taxonomy-order/#post-501029 |
2 | 4 | 4 years, 2 months ago | ||
Initial sorting of CPT in search page
Started by: samuelH in: Toolset Professional Support |
2 | 3 | 4 years, 2 months ago | ||
Conditional fields and conditional css
Started by: samuelH
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: - https://toolset.com/documentation/legacy-features/views-plugin/conditional-html-output-in-views/ |
2 | 3 | 4 years, 8 months ago | ||
Conditional view with
Started by: samuelH
in: Toolset Professional Support
Problem: Solution: // wrong condition [wpv-conditional if="( $(wpcf-statusbeskrivelse) eq '2' or '4' )"] // correct condition [wpv-conditional if="( ($(wpcf-statusbeskrivelse) eq '2') or ($(wpcf-statusbeskrivelse) eq '4') )"] Relevant Documentation: |
2 | 3 | 4 years, 8 months ago | ||
CPT editable / viewable by speific Users
Started by: samuelH in: Toolset Professional Support |
2 | 6 | 4 years, 9 months ago | ||
CPT editable by speific Users?
Started by: samuelH
in: Toolset Professional Support
Problem: I would like to use Forms to allow Users to submit and edit posts. I would like to group Users by Company, and allow all Users from the same Company to read and edit all posts by all Users from the same Company. Solution: Unfortunately there isn't a simple option that will allow you to create this type of filter. I think the simplest option is to add a custom field that holds a Company ID in the User profile, and add another custom field that holds the Company ID in each post. When each User submits content, the Company ID from their User profile could be used to set a custom field in the submitted post. Then you could filter a View by Company ID, and that would show each User content from other Users in their own Company. Another more complex solution is to use a proxy custom post type that represents Users - something like "Employees". Each User is the post author of one Employee post. Then you can use post relationships to relate Employees and Companies. Then you can use Views post relationship filters to show and hide content based on which Company the Employee is related to. We have more information about using a proxy post type available here: https://toolset.com/documentation/post-relationships/how-to-create-custom-searches-and-relationships-for-users/ |
2 | 3 | 4 years, 11 months ago | ||
Redirect change form after input to a spesifique archive content template?
Started by: samuelH
in: Toolset Professional Support
Problem: I would like to redirect Users from Forms to archive pages. Solution: Use the cred_success_redirect API to redirect to other URLs: add_filter('cred_success_redirect', 'custom_archive_redirect_for_forms', 10, 3); function custom_archive_redirect_for_forms( $url, $post_id, $form_data ) { // update this hash to include one line for each form ID and its respective redirect destination URL $redirect_for_forms = array( 'f123' => 'https://yoursite.com/some/archive/url', 'f234' => 'https://yoursite.com/some/other/url', 'f345' => 'https://yoursite.com/yet/another/url' ); // ----- You should not edit below this line ------ // test if the array key exists first, then return the proper URL if the form ID is found in the hash if( array_key_exists( 'f'.$form_data['id'], $redirect_for_forms ) ) { return $redirect_for_forms['f' . $form_data['id']]; } // otherwise, just return the original destination url return $url; } Relevant Documentation: |
2 | 5 | 4 years, 11 months ago | ||
last updated date and author
Started by: samuelH in: Toolset Professional Support |
2 | 3 | 4 years, 11 months ago | ||
Change info when field is empty: This field is empty or does not exist
Started by: samuelH in: Toolset Professional Support |
2 | 3 | 4 years, 11 months ago |