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, 6 months ago | ||
Access control for CPT archives
Started by: JosV9233 in: Toolset Professional Support |
2 | 5 | 6 years, 6 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, 6 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, 7 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, 7 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, 7 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, 7 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, 8 months ago | ||
Automatically fill post title
Started by: JosV9233 in: Toolset Professional Support |
2 | 12 | 6 years, 8 months ago | ||
How to show related field (dropdown) as single value in a content template
Started by: JosV9233 in: Toolset Professional Support |
2 | 14 | 6 years, 8 months ago | ||
Sorting search results
Started by: JosV9233
in: Toolset Professional Support
Problem: Solution: Please try to re-save all affected posts and make sure no value is in the empty fields. This is an exception, usually visual empty field are really empty, but it can happen that the fields hold not visible values. |
2 | 14 | 6 years, 9 months ago | ||
How to make related post author field required
Started by: JosV9233
in: Toolset Professional Support
Problem: I have a relation with post author and a custom field set. I can make every field required (I do not need to, but I can), except for the post author field. As the client is testing it now an empty line appeared in the dropdown. I have no direct contact with the client so I can not ask him what happened, but I think making the field required could avoid empty lines in the future. Maybe I am thinking wrong, but now you can make a new order without selecting the author. Solution: How do you setup the post author field? is it a CRED generic field? [cred_generic_field type='select' ...] { "required":1, ... } [/cred_generic_field] See screenshot https://cdn.toolset.com/wp-content/uploads/2018/01/604177-required.JPG Relevant Documentation: |
2 | 5 | 6 years, 10 months ago | ||
Sorting a View of posts by post author sorting by name instead of ID
Started by: JosV9233 in: Toolset Professional Support |
2 | 7 | 6 years, 10 months ago | ||
Conditional output
Started by: JosV9233 in: Toolset Professional Support |
1 | 2 | 6 years, 10 months ago | ||
Display Author’s first and last name instead of nickname in cpt
Started by: JosV9233
in: Toolset Professional Support
Problem: I would like to display the Author's first and last names in a View of CPTs. Solution: Use the wpv-post-author shortcode to display the first and last names: [wpv-post-author meta="user_firstname" format="meta"] [wpv-post-author meta="user_lastname" format="meta"] Relevant Documentation: |
2 | 8 | 6 years, 10 months ago |