DavidW2160
In den letzten 30 Tagen erstellte Support-Threads: 0
Lieblings-Forenthemen
This user has no favorite topics.
Forum Topics Created
Status | Thema | Supporter | Stimmen | Artikel | Aktualität |
---|---|---|---|---|---|
Two views sharing a search form on the same page
Gestartet von: DavidW2160 in: Toolset Professional Support |
1 | 2 | vor 3 Jahre, 10 Monaten | ||
Differentiating between a Singular Template and a Content Template Form
Gestartet von: DavidW2160 in: Toolset Professional Support |
|
2 | 6 | vor 3 Jahre, 10 Monaten | |
Using Google API in combination with Oxygenbuilder
Gestartet von: DavidW2160 in: Toolset Professional Support |
1 | 2 | vor 3 Jahre, 11 Monaten | ||
Migrating Views from old site (Views plugin) to new site (Blocks plugin)
Gestartet von: DavidW2160
in: Toolset Professional Support
Problem: Using Toolset's Import/Export, The only tabs on the new site's Import/Export are Types, Associations, and Forms. I don't see any options of Views. Solution: The export/import tab for Toolset Blocks has been disabled on purpose, our developers are working on it, but I am not sure when will this feature will be implemented. Currently, you will try as you mentioned above, manually recreate the content template and view blocks. Relevant Documentation: |
|
2 | 3 | vor 4 Jahre, 9 Monaten | |
Passing a parameter to a popup (Divi Overlays)
Gestartet von: DavidW2160
in: Toolset Professional Support
Problem: I have a view that lists businesses and another view that displays a single business' details. Ideally, I would click on a "Details" link and pass a parameter to a popup, and the popup contains a view controlled by the parameter, but that doesn't work. Solution: 1) Toolset Views does accept URL parameter to filter the view's result, it is a built-in feature of Toolset Views/Blocks plugin. 2) The problem is the Divi popup does not accept URL parameter Relevant Documentation: |
|
2 | 5 | vor 4 Jahre, 10 Monaten | |
Designing one view with „breaks“ or two views using same Query Filter
Gestartet von: DavidW2160
in: Toolset Professional Support
Problem: How can two views, both on the same page, both use the same query filter with same URL parameter? Solution: Yes, it is possible to pass same URL parameter to both views, and take effect on both of them, you can disable AJAX search, for example: Edit both post views: 1) in section "Custom Search Settings", enable option: Full page refresh when visitors click on the search button, 2) In section "Search and Pagination", add a submit button Relevant Documentation: |
|
2 | 6 | vor 4 Jahre, 10 Monaten | |
Using Woocommerce and cred_save_data to create a custom post type
Gestartet von: DavidW2160
in: Toolset Professional Support
Problem: Solution:
The cred_commerce_after_order_completed hook passes a $data object to the hooked function. The order_id is the "transaction_id" in the $data object. The created user is saved in a custom field of the order, called "_cred_post_id". Then we can pull the user fields from the user, create the custom post, and save the custom field values for the post. add_action( 'cred_commerce_after_order_completed', 'my_cred_commerce_after_order_completed', 10, 1 ); function my_cred_commerce_after_order_completed( $data ) { // get the order id $order_id = $data['transaction_id']; // get the user id $user_id = get_post_meta( $order_id, '_cred_post_id', true); // get user data to have a title for the post. $user = get_userdata( $user_id ); // prepare post object $post = array( 'post_type' => 'user-profile', // <== CPT slug 'post_title' => $user->user_login, // <== post title 'post_status' => 'publish', 'post_author' => $user_id, // <== Author ); // Insert the post into the database $post_id = wp_insert_post( $post ); // get user field $phone = get_user_meta( $user_id, 'wpcf-phone-number', true ); $agency = get_user_meta( $user_id, 'wpcf-agency1', true ); $speciality = get_user_meta( $user_id, 'wpcf-specialty', true ); // create post field update_post_meta( $post_id, 'wpcf-agency1', $agency ); update_post_meta( $post_id, 'wpcf-phone-number', $phone ); update_post_meta( $post_id, 'wpcf-speciality', $speciality ); } Relevant Documentation:
|
|
2 | 13 | vor 4 Jahre, 11 Monaten | |
Creating a Profile CPT at the same time as a user is registering
Gestartet von: DavidW2160 in: Toolset Professional Support |
|
2 | 5 | vor 4 Jahre, 11 Monaten |