Simon Logan
Principal web designer and developer at Arcas Web Design in Edinburgh, Scotland.
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 |
---|---|---|---|---|---|
Checkbox values not being consistently shown
Started by: Simon Logan
in: Toolset Professional Support
Problem: Checkbox values are not edited in Forms correctly. Solution: Update to the latest version of Toolset software and purge all caches. Relevant Documentation: https://toolset.com/errata/toolset-form-doesnt-save-checkboxes-field-values/ |
2 | 3 | 4 years, 12 months ago | ||
Can't get required checkbox to work
Started by: Simon Logan in: Toolset Professional Support |
2 | 3 | 5 years ago | ||
Generic checkbox for confirmation not validating even when checked
Started by: Simon Logan in: Toolset Professional Support |
2 | 2 | 5 years ago | ||
What is the best approach in adding a "I confirm …" checkbox to a CRUD form?
Started by: Simon Logan in: Toolset Professional Support |
2 | 4 | 5 years, 1 month ago | ||
Custom edit post page
Started by: Simon Logan
in: Toolset Professional Support
Problem: I would like to display an edit post Form in a custom Page, not a Content Template. I would like to create a custom Edit Post link to this Page so that the correct post is edited in the edit post Form. Solution: It is possible with some limitations. You can create your own edit post page and style it however you want with headers and footers. Next, create a View of this specific post type. Add a post ID filter, set by a URL parameter. Now place your edit post Form in the loop of the View, and place the View in your edit post page. Now you can create a custom edit post link in a View of posts using the post ID and post title shortcodes, like this: <a href="/your-edit-post-page/?post_ids=[wpv-post-id]">Edit [wpv-post-title]</a> A few limitations here: |
2 | 3 | 5 years, 1 month ago | ||
Further adjustments to a filter needed
Started by: Simon Logan in: Toolset Professional Support |
2 | 6 | 5 years, 1 month ago | ||
Filtering by a number entered by the user between two stored field values
Started by: Simon Logan
in: Toolset Professional Support
Problem: I would like to create a front-end filter where the User can enter a number. Then I would like to filter the results such that one custom field is the minimum value and another custom field is the maximum value, and the User-entered number exists between that range. Solution: There's nothing exactly like this in Views, so it will require a custom numeric input field and custom code using the Views API wpv_filter_query. An example is shown below: add_filter('wpv_filter_query', 'between_custom_field_values', 99, 3); function between_custom_field_values($query_args, $view_settings, $view_id ) { $view_ids = array( 123, 456 ); // change this to a comma-separated list of the View ids you want to filter if( in_array( $view_id, $view_ids)) { $range_number = isset($_GET['range_number']) ? $_GET['range_number'] : null; if ($range_number !== null) { $query_args['meta_query'][] = array( 'relation' => 'AND', array( 'key' => 'wpcf-maxslug', 'value' => $range_number, 'compare' => '>=', 'type' => 'NUMERIC' ), array( 'key' => 'wpcf-minslug', 'value' => $range_number, 'compare' => '<=', 'type' => 'NUMERIC' ) ); } } return $query_args; } Relevant Documentation: |
2 | 5 | 5 years, 1 month ago | ||
Calculating a value to search/filter on
Started by: Simon Logan in: Toolset Professional Support |
2 | 3 | 5 years, 1 month ago | ||
Select lists in filters – can they display a blank ("please select …") value?
Started by: Simon Logan in: Toolset Professional Support |
2 | 5 | 5 years, 1 month ago | ||
Associate created post with logged-in user
Started by: Simon Logan in: Toolset Professional Support |
2 | 6 | 5 years, 1 month ago | ||
Restricting access to specific pages
Started by: Simon Logan in: Toolset Professional Support |
2 | 3 | 5 years, 1 month ago |