ericW-5
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Need to limit the number of CPT published per role
Started by: ericW-5
in: Toolset Professional Support
Problem: The issue here is that the user wanted to know how to limit the amount of posts that a user can create through the frontend. Solution: We actually have a small solution for this and can be seen in the link below. |
2 | 5 | 6 years, 7 months ago | ||
Conditional content view
Started by: ericW-5
in: Toolset Professional Support
Problem: The issue here was that the user wanted to display his content using a different content template based on the value of a custom field. Solution: The solution here is to use the conditional shortcode to do this. |
2 | 3 | 6 years, 7 months ago | ||
unable to edit profile
Started by: ericW-5
in: Toolset Professional Support
Problem: The issue here is that the user's are not able to see their edit profile CRED form. Solution: In this case the users of that roll didn't have permissions to access the edit form. What I recommend that you do is to check that the appropriate permissions are given to the users so they have access that form. |
3 | 13 | 6 years, 7 months ago | ||
unable to delete a post from front end
Started by: ericW-5
in: Toolset Professional Support
Problem: The issue here is that the user wanted to delete his posts using the front end. This requires that you add the CRED delete link to the post on the front end. To do this edit the content template assigned to the post and the click on the CRED form button. Finally just insert the delete link and this should allow you to delete the posts from the front end. |
2 | 3 | 6 years, 8 months ago | ||
impossible to target page child post page
1
2
Started by: ericW-5
in: Toolset Professional Support
Problem: The issue here is that the user wanted to automatically send notification to his parent cpt. Solution: What you can do is to create a cpt called Jobs, and Job Application. Set the Job CPT as the Parent of the Job Application. Now on the Jobs CPT you can create an email field so that the recruiter can post a Job and the email that the Job applications should be sent to. Then Create a CRED form for your Job Applications and then add the CRED form child post link to your Jobs, if you are using a content template then you can simply just add the child post form link to the there. On your child post form you can add a generic field like this. [cred_generic_field field='parent-email' type='email' class='parent-field-replacement' urlparam=''] { "required":0, "validate_format":0, "persist":1, "default":"" } [/cred_generic_field] Then create a notification for this field in CRED. Finally you will need to add this hook to your functions.php which will copy the Email from the Parent Job into the child post being created so that the notification will be sent to the person who created the job. add_action('cred_before_save_data', 'my_before_save_data_action',10,1); function my_before_save_data_action($form_data) { // if a specific form if ($form_data['id']==2981) { if(isset($_POST['_wpcf_belongs_job_id']) and $_POST['_wpcf_belongs_job_id']!=""){ $parent_post_id = $_POST['_wpcf_belongs_job_id']; $x = get_post_meta($parent_post_id,'wpcf-job-email',true); $_POST['parent-email'] = $x; } } } In the code above I create 3 things: 1. CPT called Jobs with the slug job, you can see i'm getting the ID of the parent Job by referencing is with "_wpcf_belongs_job_id" If you're using a different slug you will need to replace all instance of "_wpcf_belongs_job_id" with "_wpcf_belongs_{parent-cpt_slug}_id" where you will replace the {parent-cpt_slug} with the slug of your CPT 2. I made a custom field on the Job CPT called "Job Email" which gets a slug "job-email". I referenced this field with "wpcf-job-email". In your case when you create the field you will reference it by add the "wpcf-" prefix to the slug and replaceing all instances of "wpcf-job-email" 3. Finally I made the generic field "parent-email". If you use the generic field code that I sent then you can leave this as is. |
2 | 16 | 6 years, 8 months ago | ||
tryng to only display results
Started by: ericW-5
in: Toolset Professional Support
Problem: The problem here is that this customer wanted to display his filters in one columns and the results in another. Solution: In this case you will need to separate the view search section from the results section. To do this we have a document below that should be able to guide you through this. |
2 | 6 | 6 years, 8 months ago | ||
edit user profile
Started by: ericW-5 in: Toolset Professional Support |
2 | 5 | 6 years, 8 months ago | ||
login and password not taken into account in registration form
Started by: ericW-5
in: Toolset Professional Support
Problem: The issue here is that the customer has created a new user form but is unable to allow his users to create their own passwords. Solution: This is due to the form itself not having the password fields. When you are creating the form please ensure that the password fields are ticked. |
2 | 8 | 6 years, 8 months ago | ||
Add Custom Fields to posts with Toolset
Started by: ericW-5
in: Toolset Professional Support
ProblemHow to add Custom Post Fields to my posts with Toolset? SolutionTo add Custom Field to a Post Type, you need first to create those fields. In Toolset > Post Fields > New, you can add a new Group of Fields. Then, you start to add fields and save this group. Then, in a single post where you assigned the Post Fields to, you can add values to the fields. Relevant Documentationhttps://toolset.com/documentation/user-guides/using-custom-fields/ |
2 | 5 | 6 years, 8 months ago | ||
Job posting site
Started by: ericW-5 in: Toolset Professional Support |
2 | 2 | 6 years, 9 months ago | ||
sending info to post author
Started by: ericW-5
in: Toolset Professional Support
Problem: Solution: Set the Job CPT as the Parent of the Job Application. Now on the Jobs CPT you can create an email field so that the recruiter can post a Job and the email that the Job applications should be sent to. Then Create a CRED form for your Job Applications and then add the CRED form child post link to your Jobs, if you are using a content template then you can simply just add the child post form link to the there. On your child post form you can add a generic field like this. [cred_generic_field field='parent-email' type='email' class='parent-field-replacement' urlparam=''] { "required":0, "validate_format":0, "persist":1, "default":"" } [/cred_generic_field] Then create a notification for this field in CRED. Finally you will need to add this hook to your functions.php which will copy the Email from the Parent Job into the child post being created so that the notification will be sent to the person who created the job. add_action('cred_before_save_data', 'my_before_save_data_action',10,1); function my_before_save_data_action($form_data) { // if a specific form if ($form_data['id']==2981) { if(isset($_POST['_wpcf_belongs_job_id']) and $_POST['_wpcf_belongs_job_id']!=""){ $parent_post_id = $_POST['_wpcf_belongs_job_id']; $x = get_post_meta($parent_post_id,'wpcf-job-email',true); $_POST['parent-email'] = $x; } } } In the code above I create 3 things: 2. I made a custom field on the Job CPT called "Job Email" which gets a slug "job-email". I referenced this field with "wpcf-job-email". In your case when you create the field you will reference it by add the "wpcf-" prefix to the slug and replaceing all instances of "wpcf-job-email" 3. Finally I made the generic field "parent-email". If you use the generic field code that I sent then you can leave this as is. |
2 | 3 | 6 years, 9 months ago | ||
display issue
Started by: ericW-5 in: Toolset Professional Support |
2 | 3 | 6 years, 9 months ago | ||
CRED forms validation
Started by: ericW-5
in: Toolset Professional Support
Problem: The issue here is that the user wanted to know if its possible to submit posts for review using CRED. Solution: On the CRED form settings you have the options to set the post status of all the posts that are submitted using this form. |
2 | 3 | 6 years, 9 months ago | ||
access to wordpress post content editor
Started by: ericW-5 in: Toolset Professional Support |
2 | 3 | 6 years, 9 months ago | ||
Problem showing search and results at 2 different places in the same page
Started by: ericW-5
in: Toolset Professional Support
Problem: I have a problem showing the search and results sections of my View in two different parts of the page. When I place the View using two shortcodes, the search filters appear, but not the results. If I use a single shortcode to place the same View, both filters and results appear. Solution: There is a problem in the markup of this View's Filter Editor panel. There is a div tag left unclosed, which results nested form tags when two separate Views shortcodes are used. Check your Filter Editor markup to confirm your HTML code is properly structured. |
2 | 6 | 6 years, 9 months ago |