pharmaklaus
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 |
---|---|---|---|---|---|
wpv-control-post-relationship / wpv-control-post-ancestor intersect results
Started by: pharmaklaus in: Toolset Professional Support |
2 | 8 | 4 years, 10 months ago | ||
broken relationship on edit screen (backend)
Started by: pharmaklaus in: Toolset Professional Support |
2 | 7 | 5 years ago | ||
sort custom post by date stored inside Repeatable Field Groups
Started by: pharmaklaus in: Toolset Professional Support |
2 | 3 | 5 years, 8 months ago | ||
Repeater fields sort order based on backend drag and drop
Started by: pharmaklaus in: Toolset Professional Support |
1 | 2 | 6 years, 5 months ago | ||
evaluate checkbox in repeating fields
Started by: pharmaklaus in: Toolset Professional Support |
2 | 2 | 6 years, 6 months ago | ||
Use toolset_get_related_posts and filter by meta_key/meta_value
Started by: pharmaklaus
in: Toolset Professional Support
Problem: I would like to use the new Post Relationships API toolset_get_related_posts with a meta key filter, but it doesn't seem to be working as expected. Solution: Be sure to add the wpcf- prefix to the custom field slug, since this query interacts directly with WordPress APIs. $progetti_collegati1 = toolset_get_related_posts( get_the_ID(), //Post to query by. 'rel-corso-di-studio-progetto', //Slug of the relationship to query by 'parent', //Name of the element role to query by. 10, //Maximum number of returned results 0, //Result offset array( //Additional query arguments 'meta_key' => 'wpcf-contenuto-in-evidenza', 'meta_compare' => 'LIKE', 'meta_value' => '0' ), 'post_id', //Determines return type 'child', // which posts from the relationship should be returned 'title', //orderby: null, 'title', 'meta_value', 'meta_value_num' 'ASC' // $order 'ASC' or 'DESC'. ); Relevant Documentation: |
2 | 2 | 6 years, 7 months ago | ||
define structure and relationships
Started by: pharmaklaus in: Toolset Professional Support |
2 | 7 | 6 years, 7 months ago |