Tell us what you are trying to do?
I am currently using ACF, but I am moving to tool set as I would like to use the front end forms. I have two questions.
Question 1 - How can I limit the amount of post types a user can create by user role? I will have three user roles, one can make 1 post, the next user role can make 5 posts, and the next one can make 100 posts.
Question 2- I already have a page template I would like to use, this has been built with PHP and CSS- with ACF I would edit the page template directly and call the ACF by using " <p> <?php echo get_field('fild_id, ); ?></p> . I have read all the documentation I could find, and watched hours of videos, but all I can find is how to create a page template with the visual builder ( Gutenberg blocks). Please could you point me in the direction on how to replace my ACF field id's in my page template to the new ToolSet field Id's.
Is there any documentation that you are following?- https://toolset.com/documentation/migrating-from-acf-to-toolset/ (No help)
Is there a similar example that we can see?
What is the link to your site?
Thank you
Hello,
Q1) I suggest you try these:
1) Dashboard-> Toolset-> Settings, in section "Editing experience", enable option:
Show both the legacy and Blocks interface and let me choose which to use for each item I build
2) Create post form for creating new post of your custom post type
3) Create a Toolset content templates "my-ct", edit with classic editor, and display different result for different user roles, for example:
[toolset_access role="Administrator"]
[wpv-conditional if="( '[wpv-found-count]' lt '100' )"]
Here display the post form's shortcode for creating new post
[/wpv-conditional]
[/toolset_access]
Above codes will display the post form only for Administrator user role, and his post count is less than 100
More help:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-conditional
4) Create a page, display a post view:
- Query posts of your custom post types
- Filter by post author is same as logged-in user:
https://toolset.com/documentation/user-guides/views/filtering-views-query-by-author/
- In view's loop, you can display existed post information
- Within Views output, outside View's loop, you can display a content template block, choose existed one of step 2)
Q2) You can try Types API function types_render_field(), see our document:
https://toolset.com/documentation/customizing-sites-using-php/functions/