kelvinL-2
Support threads created in the last 30 days: 0
Favorite Forum Topics
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Filter posts with two parents
Started by: Gian Luca in: Toolset Professional Support |
|
3 | 3 | 5 years, 1 month ago | |
Disable the Add new post capability
Started by: kelvinL-2
in: Toolset Professional Support
Problem: Solution: Add the following to the theme's functions.php file, remembering to update the id of the existing post of that type and the slug of the custom post type, which in the example code is global-setting. /** * Custom code to hide UI to create >1 global-setting posts */ function disable_new_posts() { $global_settings = get_posts( 'post_type=global-setting' ); if ( count($global_settings) != 0 ) { // Remove sidebar link global $submenu; unset($submenu['edit.php?post_type=global-setting'][10]); // Hide Add new button with CSS // * change post id to id of existing post on next line * if ((isset($_GET['post_type']) && $_GET['post_type'] == 'global-setting') || $_GET['post'] == 273) { echo '%MINIFYHTMLb8a8432e92a03a7d02f4061d76fed79384%'; } } } add_action('admin_menu', 'disable_new_posts'); Relevant Documentation: |
|
2 | 8 | 7 years, 5 months ago | |
Installed Toolset-Bootstrap and Layouts, but cells stack instead of rows
Started by: timB in: Toolset Professional Support |
|
4 | 6 | 8 years, 6 months ago | |
set the minimum resolution of image upload
Started by: ericH-7 in: Toolset Professional Support |
|
3 | 6 | 8 years, 7 months ago | |
Find if my post has a parent, and what that parent is (in PHP)?
Started by: steveJ-3 in: Toolset Professional Support |
|
3 | 6 | 8 years, 8 months ago | |
How to debug the cred_form_validate
Started by: kelvinL-2 in: Toolset Professional Support |
|
2 | 14 | 8 years, 9 months ago | |
Inconsistent view to Add and Edit CRED form
1
2
Started by: kelvinL-2 in: Toolset Professional Support |
|
3 | 23 | 8 years, 10 months ago | |
Default Stylesheet for layout
Started by: kelvinL-2 in: Toolset Professional Support |
|
2 | 5 | 8 years, 10 months ago | |
custom usermeta bypassed even required is set
Started by: kelvinL-2 in: Types Community Support |
|
2 | 15 | 8 years, 10 months ago | |
File Size Limit
Started by: adamL-4 in: Toolset Professional Support |
|
3 | 4 | 8 years, 10 months ago | |
Frontend edit images of image gallery plugin?
Started by: thomasL-2
in: Toolset Professional Support
Question: Answer: |
|
3 | 7 | 8 years, 11 months ago | |
Building a small part by using Views design on existing website
Started by: kelvinL-2 in: Toolset Professional Support |
|
2 | 4 | 8 years, 11 months ago | |
Add Custom Post Type to Dashboard At a Glance Box
Started by: scottD-2 in: Types Community Support |
|
2 | 4 | 8 years, 11 months ago | |
Events for a calendar
Started by: Pat in: Toolset Professional Support |
|
2 | 11 | 9 years, 2 months ago | |
CRED generic field first "Please select" option
Started by: carletto0282 in: Toolset Professional Support |
|
2 | 3 | 9 years, 5 months ago |