Paul
Living and working in Poole, Dorset UK.
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 |
---|---|---|---|---|---|
Woocommerce Product Image Meta Data
Iniciado por: Paul en: Toolset Professional Support |
2 | 2 | hace 6 años, 3 meses | ||
Pricing View filter in parametric search
Iniciado por: Paul
en: Toolset Professional Support
Problem: I would like to add a filter to my custom search View that has options with different price ranges. For example, Less than 50, 50 - 100, and 100+. Solution: There is not an easy way to accomplish this in Toolset using a standard price filter. You would have to create a separate custom field that holds a value that represents each price range, then filter based on that custom field. To automate the process, you could use a hook like save_post or pmxi_saved_post to check the current price and update the value automatically: function post_saved( $post_id, $post, $update ) { $range = 0; $price = get_post_meta( $post_id, 'wpcf-price', true); if( $price < 50000 ) { $range = 1; }else if( $price >= 50000 && $price <= 100000 ) { $range = 2; } else if( $price > 100000 ) { $range = 3; } update_post_meta( $post_id, 'wpcf-sort-price', $range); } add_action( 'pmxi_saved_post', 'post_saved',10,1); Relevant Documentation: |
2 | 4 | hace 6 años, 5 meses | ||
PHP Function to assign Views Template
Iniciado por: Paul en: Toolset Professional Support |
2 | 3 | hace 6 años, 5 meses | ||
Function to assign content template from API import
Iniciado por: Paul
en: Toolset Professional Support
Problem: I would like to programmatically assign a Content Template to imported posts. Solution: Content Template assignment is defined by a hidden custom field "_views_template" that holds the ID of the Content Template to apply to a given post. You can use the save_post hook to apply this value automatically whenever a post is saved: function save_book_meta( $post_id, $post, $update ) { $post_type = get_post_type($post_id); // If this isn't a 'book' post, don't update it. if ( "book" != $post_type ) return; // - Update the post's metadata. update_post_meta( $post_id, '_views_template', 12345 ); } add_action( 'save_post', 'save_book_meta', 10, 3 ); Relevant Documentation: |
2 | 4 | hace 6 años, 6 meses | ||
Woocommerce and Product Archive Views issue
Iniciado por: Paul en: Toolset Professional Support |
2 | 6 | hace 6 años, 7 meses | ||
Output child / sub categories only
Iniciado por: Paul
en: Toolset Professional Support
Problem: I would like to show a View of taxonomy terms that are child terms of a specific parent term Solution: Relevant Documentation: |
2 | 3 | hace 6 años, 9 meses | ||
Reference Site installation bug
Iniciado por: Paul
en: Toolset Professional Support
Problem: Solution: |
2 | 4 | hace 6 años, 9 meses | ||
CRED Multipart forms
Iniciado por: Paul
en: Toolset Professional Support
Problem: Solution: |
2 | 4 | hace 6 años, 10 meses |