Ido Angel
Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
Status | Debate | Supporter | Voces | Mensajes | Caducidad |
---|---|---|---|---|---|
jquery after pagination is completed – too slow
Iniciado por: Ido Angel en: Toolset Professional Support |
2 | 3 | hace 6 años, 4 meses | ||
can i convert a custom field’s date format?
Iniciado por: Ido Angel
en: Toolset Professional Support
Problem: The issue here is that the user wanted to convert his date time from the database that was created using The Events Calendar plugin. The customer retrieved the value using [wpv-post-field name='_EventStartDateUTC'] Solution: This was actually done by using a custom shortcode. // Add Shortcode function change_date( $atts ) { // Attributes $atts = shortcode_atts( array( 'date' => '', 'format' => '', ), $atts ); $originalDate = $atts['date']; $newDate = date($atts['format'], strtotime($originalDate)); return $newDate; } add_shortcode( 'change_date', 'change_date' ); The shortcode above takes a date in any format and converts it to the desired format. Example [change_date date="[wpv-post-field name='_EventStartDateUTC']" format='Y-m-d H:i:s"'] |
2 | 10 | hace 6 años, 5 meses | ||
required error appears in cred frontend dispite fulfilled requirement
Iniciado por: Ido Angel en: Toolset Professional Support |
2 | 11 | hace 6 años, 5 meses | ||
"%5B%5D" characters added to url-param, thus search not showing right
Iniciado por: Ido Angel en: Toolset Professional Support |
2 | 12 | hace 6 años, 5 meses | ||
related products in a popup show related products of 1st product outside popup
Iniciado por: Ido Angel
en: Toolset Professional Support
Problem: The issue here is that the user's related products view popup were all display the same items. In this user's case the related items were attached to the same categories so each view was displaying the same information because they were all being sorted the same. This was resolved by setting the related view to be sorted randomly. For more information see the response here: |
3 | 11 | hace 6 años, 6 meses | ||
How to use the post date field in a conditional shortcode
Iniciado por: Ido Angel
en: Toolset Professional Support
Problem: Solution: [wpv-conditional if="( '[wpv-post-date format='U']' gt 'MONTHS_FROM_NOW(-1)' )"] conditional content [/wpv-conditional] Relevant Documentation: |
2 | 4 | hace 6 años, 6 meses | ||
changing title for pagination links (for accessibility)
Iniciado por: Ido Angel
en: Toolset Professional Support
Problem: The link titles of pagination links are just the number of the page. for accessibility purposes, i want to change that to something like "page: 2" instead of just "2". Solution: There isn't such a built-in feature within Views shortcode [wpv-pager-nav-links], but you can change the link text by setup the attribute "anchor_text" of the shortcode, for example: [wpv-pager-nav-links anchor_text="Page %%PAGE%%"] Relevant Documentation: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-pager-nav-links |
2 | 5 | hace 6 años, 7 meses | ||
make it possible for only 1 radio button to be checked at a time
Iniciado por: Ido Angel en: Toolset Professional Support |
1 | 2 | hace 6 años, 7 meses | ||
woo grid with second image of product (not featured)
Iniciado por: Ido Angel en: Toolset Professional Support |
2 | 5 | hace 6 años, 8 meses | ||
ajax cart update upon quantity change
Iniciado por: Ido Angel en: Toolset Professional Support |
2 | 2 | hace 6 años, 8 meses | ||
Adding custom JS that works on page load AND after updating Views filters
Iniciado por: Ido Angel
en: Toolset Professional Support
Problem: Solution: The correct format for adding custom code to the dom ready event and a custom Views event would look like this: ( function( $ ) { $( document ).ready( function(){ // Code you want to run when the page loads }); $( document ).on( 'js_event_wpv_parametric_search_form_updated', function( event, data ) { // Code you want to run when filters have been changed }); })( jQuery ); |
2 | 7 | hace 6 años, 8 meses | ||
search incredibly slow
Iniciado por: Ido Angel
en: Toolset Professional Support
Problem: The issue here was that the user was complaining that his searches were slow. Solution: To resolve this I would recommend the use of the WP Super Cache plugin . As well as if you have images on your site to optimize them using the plugin below. This should help to increase the site speed. |
2 | 5 | hace 6 años, 9 meses | ||
Group search results by category/taxonomy
Iniciado por: Ido Angel
en: Toolset Professional Support
Problem: I have 4 categories: articles, video, audio, events. Results for "basketball" under "articles": Results for "basketball" under "videos": Results for "basketball" under "audio": Results for "basketball" under "events": Solution: Add this custom shortcode to inspect URL parameters: function exists_in_repeating_url_param_func($atts) { $var = $atts['var']; $test = $atts ['test']; $exists = isset($_GET[$var]) ? in_array( $test, $_GET[$var] ) : 0; return $exists; } add_shortcode("exists_in_repeating_url_param", "exists_in_repeating_url_param_func"); Use it like this: [exists_in_repeating_url_param var="wpv-post-typer" test="video"] If the URL includes "wpv-post-typer%5B%5D=video", this shortcode will return 1. If not, the shortcode will return null. You can use the value of this shortcode to determine whether or not to display each View. Relevant Documentation: |
2 | 8 | hace 6 años, 9 meses | ||
2 issues: add class according to url param, and retrieve url param to link
Iniciado por: Ido Angel
en: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
2 | 3 | hace 6 años, 9 meses | ||
trying to get a jquery range slider working…
Iniciado por: Ido Angel en: Toolset Professional Support |
4 | 14 | hace 6 años, 10 meses |