tiagoS-3
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
AJAX problem. Many forms in same page. Only the first form works
Started by: tiagoS-3 in: Toolset Professional Support |
2 | 3 | 6 years, 1 month ago | ||
Edit text from relationship form feedback
Started by: tiagoS-3 in: Toolset Professional Support |
2 | 2 | 6 years, 4 months ago | ||
Set intermediary relationships in CRED new post form
Started by: tiagoS-3
in: Toolset Professional Support
Problem: I would like to establish relationships between two posts in a New Post Form. Solution: It's not currently possible to manage M2M relationships in a Post Form, you must create a Relationship Form. To predefine the values, you can use the parent_item and child_item shortcode attributes in the cred_relationship_form shortcode: [cred-relationship-form form='form-relationship-zoukers-events' parent_item='[wpv-post-id id="$current_page"]' child_item='[wpv-view name="get-zouker-id"]'] The View must return the correct Post ID for the child item, and must have no empty spaces in the loop editor markup: [wpv-layout-start][wpv-items-found]<!-- wpv-loop-start --><wpv-loop>[wpv-post-id]</wpv-loop><!-- wpv-loop-end -->[/wpv-items-found][wpv-no-items-found][/wpv-no-items-found][wpv-layout-end] Finally you must apply this custom filter that strips out additional markup from the View's results so it can be used as a shortcode attribute: add_filter( 'wpv_filter_wpv_view_shortcode_output', 'prefix_clean_view_output', 5, 2 ); function prefix_clean_view_output( $out, $id ) { $ids = array( 123 ); if ( in_array( $id, $ids )) { $start = strpos( $out, '<!-- wpv-loop-start -->' ); if ( $start !== false && strrpos( $out, '<!-- wpv-loop-end -->', $start ) !== false ) { $start = $start + strlen( '<!-- wpv-loop-start -->' ); $out = substr( $out , $start ); $end = strrpos( $out, '<!-- wpv-loop-end -->' ); $out = substr( $out, 0, $end ); } else { $start = strpos( $out, '>' ); if ( $start !== false) { $out = substr( $out, $start + 1 ); $end = strpos( $out, '<' ); $out = trim(substr( $out, 0, $end )); } } } return $out; } Relevant Documentation: |
2 | 10 | 6 years, 4 months ago | ||
Button to add tag in taxonomy
Started by: tiagoS-3 in: Toolset Professional Support |
2 | 2 | 6 years, 7 months ago | ||
View Filter by Date
Started by: tiagoS-3 in: Toolset Professional Support |
2 | 2 | 6 years, 7 months ago | ||
Best way to associate (relationship) users with CPT with toolset?
Started by: tiagoS-3 in: Toolset Professional Support |
2 | 2 | 7 years ago | ||
Get field slug from CPT
Started by: tiagoS-3 in: Toolset Professional Support |
2 | 2 | 7 years ago | ||
Limit users to create only 1 post type. Create new user and new post.
Started by: tiagoS-3
in: Toolset Professional Support
Problem: |
2 | 3 | 7 years ago | ||
Taxonomy to wp users and view filter
Started by: tiagoS-3 in: Toolset Professional Support |
2 | 4 | 7 years ago |