hannahM
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 |
---|---|---|---|---|---|
Author archives showing incorrect information
Started by: hannahM
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
2 | 3 | 5 years, 10 months ago | ||
cannot toggle between text and visual mode in Classic editor
Started by: hannahM in: Toolset Professional Support |
2 | 10 | 5 years, 11 months ago | ||
new repeating fields not displaying
Started by: hannahM in: Toolset Professional Support |
1 | 2 | 6 years, 4 months ago | ||
Potential bug in repeating groups
Started by: hannahM in: Toolset Professional Support |
2 | 7 | 6 years, 8 months ago | ||
Using repeating groups to create slider – potential bug?
Started by: hannahM in: Toolset Professional Support |
2 | 6 | 6 years, 9 months ago | ||
Using Divi Builder to create content template – some CSS / JS is not loading
Started by: hannahM
in: Toolset Professional Support
Problem: I'm using Divi Builder to construct a Content Template for a CPT, but some CSS and JS is not being applied to the page. The grid system is not working as expected, and everything is 100% width. Also some other formatting is not applied correctly. Solution: It appears that the integration between Divi Builder and Content Templates has a problem when the Divi theme is not in use. Please apply the following code in a functions.php file as a temporary fix: function add_template_to_post($content){ global $post; $post->page_template=get_post_meta(get_the_ID(),'_views_template',true); return $content; } add_filter( 'the_content','add_template_to_post',9); function change_post_meta_value($metadata, $object_id, $meta_key, $single){ global $post; $meta="_et_pb_use_builder"; $array=array( 12345, 67890 ); if(isset($meta_key)&&$meta_key==$meta&&in_array($post->page_template, $array)){ return "on"; } return $metadata; } add_filter('get_post_metadata', 'change_post_meta_value', 10, 4); Replace "12345, 67890" with a comma-separated list of Content Templates that are showing the missing styles. Our team is working on a permanent solution to this problem. |
2 | 15 | 6 years, 9 months ago | ||
Allow users to filter results by month from a custom date field
Started by: hannahM in: Toolset Professional Support |
2 | 4 | 6 years, 10 months ago | ||
Create additional author field in posts
Started by: hannahM
in: Toolset Professional Support
Problem: Solution: Add the following to your functions.php file, Replacing Team Leader with the name of your select field. add_filter( 'wpt_field_options', 'populate_select', 10, 3); function populate_select( $options, $title, $type ){ switch( $title ){ case 'Team leader': $options = array(); $args = array( 'role' => 'some-role', ); $posts_array = get_users( $args ); foreach ($users_array as $user) { $options[] = array( '#value' => $user->ID, '#title' => $user->display_name, ); } break; } return $options; } Also you will need to replace the text some-role with the slug of the role of the users that you want to retrieve. |
2 | 7 | 6 years, 10 months ago |