williamM-3
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 |
---|---|---|---|---|---|
Update Post date when User submits a CRED Post form
Started by: williamM-3
in: Toolset Professional Support
Problem: I would like to modify the post date when a Form is submitted. Solution: Use the wp_update_post API to modify the post date of an existing post. add_action('cred_save_data', 'my_save_data_action',10,2); function my_save_data_action($post_id, $form_data) { // if a specific form if ($form_data['id']==215) { $time = current_time('mysql'); $args = array( 'ID' => $post_id, 'post_author' => get_current_user_id(), 'post_date' => $time, 'post_date_gmt' => get_gmt_from_date($time), ); $res = wp_update_post( $args, true ); } } Relevant Documentation: |
3 | 6 | 5 years, 8 months ago | ||
Access Plugin not restricting guest access to specific CPT Archive
Started by: williamM-3
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
2 | 5 | 6 years, 9 months ago | ||
User post cred does not show keep radio option selected in wpadmin
1
2
Started by: williamM-3
in: Toolset Professional Support
Problem: How to solve this? Solution: And select the 2nd option there “Show one of these values” to display the images. Screenshot here: |
2 | 18 | 6 years, 9 months ago | ||
The toggle for post fields stopped working in admin
Started by: williamM-3 in: Toolset Professional Support |
2 | 4 | 7 years ago | ||
JS Frontend Events after pagination and search
Started by: williamM-3 in: Toolset Professional Support |
2 | 15 | 7 years, 3 months ago | ||
Do levels still work in Access 2.2 ?
Started by: williamM-3 in: Toolset Professional Support |
2 | 7 | 7 years, 3 months ago | ||
Re-run Javascript after parametric search
Started by: williamM-3 in: Toolset Professional Support |
2 | 12 | 7 years, 4 months ago | ||
Validating Selected Dropdown – CRED does not have the ablity to GetElementByID
Started by: williamM-3 in: Toolset Professional Support |
2 | 6 | 7 years, 5 months ago | ||
Conditional Statement to Evaulate wpv-if AND
Started by: williamM-3
in: Toolset Professional Support
Problem: Solution: To eveluate the User Role and a User Field in a Conditional you click the button "Conditional Display" in your Editor and then choose from "Views ShortCodes" the data to evaluate. You will add two conditions in the GUI and then insert the ShortCode. After, you will edit the single ShortCodes to evaluate, by replacing them with the ShortCodes provided in the GUI "Fields and Views". For my example, this would be the outcome: [wpv-conditional if="( '[wpv-current-user info='role']' eq 'Administrator' ) AND ( '[types usermeta='single' user_current='true'][/types]' eq 'whatever' )"] //Things to display if current user is admin and has a user field value "whatever" [/wpv-conditional] Relevant Documentation: |
2 | 3 | 7 years, 7 months ago | ||
Fix urlencode permalink to correctly write forward slashes insetead of
Started by: williamM-3 in: Toolset Professional Support |
2 | 7 | 7 years, 7 months ago | ||
Help fix special characters in urlencode
Started by: williamM-3 in: Toolset Professional Support |
2 | 3 | 7 years, 8 months ago | ||
CRED edit user form not being displayed on pages
Started by: williamM-3 in: Toolset Professional Support |
2 | 6 | 7 years, 8 months ago | ||
Filtering a VIEW by 2 custom date fields using AND
Started by: williamM-3
in: Toolset Professional Support
Problem: Solution: In both cases you need to compare against a NUMBER, if you use a Types Date Fields, and against a DATE if you use the WordPress native Post Date. This is becuase Types stores the Dates as a Timestamp, which is a NUMBER, and WordPress does not store a Timestamp, therefore here you use Date. Relevant Documentation: |
2 | 5 | 7 years, 8 months ago | ||
Display the custom field from last child
Started by: williamM-3 in: Toolset Professional Support |
2 | 4 | 7 years, 8 months ago | ||
Cred Notification to Parent Post Author
Started by: williamM-3 in: Toolset Professional Support |
2 | 12 | 7 years, 8 months ago |