a.R
Support threads created in the last 30 days: 5
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Connect users to posts?
Started by: a.R in: Toolset Professional Support |
1 | 4 | 6 days, 4 hours ago | ||
Let user set post-relations in post form
Started by: a.R
in: 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 | 1 week, 4 days ago | ||
wpv-control-post-ancestor – sort by custom field?
Started by: a.R in: Toolset Professional Support |
1 | 3 | 1 week, 4 days ago | ||
hide_empty=”true” – effect on SAME taxonomy?
Started by: a.R in: Toolset Professional Support |
1 | 3 | 1 week, 4 days ago | ||
Why is this custom search so slow? It doesn´t even manage to display the form
Started by: a.R in: Toolset Professional Support |
1 | 5 | 2 weeks, 5 days ago | ||
[wpv-conditional] in Events Manager Form
Started by: a.R
in: 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 | 3 weeks, 5 days ago | ||
Toolset Blocks or Views DESTROY buddypress group avatar upload form!
Started by: a.R in: Toolset Professional Support |
2 | 7 | 4 months, 2 weeks ago | ||
wpv-post-taxonomy-iterator PROBLEM
Started by: a.R in: Toolset Professional Support |
2 | 9 | 4 months, 3 weeks ago | ||
Custom Search: User sorting desroys URL parameter!
Started by: a.R in: Toolset Professional Support |
2 | 2 | 5 months, 2 weeks ago | ||
Sort search results by comment count?
Started by: a.R
in: 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 | 5 months, 3 weeks ago | ||
In custom term search place label BEHIND input?
Started by: a.R
in: 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 | 5 months, 4 weeks ago | ||
Search for posts related (many-to-many) to the post the search is embedded in
Started by: a.R in: Toolset Professional Support |
3 | 11 | 6 months ago | ||
Who can define a post relationship (Backend)
Started by: a.R in: Toolset Professional Support |
1 | 2 | 6 months ago | ||
embedded content form to add a child to current post
Started by: a.R in: Toolset Professional Support |
2 | 6 | 6 months ago | ||
search with map don´t work any more
Started by: a.R in: Toolset Professional Support |
3 | 11 | 6 months, 1 week ago |