CRED is a WordPress plugin that lets you easily build front-end forms for creating and editing content and users.
CRED User Guides include detailed documentation on creating forms, including related fields that belong to the content or the users, validating the input and displaying the forms with custom HTML styling.
When you ask for help or report issues, make sure to tell us the versions of the Toolset plugins that you have installed and activated.
Viewing 15 topics - 841 through 855 (of 1,497 total)
Allow users to see the edit link of their own posts.
Solution:
In order to achieve this you will need to make use of our conditional shortcode to wrap your edit link shortcode inside the conditional.
Here is the conditional below that you will need to use.
[wpv-conditional if="('[wpv-current-user info='id']' eq '[wpv-post-author meta='ID']')"]
Edit Post link goes here
[/wpv-conditional]
Essentially this is checking if the ID of the currently logged in user is the same as the author of the current post being viewed.
Once both IDs are the same then the text "Edit Post link goes here" will display. You will need to replace this text with the actual shortcode of the edit link.
Problem:
Include parent custom field value in form notification
Solution:
You can use the Toolset form hooks to add parent field using custom place holder:
- cred_body_notification_codes
- cred_subject_notification_codes
Problem:
conditional cred fields default values not submitting when hidden with Toolset Form
Solution:
You can use the Toolset Form's hook: cred_before_save_data
in order to assign the default value based on your conditional selection of Form group for form fields.
The issue here is that the user's forms are not visible on the frontend to any other users except admins.
Solution:
This is a case of where the other user roles don't have access to the form itself.
If you go to the Access Control settings at Toolset->Access Control and click on the Toolset Forms tab, check to ensure that the other user roles have access to the form.