John
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 |
---|---|---|---|---|---|
Shortcode function not working with update to PHP 8
Started by: John in: Toolset Professional Support |
2 | 2 | 1 year, 11 months ago | ||
Comparing and showing distances from one location to several other locations
Started by: John in: Toolset Professional Support |
2 | 2 | 2 years, 7 months ago | ||
2 post types in one view, different column layout for each
Started by: John in: Toolset Professional Support |
2 | 2 | 2 years, 10 months ago | ||
Conditionals based on parent custom field
Started by: John in: Toolset Professional Support |
2 | 6 | 3 years, 9 months ago | ||
Nested repeatable field groups in a View (that uses info from a parent post)
Started by: John
in: Toolset Professional Support
Problem: I have a nested repeatable field group (RFG) structure inside a custom post type. I also have another child post type of that main custom post type. On the child post template, I would like to display information from the RFGs. I can display information from the main RFG, but not the nested RFGs. Solution: Check to be sure the correct RFG type is selected in the View's Content Selection panel. |
2 | 6 | 3 years, 10 months ago | ||
How to display a specific item from a field with multiple instances in e2PDF shortcode
Started by: John
in: Toolset Professional Support
Problem: I am using a shortcode from the e2PDF plugin that displays a Types custom field value. However, my field allows multiple instances and I would like to display one specific index of that field. How can I customize the shortcode to work with Types repeating field values? Solution: Response from e2PDF support: add_filter('e2pdf_model_shortcode_e2pdf_wp_response', 'e2pdf_toolset_types_repeater', 10, 3); function e2pdf_toolset_types_repeater($response, $atts, $value) { if (isset($atts['key']) && $atts['key'] == 'wpcf-listing-photo' && isset($atts['index'])) { $id = isset($atts['id']) ? $atts['id'] : false; // Post ID $index = $atts['index']; // Index attribute $field = str_replace('wpcf-', '', $atts['key']); // Converting field key to slug needed for Tooset Types if ($id) { //php function to render value $response = types_render_field($field, array("post_id" => $id, "size" => "thumbnail", "index" => $index)); } else { $response = ''; } } return $response; } After adding function you must be able to use shortcode as follows: [e2pdf-wp key="wpcf-listing-photo" meta="true" index="0"] [e2pdf-wp key="wpcf-listing-photo" meta="true" index="1"] and so on... For correct usage "types_render_field" function must return "empty" value in case index not exists or url for image if image found, so maybe it will be need to add some parameters to "types_render_field". Unfortunately we can't test it on our side as we do not have yet access to Toolset Types plugin. Relevant Documentation: |
2 | 4 | 4 years, 1 month ago | ||
Import to a field with multiple instances
Started by: John in: Toolset Professional Support |
2 | 4 | 4 years, 9 months ago | ||
Upgraded to Toolset 2.3, need to convert legacy code
Started by: John
in: Toolset Professional Support
Problem: Solution: You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
3 | 5 | 6 years, 4 months ago | ||
Forms: Add Form link to parent post?
Started by: John in: Toolset Professional Support |
2 | 4 | 6 years, 4 months ago | ||
Filter taxonomy view by custom post
Started by: John in: Toolset Professional Support |
2 | 2 | 6 years, 11 months ago |