Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 8.1.7, code snippets, entry type
- This topic has 5 replies, 3 voices, and was last updated 11 years, 5 months ago by
bobbyau.
-
AuthorPosts
-
01/30/2015 at 1:51 pm #317628
Stacey Bartron
ParticipantHey, I have tried searching the form and have not found an answer for my issue. I am using cMaps for a client and it’s working super. But to make it easier for them, I was wondering if there is a way to set Organization as the default and/or remove the ‘Individual’ and ‘Family’ options.
-
This topic was modified 11 years, 6 months ago by
Stacey Bartron.
Attachments:
You must be logged in to view attached files.01/31/2015 at 12:57 pm #317719Steven Zahm
Keymaster@ Stacey
Yes, this can be done. First you need to install the Code Snippets plugin.
Add a new snippet with the following code:
function cn_entry_types( $atts ) { $atts['entry_type'] = array( __( 'Organization', 'connections' ) => 'organization' ); $atts['default']['type'] = 'organization'; $atts['default']['visibility'] = 'public'; return $atts; } add_filter( 'cn_admin_metabox_publish_atts', 'cn_entry_types', 11 );Save and activate the new snippet.
That should do it.
02/02/2015 at 9:39 am #317926Stacey Bartron
ParticipantAwesome, thanks! I added this to the functions file in the child theme. Worked like a charm.
02/02/2015 at 10:19 am #317931Steven Zahm
Keymaster@ Stacey
Great to hear!
If you have a moment, I would truly appreciate a review as they really do make a difference. Many thanks in advance!
https://wordpress.org/support/view/plugin-reviews/connections02/02/2015 at 4:06 pm #317956Stacey Bartron
ParticipantDone and done! Thanks again for all your help! Great plugin!
03/02/2015 at 9:18 pm #321228bobbyau
ParticipantBeen wondering about this as well, thanks.
-
This topic was modified 11 years, 6 months ago by
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
