Sammut
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 |
---|---|---|---|---|---|
Post Connection not working
Started by: Sammut
in: Toolset Professional Support
Problem: I would like to display a custom field from a child post in the parent post template, but the Types field shortcode is not working as expected. Solution: You can't use a Types field shortcode in this case, because there can be many child posts associated with the parent post. You must use a View of related posts, filtered somehow, to display the field from the correct child post. |
2 | 13 | 5 years, 10 months ago | ||
Connection not displaying on front end
Started by: Sammut in: Toolset Professional Support |
1 | 2 | 5 years, 10 months ago | ||
View not showing expected results from category
Started by: Sammut in: Toolset Professional Support |
1 | 2 | 6 years, 1 month ago | ||
Preserve query string on ajax search
Started by: Sammut
in: Toolset Professional Support
Problem: I have a custom search View with several search fields placed on a page. Only the search form, not the results, are shown on the page. The View is set up to redirect to a different URL, where the filters and results are both displayed. When Users visit the first page, the URL will have a parameter "promocode" with some variable. When the page redirects to the next step, I want to maintain the original URL parameter on the results page. Solution: Use the View filter "wpv_filter_end_filter_form" to add a hidden input field to the custom search form, and set the value of the field by accessing the URL parameter in the $_GET superglobal: add_filter( 'wpv_filter_end_filter_form', 'prefix_add_hidden_field', 99, 4 ); function prefix_add_hidden_field( $out, $view_settings, $view_id, $is_required ) { $views = array( 16855 ); if ( in_array( $view_id, $views) && $is_required ) { $promocode = isset($_GET['promocode']) ? $_GET['promocode'] : ''; $out = '<input type="hidden" id="promocode" name="promocode" value="' . $promocode . '" />' . $out; } return $out; }; Then if your View is set up to "only show available inputs" you'll need to add some custom JavaScript to update the hidden promocode field any time the filters are updated: jQuery( document ).on( 'js_event_wpv_parametric_search_form_updated', function( event, data ) { var url = new URL(window.location); var promocode = url.searchParams.get("promocode"); jQuery('#promocode').val(promocode); }); Relevant Documentation: |
2 | 13 | 6 years, 1 month ago | ||
wpv-attribute in view not working as expected.
Started by: Sammut
in: Toolset Professional Support
Problem: I would like to use an attribute applied to a parent View shortcode inside a nested child View shortcode. Solution: Apply the same attribute to both View shortcodes to pass information down the hierarchy. Relevant Documentation: |
2 | 7 | 6 years, 1 month ago | ||
Altering Orderby with Toolset and Relevannsi
Started by: Sammut in: Toolset Professional Support |
2 | 3 | 6 years, 1 month ago | ||
Custom Date Field Not Sorting
Started by: Sammut
in: Toolset Professional Support
Problem: I have a View that should be ordered by the value of a custom date field, but it does not seem to be ordered correctly. Solution: Be sure no other query filters are interfering with the sort order settings in Views. Use the Views debug panel if necessary to check the query criteria. |
3 | 9 | 6 years, 4 months ago | ||
Views 2.6 Breaking website with fatal PHP error
Started by: Sammut
in: Toolset Professional Support
Problem: PHP Fatal error: Uncaught Error: Call to undefined function mb_convert_case() Solution: This dependency will be removed in an upcoming Views update. |
3 | 6 | 6 years, 6 months ago | ||
Adding a custom attribute to [wpv-view..]
Started by: Sammut
in: Toolset Professional Support
Problem: I need to add a custom shortcode attribute field, for example: [wpv-view name="custom-post-grid" limit="21" cat="advanced" columns="1/2"] Within my view I would get the value of attribute "columns" Solution: You can get the attribute value of shortcode [wpv-view] with shortcode [wpv-attribute], for example: [wpv-attribute name="columns"] Relevant Documentation: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-attribute This shortcode displays the value of an attribute in a View shortcode. |
2 | 4 | 6 years, 7 months ago | ||
WooCommerce Views Product Template and Product Archive Template Overrride
Started by: Sammut
in: Toolset Professional Support
Problem: The issue here is that the user wanted to create a custom woocommerce php template for his site. Solution: I believe for this to work, you will need to create the template file within your theme directory. Create a woocommerce folder and then add your template files within that folder. For more information on custom templates you can take a look at this link below. |
2 | 5 | 6 years, 7 months ago | ||
Filter: Label field missing “for”
1
2
Started by: Sammut
in: Types Community Support
Problem: I would like to replace the standard checkboxes in my View filter with images. In order to do this, I need to apply a class to the checkbox's parent label that determines whether or not to show the checkmark in the checkbox. I am using AJAX to update my View results whenever an input is changed. Solution: Relevant Documentation: |
2 | 21 | 7 years, 7 months ago |