Oliver
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 |
---|---|---|---|---|---|
I cannot register my plugins.
Started by: Oliver
in: Toolset Professional Support
Problem: I am having trouble registering my Toolset plugins on a multisite instance. Solution: There is currently a known issue with multisite registrations. Our developers are working on the permanent fix and have published an erratum with two workarounds. Relevant Documentation: |
2 | 8 | 5 years, 7 months ago | ||
How to order searches by most taxonomies matched
Started by: Oliver in: Toolset Professional Support |
2 | 3 | 5 years, 7 months ago | ||
How to disable toolset buttons on post content fields for non-admins?
1
2
Started by: Oliver
in: Toolset Professional Support
Problem: The issue here is that the user wanted to disable the toolset buttons on the frontend for specific user roles. Solution: Add the following to your functions.php file. function remove_toolset_buttons(){ $roles = array( 'administrator' ); // roles that can see the button $user = wp_get_current_user(); if ( !in_array( $user->roles[0], $roles ) ) { // remove the Fields and Views button add_filter( 'toolset_editor_add_form_buttons', '__return_false' ); // remove the CRED button add_filter( 'toolset_cred_button_before_print', '__return_false' ); } // remove the Access button for certain roles add_filter( 'toolset_editor_add_access_button', function(){ $roles2 = array( 'author', 'subscriber' ); return $roles2; } ); } add_action( 'init', 'remove_toolset_buttons' ); Now for the $roles variable this is an array of the users that should see the button. For $roles2 this is an array of users to disable the button for. |
3 | 16 | 6 years, 6 months ago | ||
How to filter archives by post type
Started by: Oliver in: Toolset Professional Support |
2 | 5 | 7 years ago | ||
Filter a view by post type
Started by: Oliver
in: Toolset Professional Support
Problem: Solution: You can find all instructions with the following reply: Relevant Documentation: |
2 | 14 | 7 years ago | ||
Incorporating dropdown date filter in an archive template
Started by: Oliver in: Toolset Professional Support |
2 | 4 | 7 years, 2 months ago | ||
How do I show the post type description in a post type archive?
Started by: Oliver
in: Toolset Professional Support
Problem: I would like to display the description of a custom post type in the archive of that custom post type. The shortcode I found for non-archive pages does not work on archives. Solution: Add the following code to functions.php to enable a shortcode on archive pages: function get_post_desc_for_archive( $atts,$content ) { global $wp_post_types; global $WP_Views; $post_type = $WP_Views->post_query->query['post_type']; $obj = $wp_post_types[$post_type]; return $obj->description; } add_shortcode( 'get_cpt_desc_for_archive', 'get_post_desc_for_archive' ); Use the shortcode on archive pages like this: [get_cpt_desc_for_archive] Relevant Documentation: https://codex.wordpress.org/Shortcode_API |
2 | 4 | 7 years, 3 months ago |