Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Related Posts Function
Problem: I am trying to use a meta_query with the post relationships API toolset_get_related_posts, but it doesn't seem to be filtering as expected.
Solution: Some complex meta_queries, like using "IN" or "AND" with more than one term, fail with the post relationships API. Instead, you should use a standard WP_Query and add the toolset_relationships clause:
$args = array( 'numberposts' => -1, 'post_type' => 'child-post-type-slug', 'orderby' => 'post_date', 'order' => 'DESC', 'meta_query' => array( 'relation' => 'AND', array( 'key' => 'wpcf-colour', 'value' => 'Red', 'compare' => '=' ), array( 'key' => 'wpcf-description', 'value' => 'Ball', 'compare' => '=' ) ), 'toolset_relationships' => array( 'role' => 'child', 'related_to' => $post_id, 'relationship' => 'relationship-slug' ), ); $child_query = new WP_Query( $args );
|2||3||1 year, 7 months ago|
|Maps & Convert Cache||2||3||1 year, 7 months ago|
Views & Clean Cache
Problem: It seems like the new caching system will require manual intervention to update the cache any time content changes.
Solution: An individual View's cache is invalidated any time a post that could appear in the View results is added or edited. Manual intervention is not required here.
|2||3||1 year, 7 months ago|
|For Beda please (re-opening previous ticket)||2||3||1 year, 8 months ago|
How to specify Post status to get posts with toolset_get_related_post question
You should pass an array of post status values or a string with one or more statuses separated by commas.
$role_name_to_return = '';//parent or child $args = array();// see args array - Additional query arguments. $post_status = 'publish,draft';//you can only use those from https://developer.wordpress.org/reference/functions/get_post_statuses/ or passed to toolset_accepted_post_statuses_for_api $writer = toolset_get_related_post( $post_id, array( 'one-side', 'other-side' ), $role_name_to_return, $args, $post_status );
|3||6||1 year, 8 months ago|
Toolset Maps database table name can cause an issue related to a bug in mysqldump
Problem: Toolset Maps uses a custom database table called _toolset_maps_address_cache. That table has a column named point, which is a reserved word of mySQL 5.7
This alone is not an issue because MySQL is context-sensitive in this case and understands when we are referencing the column.
However, due to a bug in mysqldump, it can happen that invalid data is used even though the table format is pretty strict, and later it can lead to issues when exporting and importing database tables to other databases.
|2||14||1 year, 8 months ago|
|Multiple Submit Buttons on CRED Form||2||5||1 year, 8 months ago|
Repeating Fields Question
Is it possible to get all the values of a repeating custom field (for a specific post) and add them "as one" to a different custom field?
There isn't such kind of built-in feature, it needs custom codes, for example:
|2||5||1 year, 8 months ago|
|cred_success_redirect question||1||2||1 year, 8 months ago|
|Maps 2.0.1 – Clarification please||2||3||1 year, 8 months ago|
|Manual Log In Form (previous ticket)||2||3||1 year, 8 months ago|
|Question About 'Limit & Offset' in Views||2||3||1 year, 9 months ago|
|Question about Forms 2.5.4 Changelog||2||3||1 year, 9 months ago|
|Single Checkbox CRED Field||2||10||1 year, 10 months ago|
|Obtain Count of Repeating Fields with Condition||2||3||1 year, 11 months ago|