vimalS
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
How to pass attribute to view’s PHP API
Commencé par : vimalS
in: Toolset Professional Support
Problem: For example: $args = array( 'wpvprchildof'=> $atts['wpvprchildof'], 'ids'=> $atts['ids']); You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 3 | Il y a 6 années et 7 mois | ||
How to add Two different header & footer on two pages without layout plugin
Commencé par : vimalS
in: Toolset Professional Support
Problem: The issue here is that the user wanted to know if it was possible to create multiple headers using our Types and views plugins. Solution: Unfortunately this is not possible with our Types and Views plugin and will need to be done with some custom coding . You can follow the instructions in the link below as it should be able help you. |
2 | 7 | Il y a 6 années et 7 mois | ||
Get number of results for View filtered by shortcode attribute
Commencé par : vimalS
in: Toolset Professional Support
Problem: I would like to use get_view_query_results to find the number of results for a View, filtered by a shortcode attribute. Solution: function get_students_count( $atts ) { $atts = shortcode_atts( [ 'wpvprchildof' => 0 ], $atts ); $args = array( 'wpvprchildof'=> $atts['wpvprchildof'] ); $filtered_posts = get_view_query_results(258, null, null, $args); return count($filtered_posts); } add_shortcode( 'wpv-students-count', 'get_students_count' ); Then use the shortcode like this: [wpv-students-count wpvprchildof='[wpv-post-id]'][/wpv-students-count] Relevant Documentation: |
2 | 6 | Il y a 6 années et 8 mois | ||
Customization with wp types beta plugin Relationship feature
Commencé par : vimalS in: Toolset Professional Support |
2 | 5 | Il y a 6 années et 8 mois | ||
Jquery error in wp types beta version
Commencé par : vimalS
in: Toolset Professional Support
Problem: Use https://jqueryui.com/sortable/ in wp-admin in edit post With wp types beta version plugin, there are some jquery error and because of that my ui sortable is not working. Here is the custom codes: Solution: the problem is in the "foreach" loop, please modify these codes from: foreach($lessonids as $lessonid){ echo '<ul id="sortable">'; echo '<li class="ui-state-default">'.get_the_title($lessonid->child_id)."</li>"; echo '</ul>'; } To: echo '<ul id="sortable">'; foreach($lessonids as $lessonid){ echo '<li class="ui-state-default">'.get_the_title($lessonid->child_id)."</li>"; } echo '</ul>'; And test again. Relevant Documentation: |
2 | 5 | Il y a 6 années et 8 mois | ||
Types usermta not working in wp types beta version
Commencé par : vimalS
in: Toolset Professional Support
Problem: The issue was that the customer was using our [types usermeta='wpcf_last_visited_class' user_current='true' output='raw'][/types] To try and retrieve a custom user meta that he had created manually and unfortunately it does not work. Solution: If you manually inserted the custom field into the database without the use of Types then you will need a custom shortcode to retrieve the custom value. I was able to write a shortcode to help retrieve this. [get_user_field user='[wpv-current-user format="meta" info="id"]' field='wpcf_last_visited_class'] Add the following to your functions.php file // Add Shortcode function get_user_field( $atts ) { // Attributes $atts = shortcode_atts( array( 'field' => '', 'user' => '', ), $atts ); $user_last = get_user_meta( $atts['user'], $atts['field'], $single ); var_dump($user_last); return $user_last[0]; } add_shortcode( 'get_user_field', 'get_user_field' ); |
2 | 11 | Il y a 6 années et 8 mois | ||
Error while submitting Edit User form with CRED Version 2.0-b1 plugin
Commencé par : vimalS in: Toolset Professional Support |
2 | 7 | Il y a 6 années et 8 mois |