agnes.b
Forum Replies Created
-
Hi Jack, this is Agnes from Toolset support team.
I’m not sure if I understand your needs correctly. With Types you can:
– define a multiple-instances custom fields (e.g. you define one Image custom field which can store several images for a specific post)
– you can create parent-child relationships which allows you to see all children (together with their fields) under a parent. See picture in the link above.Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.
Hi, this is Agnes from Toolset support team.
Thanks for reporting that. In order to classify it as a bug I must first replicate your issue to eliminate other plugins and theme impact.
So far I couldn’t. Here are my steps, please verify:
1. I created a WYSIWYG field with Types plugin
2. I created a post using that field. I typed sth into the post main body and as well in WYSIWYG field. Published it.
3. I wanted to change sth, went into the post edition again, pressed the full screen button for the WYSIWYG field, typed sth, came back to normal screen.
4. I didn’t see any changes made automatically to the post main body field, only to WYSIWYG filed, as expected.Any ideas?
Hi dannidar,
please try to add the following code to you template:$my_email = types_render_field("address"); if ( ! empty($my_email) ) { echo "My email is: " . $my_email; }
More info:
https://wp-types.com/documentation/functions/#tf-145206Dear otta88sun, this is not so easy to manage. That’s why we have Access plugin. Capabilities are in relations, so to have what you need it requires more testing.
I showed you how to enable mapping. Now you ask to me to help you to manage capabilities. Each capability is attached to set of capabilities.
Please try out the Access plugin. You can do it for free on our learning platform: https://discover-wp.com/site-templates/
Access is used for example at Classifieds Site.Dear tonysab,
this is Agnes from Toolset support team.Meanwhile I’ve been checking if we had similar issues with Events Manager plugin reported and I was just about to write to you: no, none. Now I can see you found the cause yourself. Great! Thank you for sharing your workaround.
Could you please mark this post as “resolved”?
We would also appreciate if you let us know what you think about Types plugin in the Reviews section.
And please remember to adds capabilities after filtering. First filtering, than adding capabilities. The code should work now.
But Access is more friendly, try it out.
I missed annunci condition, once again:
add_filter('wpcf_type', 'custom_func', 10, 2); function custom_func($data, $post_type) { if ($post_type == 'annunci') {//Post type slug as entered on Types setting page $data['capability_type'] = array('annunci', 'annuncies'); $data['map_meta_cap'] = true; } return $data; }
Important: add filter before ‘init’ hook.
Hi again.
Now it’s clear. You want to add some custom roles/capabilities to manage your custom Annuncio posts.You can achieve this in two ways:
1. with php programming using ‘capability_type’ => array(‘annunci’, ‘annuncies) and ‘map_meta_cap’ => true when registering your custom post type. Without these two parameters the code you tried won’t work.2. with our Access plugin, with no programming, just clicking:
https://wp-types.com/documentation/user-guides/setting-access-control/
https://wp-types.com/documentation/user-guides/custom-roles-access-privileges/If you choose option one and you’ve already have your custom post defined you will have to add a filter:
add_filter( 'wpcf_type', 'custom_func', 10, 2 ); function custom_func ( $data, $post_type ) { $data['capability_type'] = array('annunci', 'annuncies'); $data['map_meta_cap'] = true; return $data; }
Great! Thank you. Could you then mark this post as resolved? Only topic creators can do that. Regards, Agnes.
Hi otta88sun,
this is Agnes from Toolset support team.Authors should not be able to delete other’s posts. Editor role can do that. Authors however can delete the posts they created themselves.
Custom posts created with Types behave exactly the same here as standard WP posts.
If you are satisfied with my answer, please mark this post as “resolved”. Do let us know what you think in the Reviews section.
Hi again.
I updated the plugin by FTPing over the top of the existing files without any problems.
Sorry, I’ve got lost a bit. Do you still have problems with running Types?
Hi eaglejohn, this is Agnes from Toolset support team.
If you are satisfied with Srdjan’s answer, please mark this post as “resolved”. This will help other users facing the same problem.
Let us know what you think in the Reviews section.
Hi, this is Agnes from the Toolset support team.
Looks like a server specific issue, nobody else reported us this error.
Can FTP and overwrite all files
Yes, please try. A tip: Create another folder (eg. types_new), ftp your files there, once you are finished, change the folders names.
Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.
Hi, this is Agnes from the Toolset support team.
Can I have default value to custom numeric field?
You can have default values only for Radio box and Select fields.
will the numeric field keep a negative value
Sorry, this is not possible. Maybe in a future release. There is a section ‘Conditional display’ for numeric fields but it’s used to conditionally displaying a field depending on the values of other fields.
If you are satisfied with my answer, please mark this post as “resolved”. Do let us know what you think in the Reviews section.