a.R
Admite hilos creados en los últimos 30 días: 3
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
Status | Debate | Supporter | Voces | Mensajes | Caducidad |
---|---|---|---|---|---|
Custom search for post author
Iniciado por: a.R en: Toolset Professional Support |
1 | 2 | hace 3 días, 17 horas | ||
ALWAYS indicate end of search results
Iniciado por: a.R en: Toolset Professional Support |
1 | 2 | hace 3 días, 17 horas | ||
Connect users to posts?
Iniciado por: a.R en: Toolset Professional Support |
1 | 4 | hace 3 semanas | ||
Let user set post-relations in post form
Iniciado por: a.R
en: Toolset Professional Support
Problem: I want to allow users to select parent posts in a many-to-many (M2M) relationship directly within a post form. Solution: In Toolset, managing many-to-many (M2M) relationships typically requires a separate Relationship Form. This is because post forms are designed to edit the main content, taxonomies, and custom fields of a post, while relationship management is handled separately. Steps to Use a Relationship Form for M2M: - Create a Relationship Form to manage the connections between posts. - Display the form on the front end where users can connect or disconnect related posts. Relevant Documentation: https://toolset.com/course-lesson/front-end-relationship-forms-for-connecting-posts/ https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/ |
1 | 5 | hace 3 semanas, 5 días | ||
wpv-control-post-ancestor – sort by custom field?
Iniciado por: a.R en: Toolset Professional Support |
1 | 3 | hace 3 semanas, 6 días | ||
hide_empty=»true» – effect on SAME taxonomy?
Iniciado por: a.R en: Toolset Professional Support |
1 | 3 | hace 3 semanas, 6 días | ||
Why is this custom search so slow? It doesn´t even manage to display the form
Iniciado por: a.R en: Toolset Professional Support |
1 | 5 | hace 1 mes | ||
[wpv-conditional] in Events Manager Form
Iniciado por: a.R
en: Toolset Professional Support
Problem: The [wpv-conditional] shortcode doesn’t work as expected in an Events Manager template. Specifically, the condition comparing [wpv-user field="ID"] with [wpv-post-author format="meta" meta="ID"] doesn't produce output, even though their values are correct. Solution: The issue is caused by mixing types of quotes within the conditional statement, which can prematurely close the condition. Ensure you use: - Double quotes for the if statement. - Single quotes for the attributes within the shortcodes. Updated working example: [wpv-conditional if="( '[wpv-user field='ID']' eq '[wpv-post-author format='meta' meta='ID']' ) OR ( '[wpv-current-user info='role']' eq 'administrator' ) OR ( '[wpv-current-user info='role']' eq 'editor' )"] <a class="button" href="website">Diese Veranstaltung ändern</a> <br /> [/wpv-conditional] |
3 | 8 | hace 1 mes, 1 semana | ||
Toolset Blocks or Views DESTROY buddypress group avatar upload form!
Iniciado por: a.R en: Toolset Professional Support |
2 | 7 | hace 5 meses | ||
wpv-post-taxonomy-iterator PROBLEM
Iniciado por: a.R en: Toolset Professional Support |
2 | 9 | hace 5 meses, 1 semana | ||
Custom Search: User sorting desroys URL parameter!
Iniciado por: a.R en: Toolset Professional Support |
2 | 2 | hace 6 meses | ||
Sort search results by comment count?
Iniciado por: a.R
en: Toolset Professional Support
Problem: The customer wants to sort results based on the comments count. Solution: Upon further review, I identified that the comment_count field in the wp_posts table can be used directly for sorting. I provided a code snippet to add to the theme's functions.php file to sort by the comment_count field: add_filter('wpv_filter_query', function($query, $setting, $view_id){ if (in_array($view_id, array(1234))) { $query['orderby'] = array('comment_count' => 'DESC'); } return $query; }, 101, 3); Replace 1234 with the actual view's ID. This code sorts the results by the number of comments in descending order. Relevant Documentation: |
2 | 3 | hace 6 meses, 1 semana | ||
In custom term search place label BEHIND input?
Iniciado por: a.R
en: Toolset Professional Support
Problem: The customer wants to place the label behind the input in the search form to manipulate the label based on the input status using CSS. However, the input is currently placed inside the label, making this manipulation difficult. Solution: I confirmed that the customer is using legacy views to create the search form. jQuery(function($){ $(".class_containing_your_checkbox input[type='checkbox']").change(function(event){ var checkbox = $(event.target); var status = checkbox.prop('checked'); if (status) checkbox.parent().css('background-color', '#569cc3'); else checkbox.parent().css('background-color', ''); }); }); The code above applies CSS rules based on whether the checkbox is selected or not. The customer needs to change the function to target the specific div class containing the checkbox and apply the desired CSS for the labels. |
2 | 6 | hace 6 meses, 2 semanas | ||
Search for posts related (many-to-many) to the post the search is embedded in
Iniciado por: a.R en: Toolset Professional Support |
3 | 11 | hace 6 meses, 2 semanas | ||
Who can define a post relationship (Backend)
Iniciado por: a.R en: Toolset Professional Support |
1 | 2 | hace 6 meses, 3 semanas |