Vincent
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 |
---|---|---|---|---|---|
Group Views Results By Date & Custom Field
Started by: Vincent in: Toolset Professional Support |
2 | 2 | 2 years, 1 month ago | ||
Create View To Display Post With Relationship
Started by: Vincent in: Toolset Professional Support |
|
2 | 4 | 2 years, 11 months ago | |
Toolset Blocks Labels and Dropdown Text Issues
Started by: Vincent in: Toolset Professional Support |
2 | 4 | 3 years, 4 months ago | ||
Toolset plugin cannot connect to toolset
Started by: Vincent in: Toolset Professional Support |
|
2 | 4 | 3 years, 6 months ago | |
Ajax filter URL showing admin-ajax
Started by: Vincent in: Toolset Professional Support |
1 | 3 | 4 years, 4 months ago | ||
Product Archive Template File Not Working
Started by: Vincent in: Toolset Professional Support |
2 | 4 | 4 years, 4 months ago | ||
Keep displaying form with AJAX
Started by: Vincent in: Toolset Professional Support |
|
2 | 9 | 4 years, 10 months ago | |
Toolset Form Select Field To Display Connected Post Only
Started by: Vincent in: Toolset Professional Support |
|
2 | 12 | 5 years, 3 months ago | |
Display random users with a view
Started by: Vincent in: Toolset Professional Support |
|
2 | 2 | 5 years, 8 months ago | |
Select Field To Show Display Text, Not Custom field Content
Started by: Vincent
in: Toolset Professional Support
Problem: I would like to display the text label instead of the option value from a select field in a User's profile. Solution: You can use the Types usermeta shortcode to display the text label: [types usermeta="my-select-field" user_current="true"][/types] Relevant Documentation: |
|
2 | 3 | 5 years, 8 months ago | |
Sort Order By Calculated Field
Started by: Vincent
in: Toolset Professional Support
Problem: I would like to sort a View using a calculated value. Solution: Unfortunately this isn't a built-in feature because WordPress does not provide methods for querying posts using calculated values. Instead, you may be able to programmatically set a custom field value, then order by that custom field. For example, let's say your calculated value is 1 or 2, based on whether or not the post status is "published" and the author's ID = 1. You will add a custom field to this post type called "is-admin-published". Then use the save_post hook to set the custom field to be the calculated value whenever you save a post: function set_is_admin_published_field ( $post_id ) { $post_type = get_post_type( $post_id ); if ( $post_type == 'post' ) { $boolean = get_post_status( $post_id ) == 'publish' && get_post_field( 'post_author', $post_id )== 1; if( $boolean) { update_post_meta( $post_id, 'wpcf-is-admin-published', 1 ); }else{ update_post_meta( $post_id, 'wpcf-is-admin-published' , 2 ); } } } add_action( 'save_post', 'set_is_admin_published_field', 100 ); Then use the View's ordering options to select the is-admin-published field. Relevant Documentation: |
|
2 | 5 | 6 years, 5 months ago |