JosV9233
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 |
---|---|---|---|---|---|
Make a CRED form visible to guest users
Started by: JosV9233
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
2 | 3 | 6 years, 8 months ago | ||
Access control for CPT archives
Started by: JosV9233 in: Toolset Professional Support |
2 | 5 | 6 years, 8 months ago | ||
how to automatically limit access to new posts to certain user role/group
Started by: JosV9233 in: Toolset Professional Support |
2 | 5 | 6 years, 8 months ago | ||
Number will increment when editing post “Auto Numbering Posts” vs2
Started by: JosV9233
in: Toolset Professional Support
Problem: I would like to automatically increment a custom field value when I create a new post in my custom post type. The field value should be the highest field value from the other posts, plus one. Solution: /** * Add an auto-incrementing ordernummer field to telorder posts */ function auto_assign_ids( $post_id, $post, $update ) { if( $update == false ) { // Only assign ID to new telorder posts if ( $post->post_type == 'telorder' ) { // get the most recent telorder post $telorder_args = array( 'numberposts' => 1, 'post_type' => 'telorder', 'orderby' => 'post_date', 'order' => 'DESC' ); $telorders = get_posts( $telorder_args ); // get the project_id of the prior post $last_id = isset($telorders[0]) ? get_post_meta( $telorders[0]->ID, 'wpcf-ordernummer', true ) : 0; // increment $last_id++; // set the project_id of the current post update_post_meta( $post_id, 'wpcf-ordernummer', $last_id ); } } } add_action( 'save_post', 'auto_assign_ids', 100, 3 ); Relevant Documentation: |
3 | 6 | 6 years, 9 months ago | ||
Number will increment when editing post “Auto Numbering Posts”
1
2
Started by: JosV9233
in: Toolset Professional Support
Problem: Solution: You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
3 | 23 | 6 years, 9 months ago | ||
Problem with automatic updates
Started by: JosV9233
in: Toolset Professional Support
Problem: I am seeing an error message in all of my Toolset sites: "You must have a valid subscription in order to get upgrades or support for this plugin. Purchase a subscription or enter an existing site key." Solution: Delete and reinstall Types, then click "Check for updates" in the plugin Commercial tab. |
2 | 5 | 6 years, 9 months ago | ||
CRED hook custom code does not update post author
Started by: JosV9233
in: Toolset Professional Support
Problem: I have some custom code in a cred_save_data hook that is not updating the post author as expected. Solution: Check to be sure post_author is defined correctly using the value of the custom field. Relevant Documentation: |
2 | 5 | 6 years, 9 months ago | ||
searching on post title of parent
Started by: JosV9233
in: Toolset Professional Support
Problem: I would like to specify a default option in the select field for my post relationship filter. Solution: The wpv-control-post-ancestor shortcode accepts a default_label attribute, where you can specify the text for the default option: [wpv-control-post-relationship ancestors="abonnement" url_param="wpv-relationship-filter"] <div class="form-group"> <label>[wpml-string context="wpv-views"]Abonnementen[/wpml-string]</label> [wpv-control-post-ancestor type="select" default_label="--- select one ---" ancestor_type="abonnement"] </div> [/wpv-control-post-relationship] Relevant Documentation: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-control-post-ancestor |
2 | 3 | 6 years, 10 months ago | ||
Automatically fill post title
Started by: JosV9233 in: Toolset Professional Support |
2 | 12 | 6 years, 10 months ago |