Chris
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 |
---|---|---|---|---|---|
Setting a default post relationship
Started by: Chris
in: Toolset Professional Support
Problem: The issue here is that the user wanted to set a default post relationship . Solution: Unfortunately this is not possible, however a feature request has been submitted for it. |
2 | 3 | 5 years, 6 months ago | ||
Map Marker icons display at wrong size after upgrade to Maps 1.7
Started by: Chris in: Toolset Professional Support |
2 | 7 | 5 years, 10 months ago | ||
View does not show events from Tribe Events Calendar plugin
Started by: Chris
in: Toolset Professional Support
Problem: I have a View that is supposed to show event posts from Modern Tribe Events Calendar, but it is not working. There is an error displayed: Unknown column 'EventStartDate' in 'order clause' If I add an underscore like '_EventStartDate', the query works. Solution: It seems to be a conflict with the Submit Gravity Form Access Content plugin. |
3 | 17 | 6 years ago | ||
Unable to switch from Beta update channel
Started by: Chris in: Toolset Professional Support |
2 | 9 | 6 years ago | ||
Infinite scroll load more button
Started by: Chris in: Toolset Professional Support |
3 | 8 | 6 years, 1 month ago | ||
Filter view on whether child posts exist
Started by: Chris
in: Toolset Professional Support
Problem: I would like to give my site visitors the ability to use a checkbox in a custom search View that filters based on whether or not the post has child posts. Solution: This filter is not built-in to Views, but you can set up a custom field on the parent post type that stores a 1 if child posts exists and stores nothing if no child posts exist. That custom field value can be managed automatically with code. add_action( 'toolset_association_created', 'toolset_number_child_posts', 10, 5 ); add_action( 'toolset_before_association_delete', 'toolset_number_child_posts', 10, 5 ); function toolset_number_child_posts( $relationship_slug, $parent_id, $child_id, $intermediary_id, $association_uid ) { // add a 1 if child properties exist to facilitate filtering by existence of child post if( get_post_type($parent_id)=='developments' ) { // get most recent property post $property_args = array( 'numberposts' => 1, 'post_type' => 'property', 'orderby' => 'post_date', 'order' => 'DESC', 'toolset_relationships' => array( 'role' => 'child', 'related_to' => $parent_id, 'relationship' => 'developments_property' ), ); $properties_query = new WP_Query( $property_args ); $properties = $properties_query->posts; if(isset($properties[0])) { // set the checkbox custom field value here using update_post_meta update_post_meta( $parent_id, 'wpcf-has-vacant-properties', 1); }else { delete_post_meta( $parent_id, 'wpcf-has-vacant-properties'); } } } function toolset_count_child_properties_on_save( $post_id ) { if( get_post_type( $post_id ) == 'developments' ) { toolset_number_child_posts( 'developments_property', $post_id, null, null, null ); } } add_action( 'save_post', 'toolset_count_child_properties_on_save', 1000); Relevant Documentation: |
2 | 9 | 6 years, 2 months ago | ||
A couple of typos to fix in Types 3.0
Started by: Chris
in: Toolset Professional Support
Problem: Some typos to fix in Types 3.0 Solution: It has been confirmed, our developers will take care of it. Relevant Documentation: |
2 | 4 | 6 years, 3 months ago | ||
Remove limit on number of related posts in migrated realtionship
1
2
Started by: Chris in: Toolset Professional Support |
2 | 17 | 6 years, 5 months ago | ||
Setting post relationship in Types 3.0 using Post Relationship API
Started by: Chris
in: Toolset Professional Support
Problem: I have a form that creates child posts, and I would like to link them to a parent post in the new relationships system. How can I set a post relationship between two posts using the Post Relationship API? Solution: This feature is not going to be available immediately when Types 3.0 is released, and unfortunately we do not have a public API available yet. If you need to set post relationships programmatically, I do not recommend upgrading. Relevant Documentation: |
2 | 6 | 6 years, 6 months ago | ||
Incorrect post type when connecting posts (Types Version 3.0-RC2)
Started by: Chris
in: Toolset Professional Support
Problem: I'm trying using the Post Relationship panel of the Custom Post Type editor to connect to an existing standard Post, but I see the titles of another Custom Post Type called "Offices". I'm using the new Types 3.0-RC2. Solution: In this case, it appears that the Property Hive plugin has a post type "Offices" that uses the label "Posts", so the Post Relationship was actually set up using the wrong post type. Creating the Post Relationship again using the proper Posts post type solved the problem. |
2 | 5 | 6 years, 6 months ago | ||
Shortcode with id=”$current_page displays info for loop item in 2.6-RC
Started by: Chris
in: Toolset Professional Support
Problem: The $current_page syntax does not appear to work as expected in the new Views 2.6-RC. Shortcodes using id="$current_page" show information about the current post in the loop, not the current page. Solution: Update to the latest 2.6-RC2 |
3 | 5 | 6 years, 7 months ago | ||
Accessibility of form labels on input and select controls
Started by: Chris
in: Toolset Professional Support
Problem: I have a custom search View that includes a select field filter. The label for this element is not connected to the select field using a "for" attribute, so the field is not optimized for accessibility. Solution: We have a feature request in place to improve the accessibility of select fields in a custom search View, and in the meantime you can nest the control inside the label element. This is valid HTML and is more accessible than before. <div class="form-group"> <label>[wpml-string context="wpv-views"]Language[/wpml-string] [wpv-control-post-taxonomy taxonomy="language" type="select" default_label="-- select Language --" orderby="count" order="DESC" url_param="wpv-language"]</label> </div> |
2 | 4 | 6 years, 7 months ago | ||
Cannot view Custom Fields screen after Toolset Access upgraded to 2.4.3.3
Started by: Chris
in: Toolset Professional Support
Problem: After upgrading to Access 2.4.3.3, I am no longer able to use the Custom Fields editor screen in wp-admin. My site uses the M2M betas. Solution: There appears to be a compatibility issue with Access 2.4.3.3 and the M2M betas. For now you can either install the stable Types and Views (no M2M) or downgrade to Access 2.4.3.2. |
2 | 7 | 6 years, 10 months ago | ||
Adding custom validation to a Types custom field
Started by: Chris
in: Toolset Professional Support
Problem: Solution: Unfortunately we don't have a default hook in types to validate the fields, however you can use the wordpress default hooks to do this. Take a look at the link below. https://wordpress.stackexchange.com/questions/96762/how-to-make-a-meta-box-field-a-requirement |
2 | 3 | 7 years, 3 months ago | ||
Displaying alt text with [wpv-post-featured-image] with a custom size
Started by: Chris in: Types Community Support |
2 | 4 | 7 years, 5 months ago |